Corrections to UI of meteoblue.com
当前为
// ==UserScript==
// @name CSS: meteoblue.com
// @description Corrections to UI of meteoblue.com
// @author MK
// @namespace max44
// @homepage https://greasyfork.org/en/users/309172-max44
// @include https://www.meteoblue.com/*
// @include http://www.meteoblue.com/*
// @icon https://www.meteoblue.com/favicon.ico
// @version 1.3.2
// @license MIT
// ==/UserScript==
(function() {
var css = `
/*Position of cloud icons*/
.picto .weekday.alt {
line-height: unset !important;
}
/*Font size of temperature*/
.tab-content .tab-temp-max, .tab-content .tab-temp-min {
line-height: 24.5px;
font-size: 17.5px;
}
/*Font size in hourly forecast table*/
.hourly-forecast .hourlywind > tbody {
font-size: 70% !important;
}
/*Dividers between cloud icons on 3 hours table*/
/*.hourly-forecasr .hourlywind > tbody > tr:nth-of-type(1),*/
.hourly-forecast .hourlywind tr.pictos_3h td {
padding: 0 !important;
border-right-color: gray !important;
border-right-style: solid !important;
border-right-width: thin !important;
}
/*Active tab colour*/
.tab.active {
background: #fffeefff !important;
/*background: #ffffff !important;*/
}
/*Tab colour*/
.tab {
background: #e7ecf0 !important;
/*background: #eaeaea !important;*/
}
/*Predictability meter background*/
.tab_content .tab_predictability .meter_outer {
background-color: hsl(0, 0%, 96.9%) !important;
}
/*Headers*/
h2, h3 {
font-size: 150% !important;
}
`;
document.querySelector('body').classList.remove('unblock');
if (typeof GM_addStyle != 'undefined') {
GM_addStyle(css);
} else if (typeof PRO_addStyle != 'undefined') {
PRO_addStyle(css);
} else if (typeof addStyle != 'undefined') {
addStyle(css);
} else {
var node = document.createElement('style');
node.type = 'text/css';
node.appendChild(document.createTextNode(css));
document.documentElement.appendChild(node);
}
})();