您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press ctrl+i to toggle on and off the YouTube playback controls.
// ==UserScript== // @name YouTube Controls Toggle // @namespace http://tampermonkey.net/ // @version 2024-10-09 // @description Press ctrl+i to toggle on and off the YouTube playback controls. // @author OOPS! Studio! // @match https://www.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant none // ==/UserScript== (function() { 'use strict'; let hideThese = [document.getElementsByClassName("ytp-gradient-bottom")[0], document.getElementsByClassName("ytp-chrome-bottom")[0]]; document.addEventListener("keydown", e => { if(e.key === "i" && e.ctrlKey){ hideThese.forEach(element => element.style.visibility = element.style.visibility === "hidden" ? "visible" : "hidden"); } }); })();