CSS: webapp.navionics.com

Remove useless panels from webapp.navionics.com UI

اعتبارا من 18-02-2021. شاهد أحدث إصدار.

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 or Violentmonkey 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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name          CSS: webapp.navionics.com
// @description   Remove useless panels from webapp.navionics.com UI
// @author        MK
// @namespace     max44
// @homepage      https://greasyfork.org/en/users/309172-max44
// @include       https://webapp.navionics.com/*
// @include       http://webapp.navionics.com/*
// @version       1.2.1
// @note          v1.2.1 2021-02-18: @namespace and @homepage changed
// @note          v1.2 2021-02-04: CSS amended to suppress !important rule of original CSS for site-content-wrapper (by using more specific selector)
// @note          v1.1 2021-01-01: code is rewritten to add CSS to the end of the document instead of <HEAD> tag in order to overcome server side CSS with !important rule
// @note          v1.0 2021-01-01: initial release
// ==/UserScript==
 
(function() {
  var css = `
  #site-header1, #site-footer, .shown.android:not(.foo), .ol-attribution, .site-adv {
    height: 0px !important;
    visibility: hidden !important;
    display: none !important;
  }
  
  #site-content-wrapper, #site-content-wrapper:not(.card-content):not(.foo) {
    padding-top: 0px !important;
    height: 100% !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);
    }*/
    document.documentElement.appendChild(node);
  }
})();