您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the dismissible banner from YouTube
// ==UserScript== // @name YouTube Dismissible Banner Remover // @namespace http://youtube.com // @description Removes the dismissible banner from YouTube // @author jflow // @match https://*.youtube.com/* // @version 1 // @run-at document-idle // @license MIT // ==/UserScript== // This removes it by class. There are two classes for the div that holds the banner // ".style-scope" and ".ytd-statement-banner-renderer". I narrowed it to just the 2nd // one in order to be more specific but it may need to include both or just the first // one. Will have to wait until the next banner shows up to be sure. If it needs to be // both, it will look like this: // const elements = document.querySelectorAll('.style-scope.ytd-statement-banner-renderer'); //for (const element of elements) { // element.remove(); //} // if it only needs the first one, just change it to '.style-scope' const elements = document.querySelectorAll('.ytd-statement-banner-renderer'); for (const element of elements) { element.remove(); }