Skip to content

Instantly share code, notes, and snippets.

@tambry
Last active July 5, 2023 06:47
Show Gist options
  • Save tambry/5946eb1c020f4e5b3013a07641211ef7 to your computer and use it in GitHub Desktop.
Save tambry/5946eb1c020f4e5b3013a07641211ef7 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove custom GitLab fonts
// @namespace https://tambre.ee/
// @version 1.11
// @description Replace GitLab's own serif (GitLab Sans) and monospace (JetBrains Mono) fonts with Consolas and Segoe UI.
// @author Raul Tambre
// @match https://gitlab.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com
// @grant GM_addStyle
// @updateURL https://gist.github.com/tambry/5946eb1c020f4e5b3013a07641211ef7/raw/remove-custom-gitlab-fonts.user.js
// @downloadURL https://gist.github.com/tambry/5946eb1c020f4e5b3013a07641211ef7/raw/remove-custom-gitlab-fonts.user.js
// @supportURL https://gist.github.com/tambry/5946eb1c020f4e5b3013a07641211ef7#new_comment_field
// ==/UserScript==
'use strict';
GM_addStyle(`
:root
{
--default-mono-font: "Consolas";
--default-regular-font: "Segoe UI";
}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment