Torn Faction Summaries

Floating summaries of faction online and status info on Torn.com, with API key input, persistent positions, settings, clickable statuses showing member names, optional second faction tracking, chain info panel, and page-specific hiding.

目前为 2025-03-16 提交的版本。查看 最新版本

作者
Mark Coley
评分
0 0 0
版本
1.12
创建于
2025-03-16
更新于
2025-03-16
大小
29.9 KB
许可证
MIT
适用于

### Additional Info for *Torn Faction Summaries* (v1.12)

#### Overview
Enhance your Torn.com experience with *Torn Faction Summaries*, a sleek, floating dashboard that keeps you updated on your faction’s online status, member states, and chain progress—all without leaving your current page. Fully customizable and packed with features, it’s perfect for faction leaders and members who want real-time insights at a glance.

#### Features
- **Floating Summaries**: Displays online (Online/Idle/Offline) and status (Okay, Traveling, Abroad, Hospital, Jail, Federal) counts for your faction.
- **Clickable Details**: Click any status to see the list of members in that state.
- **Chain Info Panel**: Tracks current chain, next milestone, hits/hour, and ETA (in days/hours/minutes), with a color-coded timeout (green: 5:00–3:30, yellow: 3:30–2:00, red: <2:00).
- **Second Faction Tracking**: Monitor another faction alongside yours (optional).
- **Draggable Boxes**: Position boxes anywhere on the screen; lock positions across pages or reset to defaults.
- **Page-Specific Hiding**: Hide the script on specific pages (e.g., `www.torn.com/faction.php`) while keeping it active elsewhere.
- **Persistent Settings**: All preferences (API key, positions, second faction, etc.) saved via `localStorage`.
- **Dynamic Updates**: Refreshes every 30 seconds to keep data current.

#### Installation & Setup
1. Install via Greasy Fork镜像 and enable in Tampermonkey (or compatible userscript manager).
2. On first run, a box appears at the top center of the page asking for your Torn API key (get it from `www.torn.com/preferences.php#tab=api`).
3. Enter your key, click "Save," and the script starts working across all Torn pages.

#### Usage
- **Settings (⚙️ Button)**: Top-right corner. Customize:
- Lock box positions across pages.
- Enable second faction tracking (enter faction ID).
- Show/hide chain info panel.
- Set a URL to hide the script on (e.g., `faction.php`).
- **Dragging**: Click and drag any box to reposition; locked positions sync across tabs.
- **Hiding**: Enter a URL in settings (e.g., `www.torn.com/faction.php`) to hide boxes on matching pages—great for multi-tab setups.

#### Notes
- **API Key**: Requires a Torn API key with `basic` and `chain` access. Invalid keys trigger an error and re-prompt.
- **Visibility**: Boxes hide on specified pages but reappear elsewhere; positions remain synced if locked.
- **Compatibility**: Works on `www.torn.com/*` and `torn.com/*`. Tested with Tampermonkey.

#### Changelog (v1.12)
- **New**: Page-specific hiding—hide boxes on a chosen URL while keeping them active elsewhere.
- **Updated**: Moved initial API key input to top center for better visibility and less overlap.
- **Previous**: ETA in days/hours/minutes, timeout in minutes:seconds with color coding, draggable boxes, second faction support.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址