您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
shorts is a shit, fuck you youtube
当前为
// ==UserScript== // @name Youtube Anti Shorts // @name:zh Youtube Anti Shorts 反短片 // @namespace Anong0u0 // @version 0.3 // @description shorts is a shit, fuck you youtube // @description:zh 短片就是坨屎,去你的youtube // @author Anong0u0 // @match *://*.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant none // @require https://cdn.jsdelivr.net/npm/[email protected]/minified/arrive.min.js // @license MIT // ==/UserScript== // =================== // If you don't like these feature, you can turn it off with replace true to false. // 如果你不喜歡這些功能,你可以把true改成false來關閉。 const Hide_Shorts_Renderer = true; const Hide_Shorts_Video = true; const Redirect_Shorts_URL = true; // =================== Node.prototype.getParentElement = function(times = 0){return (times > 0) ? this.parentElement.getParentElement(times-1):this;} if(Hide_Shorts_Renderer) { const css = document.createElement("style"); css.innerHTML = ` ytd-reel-shelf-renderer.style-scope.ytd-item-section-renderer, ytd-mini-guide-entry-renderer[aria-label='Shorts'], ytd-rich-shelf-renderer[is-shorts], a.yt-simple-endpoint.style-scope.ytd-guide-entry-renderer[title='Shorts'] {display:none !important}`; document.documentElement.append(css); } if(Hide_Shorts_Video) { document.arrive('a[href^="/shorts"]', (e)=> { e.getParentElement(3).style.display = "none" }); } if(Redirect_Shorts_URL) { var oldHref = null; new MutationObserver(() => // onUrlChange { if (oldHref == window.location.href) return; oldHref = window.location.href; if(window.location.pathname.indexOf("/shorts/")!=-1) window.location.replace(window.location.href.replace("/shorts/","/watch?v=")); }).observe(document.body, {childList: true, subtree: true}); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址