Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created July 9, 2013 15:14
Show Gist options
  • Save cowboy/5958189 to your computer and use it in GitHub Desktop.
Save cowboy/5958189 to your computer and use it in GitHub Desktop.
Peencode.js
// http://benalman.com/grab/a1eec0.png
String.prototype.peencode = function() {
return this.replace(/\w/g, "x").replace(/\b\w/g, "8").replace(/\w\b/g, "D").replace(/x/g, "=");
};
$.getScript("https://rawgithub.com/cowboy/jquery-replacetext/master/jquery.ba-replacetext.js", function() {
$("*").replaceText(/.*/g, function(s) { return s.peencode(); });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment