Skip to content

Instantly share code, notes, and snippets.

@gustavomdsantos
Created May 30, 2025 00:10
Show Gist options
  • Save gustavomdsantos/a43f234f3030b33bcb853e587a560882 to your computer and use it in GitHub Desktop.
Save gustavomdsantos/a43f234f3030b33bcb853e587a560882 to your computer and use it in GitHub Desktop.
Redmine Custom Font - User JS for Tampermonkey / Greasemonkey / Violentmonkey.
// ==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