Facbebook - Logout & read

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

スクリプトをインストールするには、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          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; }");
})();