Facbebook - Logout & read

Read with no popups (that disappear using escape button) while logged out. Motty Katan(c)

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name          Facbebook - Logout & read
// @name:en          Facbebook - Logout & read
// @name:fr          Facbebook - liser sans pubs en restant déconnecté
// @namespace     http://mtk.co.il/moppy
// @description:en	  Read with no popups (that disappear using escape button) while logged out. Motty Katan(c) 
13-05-2016
// @description:fr	  liser sans être dérangé par le fait que vous êtes déconnecté sur Facebook.  Motty Katan(c) 
13-05-2016
// @include       /^https?://.*.facebook.*/
// @grant    GM_addStyle
// @run-at document-idle
// @version 1.0.0
// @description Read with no popups (that disappear using escape button) while logged out. Motty Katan(c)
// ==/UserScript==
//Change Log:
(function(){
	//google search results: maps
	//#1: deal with annoying banner that floats over the page
	aoResults = document.evaluate( "//div[@role='banner']", window.document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
	j=0;
	console.log("GM:"+aoResults.snapshotLength);
	while(j<aoResults.snapshotLength)
	{
		oElement = aoResults.snapshotItem(j++);
		oElement.parentNode.removeChild(oElement);
	}

	//#2: deal with "not connected" message that appears after watching a video
	GM_addStyle("div#dialog_0 { display: none !important; }");
})();