Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Random table flip text emoji #bookmarklet
javascript: void(function() {
/* More bookmarklets at https://gist.github.com/iamandrewluca/61feacf07bc4f2f50e70f986c2e9b2d2 */
const all = [
"(╯°□°)╯︵ ┻━┻",
"(┛◉Д◉)┛彡┻━┻",
"(ノ≧∇≦)ノ ミ ┸━┸",
"(ノಠ益ಠ)ノ彡┻━┻",
"(╯ರ ~ ರ)╯︵ ┻━┻",
"(┛ಸ_ಸ)┛彡┻━┻",
"(ノ´・ω・)ノ ミ ┸━┸",
"(ノಥ,_」ಥ)ノ彡┻━┻",
"(┛✧Д✧))┛彡┻━┻",
];
let flip = undefined;
do {
flip = all[Math.floor(Math.random() * all.length)];
} while(!window.confirm(flip));
/* `DOMException: Document is not focused.` workaround */
setTimeout(() => navigator.clipboard.writeText(flip), 100);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.