CSS: marinetraffic.com

Cleaning of UI from useless details

Pada tanggal 29 Desember 2020. Lihat %(latest_version_link).

// ==UserScript==
// @name          CSS: marinetraffic.com
// @description   Cleaning of UI from useless details
// @author        MK
// @homepage      https://greasyfork.org/en/scripts/
// @namespace     https://greasyfork.org/users/309172
// @include       https://www.marinetraffic.com/*
// @include       http://www.marinetraffic.com/*
// @version       1.0
// @note          v1.0 2020-12-29 - initial release
// ==/UserScript==

(function() {
  var css = `
  body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif !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));
    var heads = document.getElementsByTagName('head');
    if (heads.length > 0) {
      heads[0].appendChild(node);
    } else {
      // no head yet, stick it whereever
      document.documentElement.appendChild(node);
    }
  }
})();