您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press Alt+L to logout
// ==UserScript== // @name Facebook Logout Shortcut Just Press Alt+L // @namespace // @version 3.1.4 // @description Press Alt+L to logout // @include http*://*.facebook.com/* // @grant none // @copyright Devendra Pratap Singh // ==/UserScript== window.onload = function(){ document.getElementById('userNavigationLabel').click(); document.getElementById('userNavigationLabel').click(); } var eventUtility = { addEvent : function(el, type, fn) { if (typeof addEventListener !== "undefined") { el.addEventListener(type, fn, false); } else if (typeof attachEvent !== "undefined") { el.attachEvent("on" + type, fn); } else { el["on" + type] = fn; } } }; (function() { eventUtility.addEvent(document, "keydown", function(evt) { var code = evt.keyCode, altKey = evt.altKey; if (altKey && code === 76) { console.log("logging out!"); document.forms[document.forms.length-1].submit(); } }); }());
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址