您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide the propaganda box on YouTube videos and remove clarify box
// ==UserScript== // @name Hide YouTube Propaganda Box // @namespace http://tampermonkey.net/ // @version 0.3 // @description Hide the propaganda box on YouTube videos and remove clarify box // @author Free Your Mind Enterprises Inc. // @match https://www.youtube.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to hide the propaganda box function hidePropagandaBox() { const propagandaBox = document.querySelector('.ytd-info-panel-content-renderer'); if (propagandaBox) { propagandaBox.style.display = 'none'; } const clarifyBox = document.getElementById('clarify-box'); if (clarifyBox) { clarifyBox.remove(); } } // Hide the box on page load window.addEventListener('load', hidePropagandaBox); // Hide the box on dynamic content changes const observer = new MutationObserver(hidePropagandaBox); observer.observe(document.body, { childList: true, subtree: true }); })();