Guest User

UnsubscibeYTbyKMR

a guest
Dec 25th, 2020
275
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var i = 0;
  2. var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)");
  3. myTimer();
  4. function myTimer () {
  5.     if (count == 0) return;
  6.     el = document.querySelector('.ytd-subscribe-button-renderer');
  7.     el.click();
  8.     setTimeout(function () {
  9.         var unSubBtn = document.getElementById("confirm-button").click();
  10.         i++;
  11.         count--;
  12.         console.log(i + " unsubscribed");
  13.         console.log(count + " remaining");
  14.         setTimeout(function () {
  15.             el = document.querySelector("ytd-channel-renderer");
  16.             el.parentNode.removeChild(el);
  17.             myTimer();
  18.         }, 250);
  19.     }, 250);
  20. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×