Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Code to Unsubscribe all youtube channels.

/*
Code to Unsubscribe all the Youtube Channels.
Step1: Open Youtube on browser and sign in into your account.
Step2: Right click on window and click on inspect.
Step3: click on console window.
Step4: Paste the below code and hit enter.
*/

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();
Comment

PREVIOUS NEXT
Code Example
Javascript :: js canvas fill color 
Javascript :: react-native-paper password input 
Javascript :: regex match everything before string 
Javascript :: find max between 2 numbers javascript 
Javascript :: javascript remove from array by index 
Javascript :: react cloud foundry nginx 404 
Javascript :: how to get a randome element from a list in javascript 
Javascript :: js generate random boolean 
Javascript :: how to let a function execute after 5 seconds javascript 
Javascript :: ion button transparent 
Javascript :: js appendchild wait for callback 
Javascript :: push tr in tbody using jquery 
Javascript :: mongoose timestamps 
Javascript :: input in node js 
Javascript :: jquery set input checked 
Javascript :: js int to string 
Javascript :: javascript window alert 
Javascript :: unable to locate package npm 
Javascript :: python dictionary to json 
Javascript :: jquery if screen size 
Javascript :: discord.js change bot status 
Javascript :: search in a table jquery 
Javascript :: how to ask input in javascript 
Javascript :: validators.pattern angular number 
Javascript :: styled components error in nextjs 
Javascript :: get current url angular 
Javascript :: document.getelementbyid.onclick 
Javascript :: onclick cloSe tab in jquery 
Javascript :: local storage javascript object 
Javascript :: get keys of dictionary js 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =