Skip to content

Instantly share code, notes, and snippets.

@hannorein
Created July 24, 2023 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannorein/993e2632cb8391668a88eddbfc26540c to your computer and use it in GitHub Desktop.
Save hannorein/993e2632cb8391668a88eddbfc26540c to your computer and use it in GitHub Desktop.
unscramble_tncsm.js
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