您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically collapse More videos popup in YouTube.
当前为
// ==UserScript== // @name Simplify Embedded YouTube Player // @description Automatically collapse More videos popup in YouTube. // @namespace https://gf.qytechs.cn/users/1458847 // @license MIT // @match https://www.youtube-nocookie.com/* // @match https://www.youtube.com/embed/* // @version 1.6 // ==/UserScript== (function () { "use strict"; var style = document.createElement("style"); style.textContent = ` div.ytp-pause-overlay{ visibility: hidden !important; } a.ytp-watermark{ visibility: hidden !important; } .ytp-paid-content-overlay{ visibility: hidden !important; } `; document.querySelector("head").appendChild(style); document.addEventListener( "keydown", function (event) { const targetElement = event.target; // dismiss subtitle background opacity setting key (w) if (event.key.toLowerCase() === "w") { preventPropagation(event); } }, true); window.addEventListener("load", function () { setTimeout(() => { //clickPlayButton(); clickCollapseButton(); //clickPlayButton(); }, 100); }); function preventPropagation(event){ event.preventDefault(); event.stopPropagation(); } function clickElement(selector) { const element = document.querySelector(selector); if (element) element.click(); } function clickPlayButton() { clickElement(".ytp-button.ytp-large-play-button"); } function clickCollapseButton() { clickElement(".ytp-button.ytp-collapse"); } function clickSubtitleButton() { clickElement(".ytp-button.ytp-subtitles-button"); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址