Last active
July 27, 2020 09:30
-
-
Save iamandrewluca/f3e7a76785a80d5c61346a1581b34b34 to your computer and use it in GitHub Desktop.
Random table flip text emoji #bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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