facebook logout new facebook

pulsante logout facebook

目前為 2020-11-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name          facebook logout new facebook
// @description   pulsante logout facebook
// @author        figuccio
// @version       0.3
// @namespace     https://greasyfork.org/users/237458
// @include       https://*.facebook.com/*
// @exclude         https://apps.facebook.com/*
// @noframes
// @grant         GM_addStyle
// @grant         GM_setValue
// @grant         GM_getValue
// @grant         GM_registerMenuCommand
// @require  https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==
var f = document.createElement('span');
f.innerHTML = "logout";
var c ='position:fixed;text-align:right;top:0;right:200px;padding:3px 6px;z-index:50000;color:red!important;background-color:green;border:1px solid blue;line-height:19px;font-size:11pt;cursor:pointer;font-weight:bold;text-decoration:none;border-radius:12px;';
f.style.cssText = c;
f.title = 'logout facebook';
f.addEventListener('click', function(){window.location.href =document.cookie = "c_user= ; domain=.facebook.com;max-age=gio, 01 gen 1970 00:00:00 GMT";});
f.addEventListener ("click",function(){window.location.href = "https://www.facebook.com/?stype=lo&jlou=Afc7HtRdAXNvMKU-d7oYq1-vfaPrQMoxYlx4OWZdcnMWVqg7mZh6Akwps9FgBPLbOu23ucYzGrY4Tg0rtThGjsgi4Gn_Dbl3SrQLXxKpKXHf3Q&smuh=13331&lh=Ac-pD7o7_c1weS9mo_o";});
document.body.appendChild(f);