您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto-clicks "I understand and wish to proceed" on YouTube videos with sensitive content warnings.
// ==UserScript== // @name Auto-click Content Warnings // @namespace http://tampermonkey.net/ // @version 0.1 // @description Auto-clicks "I understand and wish to proceed" on YouTube videos with sensitive content warnings. // @author InariOkami // @icon https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/YouTube_icon_%282011-2013%29.svg/512px-YouTube_icon_%282011-2013%29.svg.png?20130131084147 // @match https://www.youtube.com/* // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; function clickProceedButton() { const proceedButton = document.querySelector('button[aria-label="I understand and wish to proceed"]'); if (proceedButton) { proceedButton.click(); } } setInterval(clickProceedButton, 1000); })();