CSS: meteoblue.com

Corrections of meteoblue.com CSS

目前为 2020-12-28 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: meteoblue.com
  3. // @description Corrections of meteoblue.com CSS
  4. // @author MK
  5. // @homepage https://greasyfork.org/en/scripts/419280
  6. // @namespace https://greasyfork.org/users/309172
  7. // @include https://www.meteoblue.com/*
  8. // @include http://www.meteoblue.com/*
  9. // @version 1.0
  10. // ==/UserScript==
  11.  
  12. (function() {var css = [" /*Position of cloud icons*/",
  13. " .picto .weekday.alt {",
  14. " line-height: unset !important;",
  15. " }",
  16. "",
  17. " /*Font size in hourly forecast table*/",
  18. " .hourly-forecast .hourlywind > tbody {",
  19. " font-size: 70% !important;",
  20. " }",
  21. "",
  22. " /*Dividers between cloud icons*/",
  23. " /*.hourly-forecasr .hourlywind > tbody > tr:nth-of-type(1),*/",
  24. " .hourly-forecast .hourlywind tr.pictos_3h td {",
  25. " padding: 0 !important;",
  26. " border-right-color: gray !important;",
  27. " border-right-style: solid !important;",
  28. " border-right-width: thin !important;",
  29. " }",
  30. "",
  31. " /*Active tab colour*/",
  32. " .tab.active {",
  33. " background: #ffc4000f !important;",
  34. " /*background: #ffffff !important;*/",
  35. " }",
  36. " /*Tab colour*/",
  37. " .tab {",
  38. " background: #e7ecf0 !important;",
  39. " /*background: #eaeaea !important;*/",
  40. " }",
  41. " /*Predictability meter background*/",
  42. " .tab_content .tab_predictability .meter_outer {",
  43. " background-color: hsl(0, 0%, 96.9%) !important;",
  44. " }"
  45. ].join("\n");
  46. if (typeof GM_addStyle != 'undefined') {
  47. GM_addStyle(css);
  48. } else if (typeof PRO_addStyle != 'undefined') {
  49. PRO_addStyle(css);
  50. } else if (typeof addStyle != 'undefined') {
  51. addStyle(css);
  52. } else {
  53. var node = document.createElement('style');
  54. node.type = 'text/css';
  55. node.appendChild(document.createTextNode(css));
  56. var heads = document.getElementsByTagName('head');
  57. if (heads.length > 0) { heads[0].appendChild(node);
  58. } else {
  59. // no head yet, stick it whereever
  60. document.documentElement.appendChild(node);
  61. }
  62. }})();