NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name CodeMirror font
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Set font family to a nicer reading font and decrease font size
// @author salience
// @copyright 2025, salience (https://openuserjs.org/users/salience)
// @license MIT
// @match *://hackmd.io/*
// @run-at document-idle
// @grant none
// ==/UserScript==
const style = `<style>
.CodeMirror {
font-family: 'Cascadia Code', Inconsolata, Fira Code;
font-size: 14px;
}
</style>`;
(function() {
'use strict';
const head = document.getElementsByTagName("head")[0];
head.insertAdjacentHTML("beforeend", style);
})();