Created
July 24, 2023 12:40
-
-
Save hannorein/993e2632cb8391668a88eddbfc26540c to your computer and use it in GitHub Desktop.
unscramble_tncsm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tncmsunscramble = function (sInput) { | |
var sOutput = ''; | |
for (var i = 0, c = sInput.length; i < c; i++) { | |
var nChar = sInput.charCodeAt(i); | |
if (nChar >= 33 && nChar <= 126) { | |
sTmp = String.fromCharCode(33 + (((nChar - 33) + 47) % 94)); | |
sOutput += sTmp | |
} else { | |
sOutput += sInput.charAt(i) | |
} | |
} | |
return sOutput | |
}; | |
$('.subscriber-only.encrypted-content').each(function(){ | |
$(this).html(tncmsunscramble($(this).text())); | |
$(this).show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment