· 7 years ago · Dec 05, 2018, 11:28 PM
1// ==UserScript==
2// @name Less Jarring Gmail
3// @version 1.1
4// @include *gmail.com/*
5// @include *mail.google.com/*
6// ==/UserScript==
7
8// Some simple changes to the new gmail UI to make it a little less jarring.
9// All this does is adjust some of the new styles to act more like the old gmail. Thing's *shouldn't* be broken or lost...
10// That being said, This doesn't come with any warranty. Use at your own risk. Remove the script and/or revert to the old gmail if you have issues.
11
12// If you have any requests feel free to pm me on reddit: https://www.reddit.com/user/JamesBrentwood
13
14
15// Restyle with css.
16var GM_addStyle = window.GM_addStyle || function(css) {
17var h = document.getElementsByTagName('head');
18if (h) {
19 var style = document.createElement('style');
20 style.textContent = css;
21 h[0].appendChild(style);
22 }
23};
24
25function styles() {
26 GM_addStyle([
27
28 '.zA:hover {box-shadow:inset 0 -1px 0 0 rgba(100,121,143,0.122)!important; -moz-box-shadow:inset 0 -1px 0 0 rgba(100,121,143,0.122)!important;}\
29 .zA{box-shadow:inset 0 -1px 0 0 rgba(100,121,143,0.122)!important; -moz-box-shadow:inset 0 -1px 0 0 rgba(100,121,143,0.122)!important;}\
30 .Tm .ya{flex-direction: row-reverse!important;}\
31 .no .aeN{max-width: 190px !important; min-width: 190px !important;}\
32 .wT{max-width: 180px!important;min-width: 180px!important;}\
33 .zA .xW{display:block!important}\
34 .Ca{color: #992e2e!important;text-decoration: none!important;background-color: #eabda5!important;padding: 3px 6px!important;border-radius: 3px!important;}'
35
36 ].join(''));
37}
38
39styles();
40
41
42
43$(document).ready( function() {
44// end doc ready. Use if needed.
45});