Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 23, 2020 02:00 pm GMT

Unsubscribe all YouTube channels at once!

Without any boring intro, let me get straight to the point.

  1. Go to this link

Alt Text

  1. Right-click and go inspect then go to console

Alt Text

  1. Now copy the below script and paste it on the console
function youtubeUnsubscriber() {    var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;    var randomDelay = 500;    if(count == 0) return false;    function unsubscribeVisible(randomDelay) {        if (count == 0) {            window.scrollTo(0,document.body.scrollHeight);            setTimeout(function() {                youtubeUnsubscriber();            }, 10000)        }        unsubscribeButton = document.querySelector('.ytd-subscribe-button-renderer');        unsubscribeButton.click();        setTimeout(function () {            document.getElementById("confirm-button").click()            count--;            console.log("Remaining: ", count);            setTimeout(function () {                unsubscribedElement = document.querySelector("ytd-channel-renderer");                unsubscribedElement.parentNode.removeChild(unsubscribedElement);                unsubscribeVisible(randomDelay)            }, randomDelay);        }, randomDelay);    }    unsubscribeVisible(randomDelay);}youtubeUnsubscriber();
Enter fullscreen mode Exit fullscreen mode
  1. Hit enter and wait for some time to see the magic

Alt Text

After all are done, refresh the page.

Alt Text


Original Link: https://dev.to/manitej/unsubscribe-all-youtube-channels-at-once-3m95

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To