Greasy Fork is available in English.

GitHub add some blue

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

Version vom 10.02.2025. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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);
}
`);