Remove Facebook Login Nag

Removes the login nag screen on Facebook that shows up when you're not logged in.

スクリプトをインストールするには、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         Remove Facebook Login Nag
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Removes the login nag screen on Facebook that shows up when you're not logged in.
// @author       Porama Ruengrairatanaroj
// @match        *://*.facebook.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function hideElementsByClassName(className) {
        let elems = document.getElementsByClassName(className);

        for(let i = 0; i < elems.length; ++i) {
            elems[i].style.visibility = 'hidden';
            elems[i].style.display = 'none';
            //let comment = document.createComment(elems[i].outerHTML);
            //elems[i].replaceWith(comment);
        }
    }

    hideElementsByClassName("_3ob9");
    hideElementsByClassName("_62uh");
    hideElementsByClassName("_5hn6");
})();