Skip to content

Instantly share code, notes, and snippets.

View HelloWorld017's full-sized avatar
💐
muguet - Hanahuruhibi,

Khinenw HelloWorld017

💐
muguet - Hanahuruhibi,
View GitHub Profile
@HelloWorld017
HelloWorld017 / trex-nightmode.js
Created August 13, 2016 07:24
Chrome Offline tRex game nightmode
'use strict';
var tRex = Runner.instance_.tRex;
tRex.direction = 1;
var move = function move() {
tRex.xPos = Math.max(Math.min(tRex.xPos + tRex.direction * 5, 500), 0);
};
window.onkeydown = function (e) {
@HelloWorld017
HelloWorld017 / acacia.js
Created September 24, 2016 12:54
아카시아 로고 제작에 사용된 js
let get_xy = (x, y, radius, angle) => {
let rad = Math.PI / 180 * angle;
return {
x: Math.round(x + Math.cos(rad) * radius),
y: Math.round(y + Math.sin(rad) * radius)
};
};
let generate_flower = (x, y, radius, angle_base) => {
let str = '';
@HelloWorld017
HelloWorld017 / tvple-download.md
Last active October 23, 2018 12:02
티비플을 다운로드해보자!

티비플을 다운로드 하는 방법

  1. 북마크에 아래의 url을 추가한다.
    `javascript:var href = $('#video-player video>source').attr('src'); var content = $('meta[property=og\:title]').attr('content'); if(href !== undefined){ (function(src, title){ var popupContent = $(document.createElement('div')).append( $(document.createElement('h2')).text('%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C%EA%B0%80 %EC%A4%80%EB%B9%84%EB%90%90%EC%8A%B5%EB%8B%88%EB%8B%A4!') ).append( $(document.createElement('h4')).text('%EC%95%84%EB%9E%98%EC%9D%98 %EB%A7%81%ED%81%AC%EB%A5%BC %EB%88%8C%EB%9F%AC %EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C %ED%95%98%EC%8B%AD%EC%8B%9C%EC%98%A4.') ).append( $(document.createElement('a')).attr('href', src).attr('download', title).text('%EB%8F%99%EC%98%81%EC%83%81 %EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C') ); createPopup(popupContent, '%EB%8F%99%EC%98%81%EC%83%81 %EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C'); })(href, content); }else{ createPopup( $(document.createElement('h2')).html('%EC%98%A4%EB%A5%98!
    %EB%8F%99%EC%98%81%EC%83%81 %ED%94%8C%EB%A0%88%
@HelloWorld017
HelloWorld017 / telegramgamecheat.js
Created October 4, 2016 08:11
Telegram gamebot cheat: enter the game, input that on the omnibox
javascript:
var xhr = new XMLHttpRequest;
xhr.open("POST", "/api/setScore", true);
xhr.onreadystatechange = function(){
alert(xhr.responseText);
};
var tag = location.href.split('#')[1].split("&")[0];
xhr.send("data=" + encodeURIComponent(tag) +"&score=999");
@HelloWorld017
HelloWorld017 / lines.js
Last active October 15, 2016 05:34
Scripts which are used to create loading animation
create = (r, r2, cx, cy, className) => {
str = '';
for(let _angle = 0; _angle < 360; _angle += 30){
angle = _angle * Math.PI / 180;
let cos = Math.cos(angle);
let sin = Math.sin(angle);
str += `<line x1="${Math.round(cx + cos * r)}" y1="${Math.round(cy + sin * r)}" x2="${Math.round(cx + cos * r2)}" y2="${Math.round(cy + sin * r2)}" class="line-outer ${className}"/>\n`;
}
console.log(str);
}
@HelloWorld017
HelloWorld017 / ascii-draw.js
Created December 2, 2016 15:25
A simple ascii text drawer
const draw = (width, height, text, font, fill) => {
const canvas = document.createElement('canvas');
canvas.width = width;
canvas.height = height;
const ctx = canvas.getContext('2d');
ctx.fillStyle = "#000";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = "#fff";
@HelloWorld017
HelloWorld017 / README.md
Last active January 17, 2022 12:52
Powerline style for Atom

How to

  1. Download powerline.less into ATOM_HOME (default: ~/.atom/)
  2. Add @import './powerline.less'; into your styles.less in ATOM_HOME.
  3. Enjoy! :D

Warning

Powerline could not work on some themes.
Officially supported themes:

  • Atom Dark
  • Atom Light
@HelloWorld017
HelloWorld017 / README.md
Created February 2, 2017 14:04
Facebook AutoPocker

Enter this in developer console (f12) THIS IS NOT A MALWARE! (Look at the code)

After entering it, poke someone. This script will poke automatically.

@HelloWorld017
HelloWorld017 / ghost-seasons-background.js
Created February 7, 2017 10:49
Automated changing flat stripe background for ghost.
(function(){
//SVG Flat Stripe Background
//by Khinenw
//gist.github.com/HelloWorld017/6fb557767095a0e79140cb3bfbed83e7
'use strict';
if(location.pathname !== '/') return;
var themes = [[/^\d+-(02|03|04)-.+$/, ['#f8bbd0', '#f06292', '#e91e63', '#c2185b', '#880e4f']], //Haru
[/^\d+-(05|06|07)-.+$/, ['#ffeb3b', '#cddc39', '#8bc34a', '#4caf50', '#009688']], //Natsu
@HelloWorld017
HelloWorld017 / bypass-touch.js
Created March 12, 2017 11:01
Bypass TouchEn Key which is in djsch
// ==UserScript==
// @name Fuck touchenkey
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Stop using touchenkey
// @author Khinenw
// @match *://*/*
// @grant none
// ==/UserScript==