Skip to content

Instantly share code, notes, and snippets.

@andreif
Last active May 15, 2022 09:59
Show Gist options
  • Save andreif/7df8d930cf28ba61b2297ae22e98d6ca to your computer and use it in GitHub Desktop.
Save andreif/7df8d930cf28ba61b2297ae22e98d6ca to your computer and use it in GitHub Desktop.
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