您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides the Offline users from the Facebook Chat
// ==UserScript== // @name HoFF - Facebook Chat Offline Hide // @namespace hoff // @include https://www.facebook.com/* // @grant GM_getValue // @grant GM_setValue // @version 0.1.3 // @description Hides the Offline users from the Facebook Chat // ==/UserScript== var callback = function () { console.log("HoFF Started :)."); setInterval(function () { var get_chat_list = document.getElementsByClassName('_42fz'); var chat_list = Array.prototype.slice.call(get_chat_list); for (index = 0; index < chat_list.length; index++) { var found = chat_list[index].getElementsByTagName('span'); if (found.length === 0) { console.log(found); chat_list[index].hidden = true; } } }, 5000); }; if ( document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll)) { callback(); } else { document.addEventListener("DOMContentLoaded", callback); }