🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/13 20:39:45
🔄 下次更新时间:2026/01/13 21:39:45
手动刷新缓存

GitHub Classic Fonts

Use the pre-2017 fonts on GitHub, instead of whatever fonts GitHub's designers fancy each week

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

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.

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

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

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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 Classic Fonts
// @namespace    https://greasyfork.org/en/users/8615-joeytwiddle
// @version      1.0.0
// @description  Use the pre-2017 fonts on GitHub, instead of whatever fonts GitHub's designers fancy each week
// @author       joeytwiddle
// @license      ISC
// @match        https://github.com/*
// @match        https://*.github.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

	// Copied from my fork of Make GitHub Great Again, a Chrome extension which reverts a lot of GitHub's style changes
	// https://github.com/joeytwiddle/MakeGithubGreatAgain

	// This version actually uses the monospace font set in your browser, so you can configure it more easily.

    GM_addStyle(`
		/* main font */
		body,
		.markdown-body {
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
			/* font-size: 14px; line-height: 1.5; color: #24292e; background-color: #fff; */
		}

		/* monospace font styles from frameworks.css 2017/01/01 */
		code,
		kbd,
		pre,
		samp {
			font-family: monospace, monospace;
		}
		tt,
		code {
			font-family: monospace;
		}
		pre {
			font: 12px monospace
		}
		.CodeMirror,
		.CodeMirror-dialog input,
		.file-editor-textarea,
		.input-monospace {
			font-family: monospace, monospace;
		}
		.cm-s-github .CodeMirror-lines {
			font-family: monospace;
		}

		/* monospace font styles from github.css 2017/01/01 */
		.branch-name {
			font: 12px monospace;
		}
		.commit-ref {
			font: 0.75em/2 monospace;
		}
		.commit .sha-block,
		.commit .sha {
			font-family: monospace;
		}
		.commit-desc pre {
			font-family: monospace;
		}
		.commit-tease-sha {
			font-family: monospace;
		}
		.blob-num {
			font-family: monospace;
		}
		.blob-code-inner {
			font-family: monospace;
		}
		.gollum-editor .gollum-editor-body {
			font-family: monospace;
		}
		.gollum-editor .expanded textarea {
			font-family: monospace;
		}
		.gollum-dialog-dialog-body fieldset .code {
			font-family: monospace;
		}
		kbd {
			font: 11px monospace;
		}
		.credit-card .cvv {
			font-family: monospace;
		}
		.credit-card .text {
			font-family: monospace;
		}
		.default-label .sha {
			font-family: monospace;
		}

		/* monospace font styles from site.css 2017/01/01 */
		.alt-mono-font {
			font-family: monospace;
		}
		.pullquote {
			font-family: monospace;
		}
		.casestudy-body blockquote {
			font-family: monospace;
		}
		.file-info {
			font-family: monospace;
		}
		.text-mono {
			font-family: monospace;
		}
	`);
})();