Last active
May 15, 2022 09:59
-
-
Save andreif/7df8d930cf28ba61b2297ae22e98d6ca 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
function reveal_url() { | |
for (let el of document.getElementsByClassName("reveal-url")) { | |
let x = el.innerText.split("").reverse().join(""); | |
el.setAttribute("href", el.getAttribute("href") + x.replaceAll(" ", "")); | |
el.innerText = x; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment