Greasy Fork is available in English.

Sticky itens hider (medium.com, hackernoon)

Hides medium.com and hackernoon.com footer, header, sidebar and letterbox

  1. // ==UserScript==
  2. // @name Sticky itens hider (medium.com, hackernoon)
  3. // @description Hides medium.com and hackernoon.com footer, header, sidebar and letterbox
  4. // @version 2.2
  5. // @include https://medium.com/*
  6. // @include https://hackernoon.com*
  7. // @namespace https://greasyfork.org/users/153157
  8. // ==/UserScript==
  9.  
  10. const hackernoonFixedItens = '.Header__Layout-le0go0-0';
  11. const mediumFixedItens = '.branch-journeys-top'
  12.  
  13. const fixedItens = document.querySelectorAll(`${hackernoonFixedItens},${mediumFixedItens}`);
  14. const hackernoonNewsletterBox = [].filter.call( document.querySelectorAll('figure'), elem => elem.querySelector('.iframeContainer'));
  15.  
  16. const itensToHide = hackernoonNewsletterBox.concat([...fixedItens]);
  17. itensToHide.forEach(itemToHide => itemToHide.style.display = 'none');