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.0
// @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"] > li#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: 1.25em;
transition: .5s;
}
`;
//Change Menu button to Settings button on mobile version
$("body").append('<li id="menu2"></li>');
$("li#menu-settings").appendTo("li#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);
}
})();