🌈彩虹滚动条🌈

🌈彩虹滚动条,🌟美化页面的横向纵向滚动条,💖给你视觉上的舒适!🌈

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         🌈彩虹滚动条🌈
// @namespace    https://github.com/bencky1017/browserplugin/
// @version      1.0.3
// @description  🌈彩虹滚动条,🌟美化页面的横向纵向滚动条,💖给你视觉上的舒适!🌈
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAANqklEQVR4nO3dX4iVdRoH8O93CFm6KIxChKwuWugi2Da3rQ0kKxR2L4JYGjEjpcRS1ERzsyiyotjEZsqpZJVIiNWSjAppIS8KlhBCK4NuvCwihghd6KYunu9enPM7npk545zzdnzf9/c+zwPD+b1/zp95399nnuf3e9+ZoSSUGg89AxCtrxGca3eWCRCXgliCEfwVxJ9BLMAIFoCYN+N5I7M8Ft02zNfuq81ZjkPX9hnHh9O2zbauxyM487W716G1Xu3V6lpWe7tAiO3H9nNTu7WtvX+nPePrV4GTIicFfC7wPwb+V+D/0j7WtX93+/eX/n3OLjbMuKjUdwP6wbERxD8wgkV9d7LAkRMOCJwncpGARQL/ZOAGgd8J3CXw1dlwWOdDlhcjpb/j7DiWgvgYxETgQJNxTNmvC8AigRMGfixw6WxZpOwoH0hvHOtBfAJi2UCdLHA0BUf38jKBnxi4fjoOPxlk6snfBOL1gTtZ4Ggiju726wI3deOQqvl5Xm5MPfn3gNgTOLq2B47u9h6B9yQcPkqscyd/MYjDgaNre+CY0TbwsDSyuNUuPyoagxAg1gWOru2BoxeOlDnWGQBV1F3LjdYJWwxiXeDoHI/AMTsOGLBOGFnsaZC+InAgcPSHA8IIDFzhaQxyT+AIHAPgQBqslx1VFHVLQVwTOLrXB445cMDAayQunbN/DTmqyCALAkf3+sDRBw5IhIEL+uhhQ41qgASOwDE4DsgFkBHMDxxpOXAMgAMGzu+rjw0xqsgggSNwFMHh6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cPoAEjsBREIcLIIEjcBTF4eZKeuAIHEVwuMgggSNwFMXhAkjgCBxFcbgAEjgCR1EcPsYggSNwFMThJoMEjsBRBIcLIIEjcBTF4QJI4AgcRXH4GIMEjsDR43n94HCRQQJH4CiMwwOQwBE4iuJwkUECR+AoisPPGCRwBI7zfe5ZcLjIIIEjcBTF4QJI4AgchXG4ABI4AkdBHD7GIIEjcBTE4aPEChyBY5bluXD4ACKeCRwIHMVwnBl2f5wrKpjFwmTgCBxFMgeFyWH3x7miigwyGTgQOLq/3/5wOAECfmri6cDRPiCBo18cpwF8OtzeOHdUNYt1MHAgcPSPAwAOpnVlRlW3ux8NHK2HwNEXDlA46gJIu0OeNHFf4EDg6A/HPgonO8evxKjwSjr2BY7A0QcOUNjXOVYlR0VjEMDEkwK3B47AMQeO7RBOpmNVdlSQQaaUVbsN3Bk4Agd6t3dC2N05VsPrhn1HdX969Fxnf8aA5YEjcExrL4fwTDeOtL3MqMHvgwAmHpN4o4HHAod7HMco3Ajh2AwcHoCcZ8zxpYnLDdhk4neBwx2O7yhsameOL3vhqKLEKv9/FPbG0b3uVQP/LWG5icsM/IOJCwQsMHFe4GgEjl8BTFKYpHAKwDEKH1M4M+VY9Th+Zcf/AT5aa9Ufw1XTAAAAAElFTkSuQmCC
// @author       BenckyC
// @license      MIT
// @match        *://*/*
// @grant        GM_addStyle
// @note         2024-03-22 10:00:12 1.0.3  优化不同页面适配,取消强制滚动条宽度
// @note         2024-01-03 15:15:23 1.0.2  修改css强制等级,防止有些模块中不显示滚动条样式
// @note         2023-12-29 15:22:27 1.0.1  修改插件图标颜色,改为同滚动条一样的渐变色
// @note         2023-12-29 14:28:54 1.0.0  设置网页全局彩虹滚动条样式
// ==/UserScript==

(function () {
	'use strict';

	GM_addStyle(`
		::-webkit-scrollbar{
			max-width: 14px;
			max-height: 14px;
			display: static!important;
		}
		/*定义滚动条的轨道颜色、内阴影及圆角*/
		::-webkit-scrollbar-track{
			border-radius: 5px!important;
			-webkit-box-shadow: inset 0 0 12px rgba(0,0,0,1)!important;
			background:linear-gradient(to bottom, #FF567F, #FBEB91,#2EC2FF,#8375FF)!important;
			display:none!important;
		}
		/*定义滑块颜色、内阴影及圆角*/
		::-webkit-scrollbar-thumb{
			border-radius: 5px!important;
			-webkit-box-shadow: inset 0 0 10px rgba(255,255,255,1)!important;
			background:linear-gradient(to bottom, #FF567F, #FBEB91,#2EC2FF,#8375FF)!important;
		}
		/*定义水平滚动条的轨道颜色、内阴影及圆角*/
		::-webkit-scrollbar-track:horizontal{
			border-radius: 5px!important;
			-webkit-box-shadow: inset 0 0 12px rgba(0,0,0,1)!important;
			background:linear-gradient(to right, #FF567F, #FBEB91,#2EC2FF,#8375FF)!important;
			display:none!important;
		}
		/*定义水平滑块颜色、内阴影及圆角*/
		::-webkit-scrollbar-thumb:horizontal{
			border-radius: 5px!important;
			-webkit-box-shadow: inset 0 0 10px rgba(255,255,255,1)!important;
			background:linear-gradient(to right, #FF567F, #FBEB91,#2EC2FF,#8375FF)!important;
		}
		/*定义两端按钮的样式*/
		::-webkit-scrollbar-button {
			background-color:#343d46!important;
			display: none!important;
		}
		/*定义右下角汇合处的样式*/
		::-webkit-scrollbar-corner {
			background:#00000000!important;
			display: none!important;
		}
		/* 滚动框背景样式 */
		::-webkit-scrollbar-track-piece {
			background-color: #343d46!important;
			/* 背景色 */
			display:none!important;
		}




		/*---滚动条默认显示样式--*/

		/* ::-webkit-scrollbar-thumb {
			background-color: #018EE8;
			height: 50px;
			outline-offset: -2px;
			outline: 2px solid #fff;
			-webkit-border-radius: 4px;
			border: 2px solid #fff;
		} */

		/*---鼠标点击滚动条显示样式--*/
		/* ::-webkit-scrollbar-thumb:hover {
			background-color: #FB4446;
			height: 50px;
			-webkit-border-radius: 4px;
		} */

		/*---滚动条大小--*/
		/* ::-webkit-scrollbar {
			width: 16px;
			height: 16px;
		} */

		/*---滚动框背景样式--*/
		/* ::-webkit-scrollbar-track-piece {
			background-color: #fff;
			-webkit-border-radius: 0;
		} */
	`);
})();