您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows only faction members that are in the hospital and hides the rest.
// ==UserScript== // @name Faction Hospital // @namespace http://tampermonkey.net/ // @version 2.3 // @description Shows only faction members that are in the hospital and hides the rest. // @author LordBusiness // @match https://www.torn.com/factions.php?step=profile* // @run-at document-start // @grant GM_addStyle // ==/UserScript== GM_addStyle( `.member-list { display: flex !important; flex-direction: column; } .faction-info, .faction-description, .faction-description + hr, .faction-title[data-title="description"] { display: none !important; }` ); window.addEventListener('DOMContentLoaded', event => { // Get list of members const memberList = document.querySelectorAll('.member-list li'); // Loop through all members for(const member of memberList) { /* Icon IDs * icon1 : Online * icon2 : Offline * icon15: In Hospital * icon62: Idle */ if(member.querySelector('#icon15')) member.style.order = member.querySelector('#icon1') ? -3 : member.querySelector('#icon62') ? -2 : -1; } });