Skip to content

Instantly share code, notes, and snippets.

View aTakaakiSeki's full-sized avatar

Takaaki Seki aTakaakiSeki

  • ACCESS CO., LTD
View GitHub Profile
@aTakaakiSeki
aTakaakiSeki / zalgolf-js.md
Last active May 29, 2017 11:35 — forked from noromanba/zalgolf-js.md
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('')))