Professional Documents
Culture Documents
Text Code For Unsubscribe All Youtube Channel
Text Code For Unsubscribe All Youtube Channel
*/
// This is the time delay after which the "unsubscribe" button is "clicked"; Change
it as per your need!
/**
* @param {Function} fn
*/
setTimeout(() => {
fn()
resolve()
}, delay)
})
// Get the channel list; this can be considered a row in the page.
var ctr = 0
channel.querySelector(`[aria-label^='Unsubscribe from']`).click()
document.getElementsByTagName(`yt-confirm-dialog-renderer`)[0]
ctr++
}, UNSUBSCRIBE_DELAY_TIME)
})()