Last active
December 22, 2015 23:19
-
-
Save RangerMauve/6546022 to your computer and use it in GitHub Desktop.
Leet Text Bookmarklet. To use, make a new bookmark and then copy paste the code into the URL field, when made just click the bookmark with a textbox selected.
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(inp,el,mp,k){ | |
el=document.activeElement||{}; | |
inp=el.value||''; | |
mp={'is':/is/ig,'0':/o/ig,'1':/[il]/ig,'3':/e/ig,'4':/a/ig,'5':/s/ig,'7':/t/ig,'©':/c/ig,'Я':/r/ig,'м':/m/ig}; | |
for(k in mp)inp=inp.replace(mp[k],k); | |
el.value=inp; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment