Skip to content

Commit

Permalink
Supports new diff and code navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex authored Mar 2, 2023
1 parent f09be56 commit ec13d16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JetBrainsMono4GitHub
// @namespace https://userscript.clazex.net/
// @version 2.0.0
// @version 2.1.0
// @description Change GitHub code view font to JetBrains Mono
// @license MIT
// @author Clazex
Expand Down Expand Up @@ -42,8 +42,8 @@
function applyFont(font = getFont()) {
style?.remove();
style = GM_addStyle(
`pre, code.markdown-body, .blob-code-inner, .CodeMirror-lines, .react-code-text { font-family: ${font}, monospace !important }`
+ '.blob-code-inner, .CodeMirror-lines, .react-code-text { font-size: 1em !important; }'
`pre, code.markdown-body, .blob-code-inner, .CodeMirror-lines, .react-code-text, .diff-text, ul[aria-label="Code Navigation"] .PRIVATE_TreeView-item-content-text span { font-family: ${font}, monospace !important }`
+ '.blob-code-inner, .CodeMirror-lines, .react-code-text, .diff-text { font-size: 1em !important; }'
);

unregisterMenuCommand();
Expand Down

0 comments on commit ec13d16

Please sign in to comment.