Created
April 18, 2019 11:50
-
-
Save artizirk/7ae4cf3e201559240d00e6b3b070bc4f to your computer and use it in GitHub Desktop.
Fastmail monospace mail font
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name fastmail monospace | |
// @namespace http://zirk.me/userscript | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Arti | |
// @match https://www.fastmail.com/mail/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var css = [ | |
"pre.u-article {", | |
" font-family: monospace;", | |
"}", | |
"", | |
"textarea.v-Text-input {", | |
" font-family: monospace;", | |
"}" | |
].join("\n"); | |
var node = document.createElement("style"); | |
node.type = "text/css"; | |
node.appendChild(document.createTextNode(css)); | |
var heads = document.getElementsByTagName("head"); | |
if (heads.length > 0) { | |
heads[0].appendChild(node); | |
} else { | |
// no head yet, stick it whereever | |
document.documentElement.appendChild(node); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment