Skip to content

Instantly share code, notes, and snippets.

View rinchik's full-sized avatar
🎯
Focusing

rinchik rinchik

🎯
Focusing
View GitHub Profile
@noromanba
noromanba / zalgolf-js.md
Last active November 29, 2017 04:09
js Zalgo Scrambled Text + slightly code-golf

Zalgolf / Re:Zalgo

js Zalgo Scrambled Text + slightly code-golf

original code and description by @aTakaakiSeki

[].concat(...[...document.all].map(e => [...e.childNodes])).filter(n => n.nodeType === Node.TEXT_NODE).map(n => n.textContent = n.textContent.replace(/([a-zA-Z])/g, (_, c) => c + [...Array(Math.floor(Math.random()*30))].map(() => String.fromCharCode(0x300 + Math.floor(Math.random()*79))).join('')))