您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the login nag screen on Facebook that shows up when you're not logged in.
// ==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"); })();