facebook-hide-login

Hides the more annoying of the three facebook login prompts. One prompt remains.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name      facebook-hide-login
// @description Hides the more annoying of the three facebook login prompts. One prompt remains.
// @version   1
// @namespace https://greasyfork.org/en/users/217495-eric-toombs
// @license   MIT
// @grant     none
// @match     *://*.facebook.com/*
// @run-at    document-end
// ==/UserScript==

// Not used right now; it is too difficult to find.
request = 'Log in or sign up for Facebook to connect with friends, family and people you know.'

style_tag = document.createElement('style');
style_tag.innerHTML = `
  /* Bob, the big login prompt that hides everything. */
  .__fb-light-mode.x1n2onr6.xzkaem6 {
    visibility: collapse !important;
  }
`;
// If Bob is hidden first, then the smaller login prompt at the bottom never appears in the first place.
document.getElementsByTagName('head')[0].append(style_tag);

// Currently does not work because #login_form doesn't exist yet.
// Very annoying!!!!!
document.getElementById('login_form').style.visibility = 'collapse';