Greasy Fork is available in English.

Remove Facebook Login Nag

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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");
})();