您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the annoying consent-bump from youtube.com. (the final . is necessary for removing ads)
// ==UserScript== // @name YouTube consent bump remove // @namespace http://tampermonkey.net/ // @version 0.1 // @description Remove the annoying consent-bump from youtube.com. (the final . is necessary for removing ads) // @author Federico Antoniazzi // @match https://www.youtube.com./* // @grant none // ==/UserScript== (function() { 'use strict'; let noisy = null let counter = 10 const nail = muteConsentBump() || setInterval(() => { counter--; if (!counter) { clearInterval(nail); } muteConsentBump(); }, 500); function muteConsentBump() { noisy = document.getElementById("consent-bump"); if (noisy) { noisy.remove(); console.log("FATTO"); return true; } } })();