CSS: marinetraffic.com

Corrections to UI of marinetraffic.com

目前为 2022-02-05 提交的版本。查看 最新版本

// ==UserScript==
// @name          CSS: marinetraffic.com
// @description   Corrections to UI of marinetraffic.com
// @author        MK
// @namespace     max44
// @homepage      https://gf.qytechs.cn/en/users/309172-max44
// @include       https://www.marinetraffic.com/*
// @include       http://www.marinetraffic.com/*
// @icon          https://www.marinetraffic.com/favicon_n.ico
// @version       1.1.2
// @license       MIT
// ==/UserScript==

(function() {
  var css = `
  .under-map-wrapper {
    height: 0px !important;
  }

  /*Make the 2nd div (space under the map) in d-flex invisible*/
  .d-flex.flex-column.flex-1-1-auto.align-self-stretch > div:nth-of-type(2) {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    height: 0px !important;
  }

  /*Make right panel invisible*/
  .d-flex.flexcol.align-items-start.justify-content-start.flex-wrap.flex-0-0-auto {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    height: 0px !important;
    width: 0px !important;
  }

  .underMapAdMobile {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    height: 0px !important;
    width: 0px !important;
  }
  `;

  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);
  }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址