I hereby claim:
- I am kaki87 on github.
- I am kaki87 (https://keybase.io/kaki87) on keybase.
- I have a public key ASAfDWR7OZyZANunJVBqheAv2pTHaIKKqFrh5ggHNxVd4go
To claim this, I am signing this object:
/* | |
One element progress bar | |
by KaKi87 | |
22.03.18 | |
*/ | |
/* | |
Get browser prefix (for CSS) | |
https://stackoverflow.com/questions/8889014/setting-vendor-prefixed-css-using-javascript | |
https://davidwalsh.name/vendor-prefix |
/* | |
First version | |
*/ | |
function getCustomVariables(){ | |
let page_variables = Object.keys(window); // current page's variables | |
let default_variables = Object.keys(document.head.appendChild(document.createElement('iframe')).contentWindow); // empty DOM's variables | |
let custom_variables = page_variables.filter(variable => default_variables.indexOf(variable) == -1); // comparison | |
return custom_variables; | |
} |
// Simple. | |
document.body.innerHTML = `<pre>${JSON.stringify(JSON.parse(document.body.textContent), null, 4)}</pre>`; |
I hereby claim:
To claim this, I am signing this object:
const querystring = object => Object.keys(object).map(key => `${key}=${object[key]}`).join('&'); |
@import url('https://use.fontawesome.com/releases/v5.8.1/css/all.css'); | |
@import url('https://fonts.googleapis.com/css?family=Open+Sans'); | |
body { | |
font-family: 'Open Sans'; | |
} | |
:root { | |
--color-white: #ecf0f1; | |
--color-darkblue: #2c3e50; |
const indexOfAll = (string, value) => string.split('').reduce((a, e, i) => (e === value) ? a.concat(i) : a, []); |
DISCLAIMER : this isn't really an awesome list, I don't care about guidelines, rules and etc. so I don't bother make a real repo and a real pull request.
This list uses the power of my advanced Google Play search engine to get some free, in-app-free and ad-free apps from it.
// ==UserScript== | |
// @name XDA Forums - Threads meta | |
// @namespace https://kaki87.net/ | |
// @version 1.0 | |
// @match https://forum.xda-developers.com/* | |
// @author KaKi87 | |
// @license MIT | |
// ==/UserScript== | |
window.addEventListener('DOMContentLoaded', () => { |
#!/bin/bash | |
x=echo;e=d1s3d1;f=s2d1s2;g=d1s4;h=s4d1;i="1 d5";s=0;$x -e "\n\n\n\n\n\n\n" | |
set $i 7 $e $i 9 $f $i 3 $h $i 3 $g $i $i 3 $h $i 3 $h $i 4 $e $i 4 $h $i 3 \ | |
$g $i 3 $h $i 4 $g $i 3 $e 2 d5 8 $h $i 3 $e $i 3 $e 2 d5 3 $e $i 4 $h 3 s1 \ | |
1 d1 1 s1 1 d1 3 s1;y=" ";z="\033[";for l in {0..9} a;do for m in {0..8};do | |
if [ $s = 0 ];then s=$1;t=$2;shift 2;fi;s=$((s-1));p=$t;a="";while [ $p ];do | |
c=${p:0:1};n=${p:1:1};p=${p:2:9};[ $c = d ]&&a="$a${z}7m" | |
a="$a${y:0:$n}${y:0:$n}";[ $c = d ]&&a="$a${z}m";done;d[0x$l$m]="$a";done | |
done;while :;do set `date "+%Ha%Ma%S %N"`;t=$1;s=$2;$x -ne "\r${z}8A" | |
for l in {0..8};do for ((i=0;i<${#t};i++));do $x -ne "${d[0x${t:$i:1}$l]}" |