您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove external (channel) videos in queries.
当前为
// ==UserScript== // @name YT Channel Query Fix // @namespace youtube.scripts // @version 1.3 // @description Remove external (channel) videos in queries. // @include *.youtube.com/*search* // ==/UserScript== (function() { 'use strict'; const INTERVAL = 500; const MAX_HITS = 5; const this_channel = location.href.match(/(.*)\//)[1]; var hits = 0; var id = setInterval(() => { let ns = document.querySelectorAll("ytd-item-section-renderer"); for(let e of ns) { let a = e.querySelector("#metadata a"); if(!e.hidden && a.href != this_channel) { e.hidden = true; hits = hits + 1; if(hits >= MAX_HITS) { clearInterval(id); break; } } } }, INTERVAL); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址