暗色模式下晶莹剔透的hackertalk~

// ==UserScript==
// @name         黑客说++
// @namespace    https://expector-hutch.github.io//
// @version      0.1
// @description  美化黑客说
// @author       Expector
// @match        https://hackertalk.net/*
// @icon         https://hackertalk.net/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.styleSheets[0].addRule('body::-webkit-scrollbar', 'width: 4px;height: 4px;');
    document.styleSheets[0].addRule('body::-webkit-scrollbar-thumb', 'border-radius: 5px;box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);background: rgba(0, 0, 0, 0.2);');
    document.styleSheets[0].addRule('body::-webkit-scrollbar-track', 'box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);border-radius: 0;background: #3b82f6;');
    document.styleSheets[0].addRule('pre::-webkit-scrollbar', 'width: 4px;height: 4px;');
    document.styleSheets[0].addRule('pre::-webkit-scrollbar-thumb', 'border-radius: 5px;box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);background: rgba(0, 0, 0, 0.2);');
    document.styleSheets[0].addRule('pre::-webkit-scrollbar-track', 'box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);border-radius: 0;background: #3b82f6;');
    document.styleSheets[0].addRule('.overflow-y-auto::-webkit-scrollbar', 'width: 4px;height: 4px;');
    document.styleSheets[0].addRule('.overflow-y-auto::-webkit-scrollbar-thumb', 'border-radius: 5px;box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);background: rgba(0, 0, 0, 0.2);');
    document.styleSheets[0].addRule('.overflow-y-auto::-webkit-scrollbar-track', 'box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);border-radius: 0;background: #3b82f6;');
    document.styleSheets[0].addRule('.bg-primary', 'background: url(https://kaifa.baidu.com/assets/bkg-img-dark.624f42a6452944fb8b6fd3d0be459ac5.png);background-position: center center;background-repeat: no-repeat;background-attachment: fixed;background-size: cover;');
    document.styleSheets[0].addRule('.bg-content', 'background-color: rgb(30 41 59 / 55%) !important;backdrop-filter: blur(5px);');
})();
180 views
Comments
登录后评论
Sign In
·

移植了一个Stylus用的版本,已在描述注明作者 stuck_out_tongue

·

这是加个浏览器插件吗?

·

一眼就看出是kaifa.baidu.com的壁纸 stuck_out_tongue_closed_eyes