Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function confirmer() {
- var confirm = confirm = document.getElementsByClassName("overlay-confirmation-unsubscribe-button");
- for (var j = 0; j < confirm.length; j++) {
- confirm[j].click();
- }
- }
- function unsub() {
- console.log("executing loop... i = ", i);
- subs[i].click();
- i++
- setTimeout(confirmer(), 100);
- setTimeout(unsub(), 200);
- }
- var confirm = document.getElementsByClassName("overlay-confirmation-unsubscribe-button");
- var subs = document.getElementsByClassName("yt-uix-button-subscribed-branded");
- var i = 0;
- // To Use:
- // 1. log into youtube
- // 2. go to this url: https://www.youtube.com/subscription_manager
- // 3. add this script as a snippet in the chrome developer panel
- // F12 -> Sources -> Snippets -> New snippet -> copy/paste this code
- // 4. click 'Run snippet" in the lower right corrner
- // 5. in the Console window, type `unsub();` without the quotes, and press enter.
Advertisement
Add Comment
Please, Sign In to add comment