GitHub add some blue

2/10/2025, 3:46:00 PM

目前为 2025-02-10 提交的版本。查看 最新版本

// ==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.0
// @author      -
// @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);
}
`);

QingJ © 2025

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