Thursday, 2 February 2023

YouTube: Unsubscribe all the channels in one go (Mass Un Subscribe)

 

Let's learn how to unsubscribe from all the channels in one go. YouTube does not provide a feature to unsubscribe from all the channels. You can run the script manually to unsubscribe from all the channels.


Step 1: Go to YouTube
Step 2: Click on the Subscriptions on the left panel.

Step 3: Click on the Manage button on the top right.











Step 4: Right-click on the page and click Inspect






















Step 5: Go to the Console tab and paste the below script and press enter














var num = 0;
var myVar = setInterval(unSubscribe, 3000);
function unSubscribe () 
{
  var ele = document.getElementById('grid-container').getElementsByClassName('ytd-expanded-shelf-contents-renderer');
if (num < ele.length) 
{
ele[num].querySelector("[aria-label^='Unsubscribe from']").click();
setTimeout(function () 
{
document.getElementsByClassName('yt-spec-button-shape-next yt-spec-button-shape-next--text yt-spec-button-shape-next--call-to-action yt-spec-button-shape-next--size-m')[0].click()
}, 2000);
}
num++;
console.log(num + " unsubscribed");
console.log(ele.length + " Total");
}


The system will start unsubscribing the channel. 












If you have more than 70 subscribe channels. then you can rerun the script once the script is over. Default, it will pick the first 60-100 records.


That's all about this article. 

No comments:

Post a Comment

Implement Authorization in Swagger with Static Value in Header .Net 8

If you want an anonymous user should not run the APIs. To run your API Endpoints From Swagger / Postman / Code the user should pass the head...