您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
YouTube评论区精选滚动条
// ==UserScript== // @name YouTube评论精选固定 // @namespace http://tampermonkey.net/ // @version 0.1 // @description YouTube评论区精选滚动条 // @author Aoki // @match *://www.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant none // @license MIT // ==/UserScript== (function() { var css = '{display:none !important;height:0 !important}'; css += '::-webkit-scrollbar-thumb{background-color: #888;border-radius: 4px;}'; css += '::-webkit-scrollbar-thumb:hover{background-color: #555;}'; css += '::-webkit-scrollbar-track{background-color: #f5f5f5;}'; css += '::-webkit-scrollbar-track:hover{background-color: #ddd;}'; css += '#sections{overflow: scroll;height: 70rem;}'; css += '#secondary{overflow: scroll;height: 80rem;}'; css += '::-webkit-scrollbar{width: 8px;background-color: #f5f5f5;}'; loadStyle(css) function loadStyle(css) { var style = document.createElement('style'); style.type = 'text/css'; style.rel = 'stylesheet'; style.appendChild(document.createTextNode(css)); var head = document.getElementsByTagName('head')[0]; head.appendChild(style); } })();