CSS: marinetraffic.com

Corrections to UI of marinetraffic.com

  1. // ==UserScript==
  2. // @name CSS: marinetraffic.com
  3. // @description Corrections to UI of marinetraffic.com
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://greasyfork.org/en/users/309172-max44
  7. // @match *://*.marinetraffic.com/*
  8. // @icon https://www.marinetraffic.com/favicon_n.ico
  9. // @version 1.2
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. var css = `
  15. #skyscraper_container_front, .top-banner {
  16. display: none !important;
  17. }
  18.  
  19. .MuiGrid-root.MuiGrid-item > .MuiGrid-root.MuiGrid-container > .MuiGrid-root.MuiGrid-item > .MuiStack-root {
  20. padding: 0px !important;
  21. }
  22.  
  23. .smartbanner-android, #app .MuiContainer-root > .MuiGrid-root.MuiGrid-container > .MuiGrid-root.MuiGrid-item > .MuiGrid-root.MuiGrid-container > .MuiGrid-root.MuiGrid-item > .MuiStack-root {
  24. display: none !important;
  25. }
  26. `;
  27.  
  28. if (typeof GM_addStyle != 'undefined') {
  29. GM_addStyle(css);
  30. } else if (typeof PRO_addStyle != 'undefined') {
  31. PRO_addStyle(css);
  32. } else if (typeof addStyle != 'undefined') {
  33. addStyle(css);
  34. } else {
  35. var node = document.createElement('style');
  36. node.type = 'text/css';
  37. node.appendChild(document.createTextNode(css));
  38. document.documentElement.appendChild(node);
  39. }
  40. })();