Created
September 13, 2019 21:24
-
-
Save Alexisgt01/17e22f8b897e17db49a1dc724f2f46e9 to your computer and use it in GitHub Desktop.
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
var obfusque = function() { | |
var links = document.querySelectorAll('.obf') | |
console.log(links) | |
if(links) { | |
for (var i = 0; i < links.length; i++) { | |
var link = links[i] | |
link.addEventListener('click', function (e) { | |
var href = atob(this.dataset.href) | |
window.location.replace(href) | |
}) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment