您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide videos not belonging to the channel when searching in it.
当前为
// ==UserScript== // @name YT Channel Query Fix // @namespace youtube.scripts // @version 1.7 // @description Hide videos not belonging to the channel when searching in it. // @include *.youtube.com/user/*search* // @include *.youtube.com/c*/*search* // ==/UserScript== (function() { 'use strict'; const INTERVAL = 1000; const this_channel = document.querySelector('#form[action]').action.replace(/.?search$/, ''); var last_count = 0; setInterval(() => { let nodes = document.querySelectorAll("ytd-item-section-renderer"); if(nodes.length === last_count) { return; } last_count = nodes.length; for(let e of nodes) { let a = e.querySelector("#metadata a"); if(!e.hidden && a.href != this_channel) { e.hidden = true; } } }, INTERVAL); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址