2/10/2025, 3:46:00 PM
当前为
// ==UserScript==
// @name GitHub add some blue
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @match https://*.github.com/*
// @grant GM_addStyle
// @run-at document-start
// @license MIT
// @version 1.0.1
// @author Mops
// @icon https://github.githubassets.com/favicons/favicon-dark.png
// @description 2/10/2025, 3:46:00 PM
// ==/UserScript==
GM_addStyle(`
/* All primary-themed buttons should be blue*/
html:is([data-color-mode="dark"][data-dark-theme="dark"],
[data-color-mode="dark"][data-dark-theme="dark"] ::backdrop,
[data-color-mode="auto"][data-light-theme="dark"],
[data-color-mode="auto"][data-light-theme="dark"] ::backdrop) {
--button-primary-bgColor-rest: var(--bgColor-accent-emphasis);
--button-primary-bgColor-active: #3685f3;
--button-primary-bgColor-hover: #2a7aef;
--button-primary-bgColor-disabled: #2f5080;
--button-primary-borderColor-disabled: #35598f;
--button-primary-borderColor-rest: var(--borderColor-accent-emphasis);
}
/* (Latest) pill and other success-themed pills */
.Label.Label--success,
/* (Preview) pill */
:where(.prc-Label-Label--LG6X):where([data-variant=success])
{
border-color: var(--borderColor-accent-emphasis);
color: var(--fgColor-accent);
}
`);