您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove LIVE videos on Main Homepage
// ==UserScript== // @name Hide LIVE on YouTube // @version 1.1 // @description Remove LIVE videos on Main Homepage // @author Wim Godden <[email protected]> // @require http://code.jquery.com/jquery-latest.js // @match https://*.youtube.com/* // @grant none // @namespace https://greasyfork.org/users/48886 // @license GPL3 // ==/UserScript== (function() { 'use strict'; function removeLiveVideos(){ $( "span.ytd-badge-supported-renderer:contains(LIVE)").parent().parent().parent().parent().parent().parent().parent().parent().hide(); } const observer = new MutationObserver(removeLiveVideos); observer.observe(document.querySelector('#page-manager'), { childList:true, subtree:true }); })();