您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除YouTube视频播放器和缩略图圆角样式(修复适配)
// ==UserScript== // @name YouTube 干掉视频圆角 // @namespace http://tampermonkey.net/ // @version 1.3 // @description 去除YouTube视频播放器和缩略图圆角样式(修复适配) // @author yy // @match *://www.youtube.com/* // @grant GM_addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; GM_addStyle(` /* 主视频播放器容器 */ ytd-watch-flexy[rounded-player] #ytd-player.ytd-watch-flexy, ytd-watch-flexy[rounded-player-large] #ytd-player.ytd-watch-flexy, ytd-watch-flexy[rounded-player] #player-theater-container, ytd-watch-flexy[rounded-player-large] #player-theater-container { border-radius: 0px !important; overflow: hidden !important; } /* 视频内部 iframe 或 video 标签等(保险覆盖) */ #player video, #player iframe { border-radius: 0px !important; overflow: hidden !important; } /* Shorts 播放器容器 */ ytd-reel-video-renderer .player-container, ytd-reel-video-renderer .reel-player-container, ytd-reel-video-renderer video { border-radius: 0px !important; overflow: hidden !important; } /* 普通缩略图圆角去除 */ ytd-thumbnail a.ytd-thumbnail, ytd-thumbnail::before, ytd-thumbnail img { border-radius: 0px !important; } /* Shorts 缩略图容器 */ div[class*="ThumbnailContainerRounded"], .ShortsLockupViewModelHostThumbnailContainerRounded, ytd-reel-shelf-renderer ytd-thumbnail { border-radius: 0px !important; overflow: hidden !important; } /* 去除社区帖子的圆角 */ ytd-post-renderer[rounded-container] { border-radius: 0px !important; overflow: hidden !important; } /* 迷你播放器卡片去圆角 */ #card.ytd-miniplayer { border-radius: 0px !important; overflow: hidden !important; } `); })();