Created
October 9, 2019 16:27
-
-
Save topleague/7961b079424e1e5735bd829f7d6ddf32 to your computer and use it in GitHub Desktop.
TamperMonkey Script for Gmail Layout
This file contains 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 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