Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block KaKi87

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
KaKi87 / indexOfAll.js
Created May 8, 2019
JS : indexOf all matches
View indexOfAll.js
const indexOfAll = (string, value) => string.split('').reduce((a, e, i) => (e === value) ? a.concat(i) : a, []);
KaKi87 /
Created Apr 28, 2019 Material/Flat dark userstyle
@import url('');
@import url('');
body {
font-family: 'Open Sans';
:root {
--color-white: #ecf0f1;
--color-darkblue: #2c3e50;
KaKi87 / querystring.js
Created Apr 5, 2019
The simplest object to querystring JS function ever
View querystring.js
const querystring = object => Object.keys(object).map(key => `${key}=${object[key]}`).join('&');

Keybase proof

I hereby claim:

  • I am kaki87 on github.
  • I am kaki87 ( on keybase.
  • I have a public key ASAfDWR7OZyZANunJVBqheAv2pTHaIKKqFrh5ggHNxVd4go

To claim this, I am signing this object:

KaKi87 / json_indent.js
Created Dec 19, 2018
Indent JSON in browser
View json_indent.js
// Simple.
document.body.innerHTML = `<pre>${JSON.stringify(JSON.parse(document.body.textContent), null, 4)}</pre>`;
KaKi87 / custom_variables.js
Last active May 25, 2018
Get custom JS variables of a web page
View custom_variables.js
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;
KaKi87 / progressBar.js
Last active Mar 25, 2018
One element progress bar
View progressBar.js
One element progress bar
by KaKi87
Get browser prefix (for CSS)
You can’t perform that action at this time.