Skip to content

Instantly share code, notes, and snippets.

@topleague
Created October 9, 2019 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topleague/7961b079424e1e5735bd829f7d6ddf32 to your computer and use it in GitHub Desktop.
Save topleague/7961b079424e1e5735bd829f7d6ddf32 to your computer and use it in GitHub Desktop.
TamperMonkey Script for Gmail Layout
// ==UserScript==
// @name Gmail Font Type and Size
// @include https://mail.google.com/mail*
// @description Set Gmail font to classic view
// @version 1.0
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('.gmail_default {font-family: Lucida Grande!important;}');
addGlobalStyle('.aoT {font-family: Lucida Grande!important;}');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment