Skip to content

Commit

Permalink
Use a shorter decode bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelb committed Nov 23, 2023
1 parent f84fb0b commit a15a348
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion js-compress.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>JS Compress</h1>
<script>
const twiceTheDeal = s => s.replace(/../g, c=>String.fromCharCode(c.charCodeAt(0) << 8 | c.charCodeAt(1)));
input.addEventListener('input', _ => {
output.value = "eval(unescape(escape`" + twiceTheDeal(input.value) + "`.replace(/u(..)(..)/g,'u00$1%u00$2')))";
output.value = "eval(unescape(escape`" + twiceTheDeal(input.value) + "`.replace(/u([^D].)/g,'$1%')))";
});
</script>
</body>
Expand Down

0 comments on commit a15a348

Please sign in to comment.