Skip to content

Instantly share code, notes, and snippets.

@helb
Last active July 9, 2018 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helb/6dd8a41ae8bbf420f8a8abcc89e72c62 to your computer and use it in GitHub Desktop.
Save helb/6dd8a41ae8bbf420f8a8abcc89e72c62 to your computer and use it in GitHub Desktop.
YouTube – unsubscribe all
// run in console on https://www.youtube.com/feed/channels (and wait):
document.querySelectorAll("paper-button[subscribed]").forEach((btn, i) => {
setTimeout(()=>{
btn.click();
setTimeout(()=>{
document.querySelector("paper-button.style-blue-text").click()
}, 500)
}, 1000 + (i*2500));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment