您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide the Youtube adblock warning popup via CSS
// ==UserScript== // @name Youtube adblock popup hide // @namespace http://tampermonkey.net/ // @version 0.1 // @description Hide the Youtube adblock warning popup via CSS // @author BlissSol // @license MIT // @match https://www.youtube.com/* // @match https://youtube.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== (function() { 'use strict'; /* when youtube loads video, if popup doesn't appear the modal hasn't been injected - so we'll target it's parent element */ var popUP = document.querySelectorAll('ytd-popup-container')[0]; /* not really needed, but to screw with it & remove some styling, we'll change the class names */ popUP.className = "style-scopesing ytd-appy"; /* now we'll change the display of the parent element, so even if modal injected into page it wont display */ popUP.style.display = "none"; })();