by
0
3
1,296
6
Top 1% !
Famous
Specified
Popularity: 18470th place
Created
Modified Jun 29, 2016
No tags for this snippet yet.
LanguageJavaScript
SourceGitHub

Dieser Code kann als Bookmarklet gespeichert werden oder direkt in die Browser-Konsole kopiert werden, um die verschleierten Texte auf Spiegel-Online lesbar zu machen.

Dieser Code kann als Bookmarklet gespeichert werden oder direkt in die Browser-Konsole kopiert werden, um die verschleierten Texte auf Spiegel-Online lesbar zu machen.: 
unobfuscate-spiegel-plus-content.js
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1311784/Dieser-Code-kann-als-Bookmarklet-gespeic?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/*by cXcross and the Spon-js-hoschies*/ /*29.06.2016*/ (function(){ function replaceTextContent(elem) { $(elem).contents() .filter(function () { return this.nodeType === 3; }) .replaceWith(function () { var obfuscatedText = this.data; var deobfuscatedText = ""; for (var i = 0; i < obfuscatedText.length; i++) { var charValue = obfuscatedText.charCodeAt(i); if (charValue == 177) { deobfuscatedText += '&'; } else if (charValue == 178) { deobfuscatedText += '!'; } else if (charValue == 180) { deobfuscatedText += ';'; } else if (charValue == 181) { deobfuscatedText += '='; } else if (charValue == 32) { deobfuscatedText += ' '; } else if (charValue > 33) { deobfuscatedText += String.fromCharCode(charValue - 1); } } return deobfuscatedText; }) .end() .filter(function () { return this.nodeType === 1 && !$(this).hasClass("text-link-int") && !$(this).hasClass("text-link-ext") && !$(this).hasClass("lp-text-link-int") && !$(this).hasClass("lp-text-link-ext") && !$(this).hasClass("spCelink"); }) .each(function () { replaceTextContent(this); }); } function deobfuscateText() { $('p.obfuscated').each(function (index, elem) { replaceTextContent(elem); $(elem).removeClass("obfuscated").addClass("deobfuscated"); }); $('div.obfuscated-content').each(function (index, elem) { $(elem).removeClass("obfuscated-content").addClass("deobfuscated-content"); }); } deobfuscateText(); })();
If you want to be updated about similar snippets, Sign in and follow our Channels