-
-
Save seraph/e9d8057b25ef883683d810b80b620cbd 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