Corrections to UI of ventusky.com
目前為
// ==UserScript==
// @name CSS: ventusky.com
// @description Corrections to UI of ventusky.com
// @author MK
// @namespace max44
// @homepage https://greasyfork.org/en/users/309172-max44
// @include https://www.ventusky.com/*
// @include http://www.ventusky.com/*
// @icon https://www.ventusky.com/images/favicon.ico
// @version 1.1.2
// @license MIT
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
(function() {
var css = `
/*Remove App button*/
li#menu-app {
display: none !important;
}
/*Remove Download App button (Android)*/
a[href^="https://play.google.com"] {
display: none !important;
}
/*Remove Download App button (iOS)*/
a[href^="https://itunes.apple.com"] {
display: none !important;
}
/*New menu button in mobile version*/
body[tcap-name="mainman"] > menu2#menu2 {
position: absolute;
right: 1em;
top: 1.4em;
width: 7.5em;
color: #fff;
/*background: linear-gradient(#3697d1,#12507f);*/
font-size: 75%;
height: 5em;
line-height: 5em;
text-align: center;
border-radius: 0 3em 3em 0;
padding-left: 2.25em;
transition: .5s;
}
`;
//Change Menu button to Settings button on mobile version
const menuLi = document.querySelector("menu li");
if (menuLi != null) {
if (getComputedStyle(menuLi).float === "none") { //If menu item is for mobile browser
$("body").append('<menu2 id="menu2"></menu2>');
$("li#menu-settings").appendTo("#menu2");
$("body > menu").remove();
}
}
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);
}
})();