Last active
March 22, 2018 12:07
-
-
Save ykhorzon/716561941cc3db6627b96132e33f0957 to your computer and use it in GitHub Desktop.
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
// you have large amount of youtube subscription channel (100+), the this code work well at page https://www.youtube.com/feed/channels | |
// if the number of subscription is smaller, please change querySelectorAlltarget | |
var ele = document.querySelectorAll(".yt-uix-button-subscribed-branded"); | |
for(var i=0; i<ele.length; i++){ | |
ele[i].click(); | |
var unsus = document.querySelectorAll(".overlay-confirmation-unsubscribe-button"); | |
console.log(unsus[unsus.length-1].click()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment