Created
May 30, 2025 00:10
-
-
Save gustavomdsantos/a43f234f3030b33bcb853e587a560882 to your computer and use it in GitHub Desktop.
Redmine Custom Font - User JS for Tampermonkey / Greasemonkey / Violentmonkey.
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 Redmine Custom Font | |
// @namespace https://github.com/gustavomdsantos | |
// @version 1.0 | |
// @description Changes Redmine interface font to "Lato". Useful when "Helvetica" font (not suitable for screens) is installed on PC. | |
// @author Gustavo Moraes ([email protected]) | |
// @match https://sistemas.agricultura.gov.br/redmine/* | |
// @icon https://www.redmine.org/favicon.ico | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
const css = ` | |
body, input, textarea, select, button, table, th, td, h1, h2, h3, h4, h5, h6, div, span { | |
font-family: "Lato", "Arial", sans-serif !important; | |
} | |
`; | |
const style = document.createElement('style'); | |
style.textContent = css; | |
document.documentElement.appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment