Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // STEPS TO USE:
- // 1. Go to https://www.youtube.com/feed/channels
- // 2. Right click > Inspect Element > Console
- // 3. Paste script
- // 4. Press enter
- var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length;
- tick();
- function tick() {
- if (count == 0) return console.log("Completed! Subscribe to Coder Gautam on YT!");
- el = document.querySelector('.ytd-subscribe-button-renderer');
- el.click();
- setTimeout(function () {
- var unSubBtn = document.getElementById("confirm-button").click();
- count--;
- console.log(count + " remaining");
- setTimeout(function () {
- el = document.querySelector("ytd-channel-renderer");
- el.parentNode.removeChild(el);
- tick();
- }, 5);
- }, 5);
- }
Add Comment
Please, Sign In to add comment