您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fetch and sum item quantities from the Torn API for a faction. Stores API key in local storage.
🛡️ Torn Faction Inventory Sum
📌 Description
- This script fetches and sums the item quantities from your Torn faction inventory using the Torn API. It provides a detailed breakdown of item totals by category and displays the grand total in a structured format.
⚙️ Features
✅ Fetches inventory data from the Torn API
✅ Displays total quantities for each item category
✅ Shows the grand total inventory count
✅ Adds a button inside Torn’s UI to trigger the fetch
✅ Simple and easy-to-use interface
✅ Handles API errors and rate limits smoothly
📖 How to Use
1. Install this script via Greasy Fork using Violentmonkey/Tampermonkey.
2. Open Torn.
3. Click the "Fetch Inventory Sum" button in the left panel.
4. Enter your Torn API Key when prompted.
5. The script will fetch data and display the total items per category.
📝 Notes
- Requires a valid Torn Minimal Access API key with faction inventory access.
- Data fetching includes armor, boosters, caches, drugs, medical, temporary, and weapons.
📜 License & Compliance
- This script is not obfuscated and follows Greasy Fork’s rules.
- No copyrighted content is included.
- Uses only official Torn API endpoints for fetching data.
🌍 Localization
- This script is available in English (en-US).