l****8 发帖数: 969 | 1 就看小将有没有这样的智商和胆量用这个script了
想要封杀粉红视频的script吗?留言把要加黑名单的粉红频道留下
回头我做个黑名单,配合这个script使用
让你的油管永远清净
This is one way to tell Youtube to recommend new videos.
Copy the below code in your Browser Console (press F12 > Console):
await markAllVideosAsNotBeingInteresting({
iterations: 1
});
async function markAllVideosAsNotBeingInteresting({iterations}) {
for (let i=0; i
await markCurrentVideosAsNotBeingInteresting();
console.log(`Iteration ${i} completed. Waiting 300ms`);
await sleep(300);
}
if(confirm("I'm done! Do you want to reload the page", "Yes")) {
location.reload();
}
}
async function markCurrentVideosAsNotBeingInteresting() {
const videoMenuButtons = document.querySelectorAll("yt-icon.ytd-menu-
renderer");
for (let i=0; i
if(!videoMenuButtons[i]) {
continue
}
videoMenuButtons[i].scrollIntoView();
await sleep(10);
// Open the video menu
videoMenuButtons[i].click();
await sleep(50);
// Click on "Not interested" button
var notInterestedButton = document.querySelector("#items > ytd-menu-
service-item-renderer:nth-child(5) > tp-yt-paper-item");
if(!notInterestedButton) {
continue
}
notInterestedButton.click();
console.log("One video has been marked. Waiting 100ms");
window.scrollBy(0, 95);
await sleep(100);
}
}
// Utils
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
PS. I'm not responsible if your accound get banned (Up until now, I wasn't
banned) .
Thanks! | p*****o 发帖数: 1 | 2 那个每次reload 然后 300毫秒会不会很烦的 |
|