Torn Chain Payout Calculator
This UserScript calculates chain payouts, generates reports, and manages API keys for Torn, complying with ToS. It includes automatic API key support for Torn PDA users.
Installation
- Use a userscript extension (e.g., Tampermonkey, Violentmonkey) or the Torn PDA app with automatic API key support.
- Get the script from Greasy Fork.
- Add to extension: Click "Install", save, and enable. Works on war.php?step=chainreport and factions.php.
Reconfiguration
- Xanax Costs: Edit XANAX_COST (default: 840000) and ATTACKS_PER_XANAX (default: 10) in setupChainReportPage.
- API Key: Set Limited Access key via "Manage API Key" button; PDA auto-configures to '###PDA-APIKEY###'.
[image: i.imgur.com] - UI: Change style.textContent (e.g., #4CAF50 for buttons) in script editor.
- Scoring: Modify ICS formula (attacks * 5 + respect * 100) in calculateAndDisplayPayouts.
Usage
- Chain Report Page: Click "Calculate Payout", enter BCR, view/copy reports, mark paid.
[image: i.imgur.com] - Factions Page: Paid chains show [PAID] in news.
- Reports: Click names for individual HTML reports; use "Copy Faction Email" for summaries.
[image: i.imgur.com]
[image: i.imgur.com]
Ensure API key uses minimal permissions for ToS compliance. Install now at Greasy Fork!