Skip to content

Instantly share code, notes, and snippets.

@iamandrewluca
Last active July 27, 2020 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamandrewluca/f3e7a76785a80d5c61346a1581b34b34 to your computer and use it in GitHub Desktop.
Save iamandrewluca/f3e7a76785a80d5c61346a1581b34b34 to your computer and use it in GitHub Desktop.
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