Torn Faction Lookup API Caller

Fetches faction data using the Torn API when on a faction profile page.

Author
vaelinn
Daily installs
1
Total installs
1
Ratings
0 0 0
Version
0.1
Created
2025-04-23
Updated
2025-04-23
Size
12.4 KB
License
MIT
Applies to

## Prerequisites
Requires torn tools be installed. Only tested in chrome, not tested on mobile.

## Limitations/known issues
The attack button ocassionally will disappear for some users while looking at the page, it will repair itself when this happens and you can update the REFRESH_FREQUENCY_IN_SECONDS value to a smaller number to further mitigate this (or set it low enough and it will not happen).

This script makes it easier during ranked wars to see when opposing faction members are flying towards you, abroad at your location or generally attackable.

This script adds a colored attack button(always clickable) to each users icon list when viewing a faction. The colors represent:
Red: The user is at your location and not in the hospital, you can attack immediately.
Orange: The user is flying to your location.
Blue: The user is in the hospital at your location.
Grey: The user is flying away from your location or is abroad and not at your location.

These buttons are always clickable and will take you to the attack page.