您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Round the Youtube watch video screen
当前为
// ==UserScript== // @name Rounded Youtube // @namespace https://github.com/Arora-Sir // @version 0.33 // @license MIT // @description Round the Youtube watch video screen // @author Mohit Arora // @match https://www.youtube.com/watch* // @icon https://www.svgrepo.com/show/92784/youtube.svg // @grant none // ==/UserScript== (function() { 'use strict'; var OuterVideoPlayer = document.querySelector(".html5-video-player"); if(OuterVideoPlayer!=null){ OuterVideoPlayer.style.borderRadius = "15px"; // console.log('Not Null'); } else{ while (OuterVideoPlayer.style.borderRadius != "15px"){ OuterVideoPlayer.style.borderRadius = "15px"; // console.log('Null'); }; } document.addEventListener("keydown", checkKeyPressed, false); function checkKeyPressed(f) { if(OuterVideoPlayer.style.borderRadius == "0px"){ OuterVideoPlayer.style.borderRadius = "15px"; } else{ OuterVideoPlayer.style.borderRadius == "0px" } } // const FullScreenButton = document.getElementsByClassName("ytp-fullscreen-button"); // FullScreenButton.addEventListener('click', function handleClick() { // console.log('element clicked'); // document.querySelector(".html5-video-player").style.borderRadius = "500px"; // }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址