in this article, I will show you how to unsubscribe all your youtube channels with just a single click
step: 1 open link on browser
https://www.youtube.com/feed/channels
step: 2 open inspect and go to console section
step: 3 copy and paste below line of code :
var i = 0;
var count = 0;
var sub_btn = null;
count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;
function YoutubeSub () {
if (count == 0)
{
return;
}
else
{
sub_btn = document.querySelector('.ytd-subscribe-button-renderer');
if( sub_btn !== null )
{
sub_btn.click();
setTimeout(function () {
document.querySelector("#confirm-button").click();
i++;
count--;
var channelname = document.querySelector('#text.ytd-channel-name').innerText;
console.log(i + " - unsubscribed " + channelname);
console.log(count + " : remaining");
setTimeout(function () {
sub_btn = document.querySelector("ytd-channel-renderer");
sub_btn.parentNode.removeChild(sub_btn);
YoutubeSub();
}, 250);
}, 250);
}
}
}
YoutubeSub();
step: 4 now hit enter
0 Comments
if you have any doubts , please let me know