页面美化(滚动条)

自用的一些美化,不定时更新

目前为 2021-11-21 提交的版本。查看 最新版本

// ==UserScript==
// @name         页面美化(滚动条)
// @license      MIT
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  自用的一些美化,不定时更新
// @author       攸泠
// @match        http://*/*
// @match        https://*/*
// @grant        none
// ==/UserScript==

(function() {
    /*创建一个style节点*/
    var style = document.createElement("style");
    /*在style节点中编写样式*/
    style.innerHTML = `
        ::-webkit-scrollbar{max-width:15px;}
        ::-webkit-scrollbar-track{border-radius: 15px;
        -webkit-box-shadow:inset 0 0 13px rgba(0,0,0,0.7)}
        ::-webkit-scrollbar-thumb{border-radius:15px;background:rgba(0,0,0,0.2);
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);}
    `;
    /*将style节点添加进head节点中,使之生效*/
    document.getElementsByTagName('head')[0].append(style);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址