Skip to content

Instantly share code, notes, and snippets.

@robinovitch61
Created March 11, 2022 18:21
Show Gist options
  • Save robinovitch61/818759a8d54ad5916e80307a20959616 to your computer and use it in GitHub Desktop.
Save robinovitch61/818759a8d54ad5916e80307a20959616 to your computer and use it in GitHub Desktop.
Bookmarklet for unsubscribe button big
// https://caiorss.github.io/bookmarklet-maker/
const anchors = Array.from(document.getElementsByTagName("a"))
console.log(anchors);
const unsubscribe = anchors.find(anchor => anchor.innerText.toLowerCase().includes("unsubscribe")).cloneNode(true)
unsubscribe.innerText = "UNSUBSCRIBE"
unsubscribe.style.fontSize = "50px"
document.body.prepend(unsubscribe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment