您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Moves Elements Off The Video To The Side.
// ==UserScript== // @name YouTube Shorts Cleaner UI // @namespace http://tampermonkey.net/ // @version 1.2 // @description Moves Elements Off The Video To The Side. // @author Nate2898 // @match *://*.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @license MIT // @grant none // @namespace https://gf.qytechs.cn/en/users/1083698 // ==/UserScript== (function() { 'use strict'; let lastUrl = location.href; //function applies the CSS rules dynamically function applyCustomCSS() { const customCSS = ` ytd-reel-video-renderer:not([showing-expanded-overlay]) .overlay.ytd-reel-video-renderer { overflow: visible; } .metadata-container.ytd-reel-player-overlay-renderer { position: relative; transform: translateX(-100%); width:60%; top:-60%; } `; const styleSheet = document.createElement("style"); //Set the inner text of the style element to the custom CSS styleSheet.type = "text/css"; styleSheet.innerText = customCSS; //Append the style element to the head of the document document.head.appendChild(styleSheet); } //function to detect URL changes to ensure CSS is applied function observeUrlChange() { setInterval(() => { const currentUrl = location.href; if (currentUrl !== lastUrl) { lastUrl = currentUrl; applyCustomCSS(); } }, 1000); //checks every few secs } applyCustomCSS(); observeUrlChange(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址