立即取消订阅所有 YouTube 频道!
我不想做任何无聊的介绍,而是直接进入正题。
- 转到此链接
- 右键单击并检查,然后转到控制台
- 现在复制以下脚本并将其粘贴到控制台上
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();
- 按下回车键并等待一段时间即可看到奇迹
全部完成后,刷新页面。
鏂囩珷鏉ユ簮锛�https://dev.to/manitej/unsubscribe-all-youtube-channels-at-once-3m95