Sticky itens hider (medium.com, hackernoon)

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name               Sticky itens hider (medium.com, hackernoon)
// @description        Hides medium.com and hackernoon.com footer, header, sidebar and letterbox
// @version            2.2
// @include            https://medium.com/*
// @include            https://hackernoon.com*
// @namespace https://greatest.deepsurf.us/users/153157
// ==/UserScript==

const hackernoonFixedItens = '.Header__Layout-le0go0-0';
const mediumFixedItens = '.branch-journeys-top'

const fixedItens = document.querySelectorAll(`${hackernoonFixedItens},${mediumFixedItens}`);
const hackernoonNewsletterBox = [].filter.call( document.querySelectorAll('figure'), elem => elem.querySelector('.iframeContainer'));

const itensToHide = hackernoonNewsletterBox.concat([...fixedItens]);
itensToHide.forEach(itemToHide => itemToHide.style.display = 'none');