facebook logout figuccio

pulsante logout facebook2023

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name          facebook logout figuccio
// @description   pulsante logout facebook2023
// @author        figuccio
// @version       0.4
// @namespace     https://greasyfork.org/users/237458
// @match         https://*.facebook.com/*
// @noframes
// @grant         GM_addStyle
// @run-at        document-start
// @noframes
// @license        MIT
// ==/UserScript==
window.addEventListener('load', function() {
var esci = document.createElement("BUTTON");
esci.innerHTML = "Logout!";
esci.title="Esci";
document.body.appendChild(esci);
esci.setAttribute('style',"z-index:9999;position:fixed;top:13px;right:740px;background:red;color:lime;padding:3px 6px;border:1px solid yellow;border-radius:9px;cursor:pointer;");

esci.addEventListener('click', function(e) {e.preventDefault(); document.querySelector('form[action^="/logout.php?"').submit(); e.target.innerHTML='<img src="//www.facebook.com/images/loaders/indicator_blue_small.gif"/>'},false);

})();