Advertisement
Guest User

Spiegel Online Plus Obfuscation Removal

a guest
Jul 23rd, 2016
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  *
  3.  * Spiegel Online Plus – Obfuscation Removal 0.1
  4.  *
  5.  */
  6.  
  7. var wrapper = document.getElementsByClassName('obfuscated-content')[0];
  8. var ps = wrapper.getElementsByClassName('obfuscated')
  9.  
  10. // remove blur, default opacity user interaction
  11. wrapper.parentElement.style='-webkit-filter:none !important; opacity: 1 !important; pointer-events: auto !important; user-select: auto !important'
  12. // hide overlay
  13. wrapper.parentElement.nextSibling.style='display:none'
  14.  
  15. var foo = function (p) {
  16.   var txt = p.textContent;
  17.   var newTxt = '';
  18.   for (var i = 0; i < txt.length; i++) {
  19.     if (txt.charCodeAt(i) == 32) {
  20.       newTxt += ' ';
  21.       continue;
  22.     }
  23.  
  24.     String.fromCharCode(txt.charCodeAt(i) - 1);
  25.     newTxt += String.fromCharCode(txt.charCodeAt(i) - 1);
  26.   }
  27.   p.textContent = newTxt;
  28. };
  29.  
  30. for (var i = 0; i < ps.length; i++) {
  31.   foo(ps[i])
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement