summaryrefslogtreecommitdiff
path: root/js/deobfuscate.js
blob: ef8d60b570561733778639d478ee9531c8f47600 (about) (plain)
1
2
3
4
5
6
7
8
9
var deobfuscate = function(s) {
  return s.split('').map(function(n){return String.fromCharCode(n.charCodeAt(0)-1);}).join('');
};
$(document).ready(function() {
    $('.obfuscated').each(function() {
      var fixed = deobfuscate( $(this).text() );
      $(this).text(fixed);
    });
});