summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js')
-rw-r--r--static/js/deobfuscate.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/static/js/deobfuscate.js b/static/js/deobfuscate.js
index ef8d60b..498dade 100644
--- a/static/js/deobfuscate.js
+++ b/static/js/deobfuscate.js
@@ -1,9 +1,10 @@
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);
- });
+document.addEventListener('DOMContentLoaded', function() {
+ const obfuscated = document.querySelectorAll('.obfuscated');
+ obfuscated.forEach((el) => {
+ var fixed = deobfuscate(el.innerHTML);
+ el.innerHTML = fixed;
+ });
});