Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unsubscribe from all the Youtube channels at once?

I have subscribed to more than 300 Youtube channels in past 10 years, and now I have to clean my Youtube, unsubscribing all one by one will take some time, is there a way to unsubscribe all the cannels at once?

like image 209
Mark Twain Avatar asked Feb 19 '18 21:02

Mark Twain


People also ask

How to unsubscribe from YouTube?

Here is how you can do it: 1: Go ahead and open YouTube on your computer. 2: Now click on ‘ Subscriptions ’ from the left side menu. : Click on ‘ Manage ’. 4: Here, click on the ‘ SUBSCRIBED ’ button on the channel you want to unsubscribe. 5: On the pop-up menu, click on ‘ UNSUBSCRIBE ’.

How to manage YouTube subscriptions?

Step 1. Head to YouTube after launching the web browser. Step 2. Sign in to the YouTube account and get its homepage. Step 3. Click on Subscriptions in the left panel. Step 4. Find the blue button MANAGE near the top right corner of the screen and tap on it to manage your YouTube subscriptions.

Should you subscribe to many YouTube channels?

If you have used the same YouTube account for years, you probably subscribed to many channels. This scenario makes it easier to follow uploads from your favorite content creators, but it has its downsides.

How do I remove channels from my subscription?

All you have to do is go to the subscriptions section and click on MANAGE. Finally, click on UNSUBSCRIBE to remove specific channels from your subscription. Q2.


2 Answers

Updating the answer provided by everyone else (as the latest update did not work for me):

var i = 0;
var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;

myTimer();

function myTimer () {	
    if (count == 0) return;

    el = document.querySelector('.ytd-subscribe-button-renderer');
    el.click();

    setTimeout(function () {
        var unSubBtn = document.getElementById("confirm-button").click();
        i++;
        count--;

        console.log(i + " unsubscribed");
        console.log(count + " remaining");

        setTimeout(function () {
            el = document.querySelector("ytd-channel-renderer");
            el.parentNode.removeChild(el);

            myTimer();
        }, 250);
    }, 250);
}

For me this did the trick.

like image 168
Jani Kärkkäinen Avatar answered Oct 05 '22 23:10

Jani Kärkkäinen


Step 1: Go to https://www.youtube.com/feed/channels and scroll to the bottom of the page to populate all items to the screen.

Step 2: Right-click anywhere on the page and click "Inspect Element" (or just "Inspect"), then click "Console", then copy–paste the below script, then hit return.

Step 3:

var i = 0;

var myVar = setInterval(myTimer, 3000);

function myTimer () {

    var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer");

    if (i < els.length) {

        els[i].querySelector("[aria-label^='Unsubscribe from']").click();

        setTimeout(function () {

            var unSubBtn = document.getElementById("confirm-button").click();

        }, 2000);

        setTimeout(function () {

            els[i].parentNode.removeChild(els[i]);

        }, 2000);

    }

    i++;

    console.log(i + " unsubscribed by YOGIE");

    console.log(els.length + " remaining");

}

Step 4: Sit back and watch the magic!

Enjoy!!

NOTE: If the script stops somewhere, please refresh the page and follow all four steps again.

like image 35
Yogie Avatar answered Oct 06 '22 00:10

Yogie