您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes already watched videos from related videos.
// ==UserScript== // @name Remove Watched From Youtube Related Videos // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js // @namespace http://tampermonkey.net/ // @version 0.1 // @description Removes already watched videos from related videos. // @author Mithaldu // @match https://www.youtube.com/* // @grant none // ==/UserScript== var run_count = 0; function findwatched() { var progress_bar = $("ytd-thumbnail-overlay-resume-playback-renderer"); if(!progress_bar.length) return; var step; for (step = 0; step < 5; step++) { var next = progress_bar.parent(); if(!progress_bar.length) return progress_bar; progress_bar = next; } return progress_bar; } function remove_watched() { run_count++; var watched = findwatched(); while (watched) { watched.remove(); watched = findwatched(); } if(run_count == 20) return; setTimeout(arguments.callee, 1000); } (function(){remove_watched()})(1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址