codergautamyt

unsubfromeveryone.js

Aug 25th, 2021 (edited)
1,342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // STEPS TO USE:
  2. // 1. Go to https://www.youtube.com/feed/channels
  3. // 2. Right click > Inspect Element > Console
  4. // 3. Paste script
  5. // 4. Press enter
  6.  
  7. var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;
  8. tick();
  9.  
  10. function tick() {  
  11.     if (count == 0) return console.log("Completed! Subscribe to Coder Gautam on YT!");
  12.  
  13.     el = document.querySelector('.ytd-subscribe-button-renderer');
  14.     el.click();
  15.  
  16.     setTimeout(function () {
  17.         var unSubBtn = document.getElementById("confirm-button").click();
  18.         count--;
  19.         console.log(count + " remaining");
  20.  
  21.         setTimeout(function () {
  22.             el = document.querySelector("ytd-channel-renderer");
  23.             el.parentNode.removeChild(el);
  24.  
  25.             tick();
  26.         }, 5);
  27.     }, 5);
  28. }
Add Comment
Please, Sign In to add comment