CSS: meteoblue.com

Corrections to UI of meteoblue.com

当前为 2021-01-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: meteoblue.com
  3. // @description Corrections to UI of meteoblue.com
  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.2.1
  10. // @note v1.2.1 2021-01-17 - temperature font size corrected
  11. // @note v1.2 2021-01-01 - code is rewritten to add CSS to the end of the document instead of <HEAD> tag in order to overcome possible server side CSS with !important rule
  12. // @note v1.1 2020-12-29 - code rectified
  13. // @note v1.0 2020-12-28 - initial release
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. var css = `
  18. /*Position of cloud icons*/
  19. .picto .weekday.alt {
  20. line-height: unset !important;
  21. }
  22. /*Font size of temperature*/
  23. .tab_content .tab_temp_max, .tab_content .tab_temp_min {
  24. line-height: 24.5px;
  25. font-size: 17.5px;
  26. }
  27.  
  28. /*Font size in hourly forecast table*/
  29. .hourly-forecast .hourlywind > tbody {
  30. font-size: 70% !important;
  31. }
  32.  
  33. /*Dividers between cloud icons*/
  34. /*.hourly-forecasr .hourlywind > tbody > tr:nth-of-type(1),*/
  35. .hourly-forecast .hourlywind tr.pictos_3h td {
  36. padding: 0 !important;
  37. border-right-color: gray !important;
  38. border-right-style: solid !important;
  39. border-right-width: thin !important;
  40. }
  41.  
  42. /*Active tab colour*/
  43. .tab.active {
  44. background: #ffc4000f !important;
  45. /*background: #ffffff !important;*/
  46. }
  47. /*Tab colour*/
  48. .tab {
  49. background: #e7ecf0 !important;
  50. /*background: #eaeaea !important;*/
  51. }
  52. /*Predictability meter background*/
  53. .tab_content .tab_predictability .meter_outer {
  54. background-color: hsl(0, 0%, 96.9%) !important;
  55. }
  56.  
  57. /*Social icons*/
  58. .social {
  59. font-size: 100% !important;
  60. }
  61. .social a {
  62. font-size: 100% !important;
  63. }
  64.  
  65. /*Headers*/
  66. h2, h3 {
  67. font-size: 150% !important;
  68. }
  69. `;
  70.  
  71. if (typeof GM_addStyle != 'undefined') {
  72. GM_addStyle(css);
  73. } else if (typeof PRO_addStyle != 'undefined') {
  74. PRO_addStyle(css);
  75. } else if (typeof addStyle != 'undefined') {
  76. addStyle(css);
  77. } else {
  78. var node = document.createElement('style');
  79. node.type = 'text/css';
  80. node.appendChild(document.createTextNode(css));
  81. document.documentElement.appendChild(node);
  82. }
  83. })();