Last active
August 12, 2021 12:34
-
-
Save EverfreeFaerie/9c7676818a9db92845f137bfac2b6b70 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Twitter: Set custom font | |
// @version 2 | |
// @grant none | |
// @include https://twitter.com/* | |
// @include https://*.twitter.com/* | |
// ==/UserScript== | |
/* Change the font name in the apostrophes in the line below to your liking. */ | |
var font = 'Courier New'; | |
(function () { | |
var head = document.getElementsByTagName('head')[0]; | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = '* { font-family: \'' + font + '\' !important; }'; | |
head.appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment