Greasy Fork

GitHub的Commits记录按钮外围加上黑色边框,并以蓝色字体和黄色背景高亮显示

GitHub's Commits recording button is surrounded by a black border, displayed in blue font, and highlighted with a yellow background

当前为 2024-01-03 提交的版本,查看 最新版本

// ==UserScript==
// @name         GitHub的Commits记录按钮外围加上黑色边框,并以蓝色字体和黄色背景高亮显示
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  GitHub's Commits recording button is surrounded by a black border, displayed in blue font, and highlighted with a yellow background
// @author       aspen138
// @match        https://github.com/*
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
       span[data-component="text"] span.Text-sc-17v1xeu-0.ghRVGj {
            border: 2px solid black !important;
            background-color: yellow !important; /* 添加黄色背景高亮 */
        }

        span.Text-sc-17v1xeu-0.ghRVGj {
            color: blue !important;
        }
    `);
})();