Skip to content

Instantly share code, notes, and snippets.

@RangerMauve
Last active December 22, 2015 23:19
Show Gist options
  • Save RangerMauve/6546022 to your computer and use it in GitHub Desktop.
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.
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