Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
TamperMonkey Script for Gmail Layout
// ==UserScript==
// @name Gmail Font Type and Size
// @include*
// @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;
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