Last active
October 31, 2017 08:17
-
-
Save rogerfachini/3c6ebbcadd945bbeee811478f82a3447 to your computer and use it in GitHub Desktop.
Website Zalgo text converter
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
//Website Zalgo Text Converter | |
//How to use: | |
// 0) Go to a webpage (tested on youtube, others may work too) | |
// 1) Open Dev tools (F12 on chrome/edge/explorer/firefox) | |
// 2) Go to the Console tab | |
// 3) Paste the code below into the Console tab (_Make sure to copy *all* of the code_) | |
// 4) Press enter and wait a few seconds | |
// 5) Refresh the page to clear the effect | |
function genAll(){u=["span","a","yt-formatted-string","div","h1","h2","h3","h4","h5","h6","title","p"];for(var t in u){var e=$(u[t]).filter(function(){return 0==$(this).children().length});$.each(e,function(t,e){cText=Z.generate($(e).text()),console.log(cText),$(e).text(cText)})}}var Z={chars:{0:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈́","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],1:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],2:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͏","͜","͝","͞","͟","͠","͢","̸","̷","͡","҉"]},random:function(t){return 1==t?0:t?Math.floor(Math.random()*t+1)-1:Math.random()},generate:function(t){var e=t.split(""),r=e.map(function(t){if(" "==t)return t;for(var e=0,r=Z.random(16);r>e;e++){var n=Z.random(3);t+=Z.chars[n][Z.random(Z.chars[n].length)]}return t});return r.join("")}},script=document.createElement("script");script.src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js",document.getElementsByTagName("head")[0].appendChild(script),setTimeout(genAll,1e3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment