Gmail Colour and Spacing Changes

Changes the colour and spacings of the new Gmail to look more like the old one. Could work on Chrome only...

  1. // ==UserScript==
  2. // @name Gmail Colour and Spacing Changes
  3. // @namespace https://gf.qytechs.cn
  4. // @description Changes the colour and spacings of the new Gmail to look more like the old one. Could work on Chrome only...
  5. // @author MSzynisz
  6. // @include http://mail.google.com/*
  7. // @include https://mail.google.com/*
  8. // @include http://*.mail.google.com/*
  9. // @include https://*.mail.google.com/*
  10. // @run-at document-start
  11. // @version 0.6
  12. // ==/UserScript==
  13. (function() {var css = [
  14. ".zE {background-color: #FFFFFF !important; color: #000000 !important;}",
  15. ".yO {background-color: #F3F3F3 !important; opacity: 1.0 !important; color: #000000 !important;}",
  16. ".x7 {background-color: #FFFFCC !important; opacity: 1.0 !important;}",
  17. ".xY {border-color: rgba(255, 255, 255, 1.0) !important; opacity: 1.0 !important;}",
  18. ".z0 {padding-left: 24px !important;}",
  19. ".z0 .L3{background-color: rgb(215,73,55) !important; color: white !important;}",
  20. ".z0 .L3::before{ -webkit-filter: drop-shadow(0px 0px 0.5px white) drop-shadow(0px 0px 0.5px white) drop-shadow(0px 0px 0.5px white) drop-shadow(0px 0px 0.5px white) drop-shadow(0px 0px 0.5px white)};",
  21. ".zw {padding: 10px 0 0 0;}",
  22. ".zA {box-shadow: inset 0 -1px 0 0 #DDD !important;}",
  23. "div.h7{ background-color: #FFFFFF; transparent; box-shadow: inset 0 1px 0 0px #DDD;}",
  24. ".byl .TN{height:26px !important;}",
  25. ".zw {padding-top: 10px !important;}",
  26. ".zw .TN{height:20px !important;}",
  27. ".G-atb::before{ box-shadow: inset 0 -1px 0 0 #DDD !important; }",
  28. "div.kv, div.kQ{ background-color: #F3F3F3; transparent; box-shadow: inset 0 1px 0 0px #DDD;}",
  29. "div.adv .G2{ padding-right:0px !important;}",
  30. "div.adv .Bk::after{ border-top: 1px solid #DDD !important; border-bottom: 1px solid #DDD !important;}",
  31. "div.adv{padding-right: 0px !important;}",
  32. "header{ background-color: #F3F3F3 !important; opacity: 1.0 !important; border-color: lightgray; border-bottom-style: solid; border-bottom-width: 0.7pt; }",
  33. "table{ border-color: rgba(255, 255, 255, 1.0) !important; }",
  34. "header form{ background: #FFFFFF !important; opacity: 1.0 !important; border-color: rgba(217, 217, 217, 1.0) !important}",
  35. ".if{ margin-right: 10px !important; }",
  36. ".G2{ padding-right: 10px !important; }",
  37. ".aju{height: 60px !important;}",
  38. ".hx, .gs{padding-bottom: 10px !important;}",
  39. ".hx, .gE{padding-top: 10px !important;}",
  40. ".if .byY{padding-top: 10px !important; padding-bottom: 0px !important;}",
  41. ".xT {align-items: center !important; padding-bottom: 1px !important;}"
  42. ].join("\n");
  43. if (typeof GM_addStyle != "undefined")
  44. {
  45. GM_addStyle(css);
  46. }
  47. else if (typeof PRO_addStyle != "undefined")
  48. {
  49. PRO_addStyle(css);
  50. }
  51. else if (typeof addStyle != "undefined")
  52. {
  53. addStyle(css);
  54. }
  55. else
  56. {
  57. var node = document.createElement("style");
  58. node.type = "text/css";
  59. node.appendChild(document.createTextNode(css));
  60. var heads = document.getElementsByTagName("head");
  61. if (heads.length > 0)
  62. {
  63. heads[0].appendChild(node);
  64. }
  65. else
  66. {
  67. document.documentElement.appendChild(node);
  68. }
  69. }
  70. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址