CSS: ventusky.com

Corrections to UI of ventusky.com

Från och med 2022-03-09. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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.1
// @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
  $("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);
  }
})();