Last active
November 22, 2017 20:50
-
-
Save DessertArbiter/c940acf5617b2b4c01bcaa7fe653a159 to your computer and use it in GitHub Desktop.
Unsubscribe from all YouTube channels on current page
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 button = document.getElementsByClassName("subscribed-label"); | |
for(var i=0;i<button.length;i++) | |
{ | |
button[i].click(); | |
var unsub = document.getElementsByClassName("overlay-confirmation-unsubscribe-button"); | |
//console.log(unsub.length) | |
for(var j=0;j<unsub.length;j++) | |
unsub[j].click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this!