Torn War Stuff Enhanced | Tools & Userscripts | TORN

Torn War Stuff Enhanced

​

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 5
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 20:17:27 - 05/06/25 (1 year ago)
    |
    Last replied 02:34:41 - 13/09/26 (17 days ago)

    TL;DR - Install Torn War Stuff Enhanced for even better war monitoring! This script only affects the Ranked War and Raid box at the top of the faction pages.

     

    main.png

     

    Do you already use the Torn War Stuff script to monitor your wars and wish it just did more? Do you wish you could see who is coming out of the hospital next or which targets can be hit to keep a chain going?

     

    Check out Torn War Stuff Enhanced by me, xentac! Features adopted from the original Torn War Stuff script

    • Sort opposing faction members by time left in hospital
    • Add traveling information
    • Highlight targets with < 5 minutes left on their timers

     

    The enhanced script adds all these features:

    • Count time down instead of giving it in TCT
    • Highlights targets in foreign hospitals (no other script seems to do this!)
    • Works on both opposing and your own faction! (most scripts don't do this)
    • Supports jail timers
    • Addresses time skew so your device time won't make you miss someone coming out of the hospital
    • Adds Tampermonkey menu for API key configuration and uses the default Torn PDA key

     

    There are also a few technical improvements that might make people happier as well

    • Doesn't use setInterval, so processing only happens when the tab is visible (shouldn't overload the torn api with multiple tabs open, torn pda is happier too)
    • Doesn't rewrite the DOM except to add data variables and sort rows so Torn's react auto-updating should be less affected (Torn still sometimes breaks their auto-updating all by themselves so this will not be perfect)
    • Uses a single purpose update loops, so rows should only be in one state and not flick back and forth between numbers.
    • Properly handles error codes returned by Torn API (don't get your IP blocked for entering an incorrect API key)

     

    I've also worked with Weav3r so FF Scouter V2 works with as many war scripts as I can find (except Potato War Timer, talk to me if you want to make it compatible!). Feel free to install this one and it will automatically disable Weav3r's updates.

     

    Setup

     

    Torn PDA will automatically use your Torn PDA key to poll faction data. The script should make about 12 req/minute and updates status within about 9 seconds of changes.

     

    Use the tampermonkey menu to enter your key while on the faction page.

     

    tampermonkey-menu.png

     

    Improvements and bug reports

     

    Feel free to reach out if you find any problems or anything you'd like to add. I've been using this script personally every week (in my previous faction) for a few months as has everyone else in a few other factions. I expect most of the bugs have been worked out, but I'm sure people will find many more.

     

    I do have less time to work on this now, but the script is also available on github if anyone wants to submit pull requests!

    Last edited by xentac on 21:36:26 - 12/06/26 (3 months ago)
    • Cbo [3378569]
    • Role: Civilian
    • Level: 86
    • Posts: 5
    • Karma: 1
    • Last Action: 18 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:21:22 - 05/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Super handy script would reccomend!

    • Tentacles [3163623]
    • Role: Civilian
    • Level: 99
    • Posts: 899
    • Karma: 1,508
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:17:47 - 05/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Extremely useful script, improved life so much! 😍

    • Zoharra [3447101]
    • Role: Civilian
    • Level: 78
    • Posts: 296
    • Karma: 54
    • Last Action: 3 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:07:20 - 08/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    The timer is the best part! 

    Piss Baby Leader

    • Meri_the_Unmade [3576486]
    • Role: Civilian
    • Level: 68
    • Posts: 109
    • Karma: 17
    • Last Action: 31 minutes
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:57:59 - 10/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    this doesnt work for me. I put in a public api and nothing changes

    on chrome using tampermonkey

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:35:14 - 13/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    I probably wasn't specific enough. This only updates the war box (or raid box) at the top of a faction page, not the faction member list.

    • EllaWhen [2681497]
    • Role: Civilian
    • Level: 96
    • Posts: 50
    • Karma: 26
    • Last Action: 9 months
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:46:56 - 14/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Great script! I did notice that in the war my faction is currently in, this script breaks the sorting for my faction in the war box. I tried sorting by score for example and a bunch of people with 0 score are at the top despite there being people with higher score further down the list. Disabling this script fixed it so I know that this script is the cause. Not a huge deal for me, just wanted to bring it to your attention in case anyone else might be experiencing this as well

     

    Edit: Nevermind I think I figured it out, false alarm! It just sorts by score in each category I think (online, hosp, traveling)

    Last edited by EllaWhen on 23:38:18 - 14/06/25 (1 year ago)
    • TheHermit [1850320]
    • Role: Civilian
    • Level: 80
    • Posts: 123
    • Karma: 47
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:45:30 - 15/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    so im unable to get this to work on TornPDA

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:43:23 - 25/06/25 (1 year ago)
    Post link copied to clipboard Copy post link

    TheHermit [1850320]

    so im unable to get this to work on TornPDA

    What do your war boxes look like with TornPDA? Are you using a limited key in TornPDA or something else?

    • PurpleEggplant [3697171]
    • Role: Civilian
    • Level: 65
    • Posts: 54
    • Karma: 24
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:11:44 - 17/07/25 (1 year ago)
    Post link copied to clipboard Copy post link

     

     

    I don't seem to have the set API Key option for this plugin or a lot of other ones. I'm on Chrome on Ubuntu. Do I need to enable some functionality?

     

    Edit: I had to go into chrome and enable user scripts to run in the extension menu. 

    Last edited by PurpleEggplant on 13:51:08 - 26/07/25 (1 year ago)
    • Nutshell [3758876]
    • Role: Civilian
    • Level: 29
    • Posts: 6
    • Karma: 2
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:17:21 - 04/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Super handy have been using this for a while now

     

     

    • mahir_r [2747394]
    • Role: Civilian
    • Level: 98
    • Posts: 446
    • Karma: 310
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:27:22 - 07/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Amazing, thank you. Using it well on laptop with chrome.

     

    question - on mobile I use iPhone and safari to play and Userscripts as my script manager. On the faction page I have no idea how to add my public key, cos it’s not as simple as tampermonkey on chrome giving a little area for input (like your screenshots accurately show). Any chance of getting it to work? Or instead of you can suggest an alternate script manager that works better with your script? I’m open to that too.

    Last edited by mahir_r on 06:27:39 - 07/09/25 (1 year ago)
    • mahir_r [2747394]
    • Role: Civilian
    • Level: 98
    • Posts: 446
    • Karma: 310
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:32:32 - 07/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Oh one piece of feedback:

     

    on faction war page I have filtered out abroad and travelling (I have hospital and okay set to view) with Torntools filters. However your script manages to bypass that filter in the instance someone overseas is in hospital. The color coordination is working so I do know to ignore them, but ideally if your script didn’t bypass that filter in this instance, it would make life easier. In terms of watching the behaviour, the second the abroad person left the abroad hosp, they were filtered out by my TT filter once again.

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:07:55 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    mahir_r [2747394]

    Oh one piece of feedback:

     

    on faction war page I have filtered out abroad and travelling (I have hospital and okay set to view) with Torntools filters. However your script manages to bypass that filter in the instance someone overseas is in hospital. The color coordination is working so I do know to ignore them, but ideally if your script didn’t bypass that filter in this instance, it would make life easier. In terms of watching the behaviour, the second the abroad person left the abroad hosp, they were filtered out by my TT filter once again.

    I just tested this and I believe you are mistaken. TT considers foreign hospitals as hospitals (they show up as "Hospital" in the status column as well). This is one of the reasons I added the colour distinction.

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:08:55 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    mahir_r [2747394]

    Amazing, thank you. Using it well on laptop with chrome.

     

    question - on mobile I use iPhone and safari to play and Userscripts as my script manager. On the faction page I have no idea how to add my public key, cos it’s not as simple as tampermonkey on chrome giving a little area for input (like your screenshots accurately show). Any chance of getting it to work? Or instead of you can suggest an alternate script manager that works better with your script? I’m open to that too.

    I'm not familiar with "Userscripts" on ios as a script manager for safari. Can you give me more details about it?

    • xentac [3354782]
    • Role: Civilian
    • Level: 90
    • Posts: 90
    • Karma: 222
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:13:44 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    mahir_r [2747394]

    Amazing, thank you. Using it well on laptop with chrome.

     

    question - on mobile I use iPhone and safari to play and Userscripts as my script manager. On the faction page I have no idea how to add my public key, cos it’s not as simple as tampermonkey on chrome giving a little area for input (like your screenshots accurately show). Any chance of getting it to work? Or instead of you can suggest an alternate script manager that works better with your script? I’m open to that too.

    xentac [3354782]

    I'm not familiar with "Userscripts" on ios as a script manager for safari. Can you give me more details about it?

    Ah, I found it. I just checked their code and they don't even support the registerMenuCommand feature... I'll think about a good place to put that configuration, but I've done my best to not modify too much...

    • ShAdOwCrEsT [3929345]
    • Role: Civilian
    • Level: 72
    • Posts: 157
    • Karma: 189
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:14:02 - 22/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    R+
    Extremely useful.

    Im a developer and a scripter. Check All my scripts portfolio here -> https://www.torn.com/forums.php#/p=threads&f=67&t=16507599&b=0&a=0

    • mahir_r [2747394]
    • Role: Civilian
    • Level: 98
    • Posts: 446
    • Karma: 310
    • Last Action: 2 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:09:32 - 23/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    mahir_r [2747394]

    Amazing, thank you. Using it well on laptop with chrome.

     

    question - on mobile I use iPhone and safari to play and Userscripts as my script manager. On the faction page I have no idea how to add my public key, cos it’s not as simple as tampermonkey on chrome giving a little area for input (like your screenshots accurately show). Any chance of getting it to work? Or instead of you can suggest an alternate script manager that works better with your script? I’m open to that too.

    xentac [3354782]

    I'm not familiar with "Userscripts" on ios as a script manager for safari. Can you give me more details about it?

    xentac [3354782]

    Ah, I found it. I just checked their code and they don't even support the registerMenuCommand feature... I'll think about a good place to put that configuration, but I've done my best to not modify too much...

    Ok im glad you found it, cos i wouldve been no help in giving techniacl info.

    Noted on the hospital thing, it was a small issue, and im just glad the colors are there! I had a feeling that was the case. Maybe torn side they should add an extra filter for abroad hospital.

    • Chris5295 [974757]
    • Role: Civilian
    • Level: 98
    • Posts: 1,003
    • Karma: 1,497
    • Last Action: 11 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:34:21 - 28/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Amazing script.

    And I heard a voice in the midst of the four beasts
    And I looked, and behold a pale horse
    And his name that sat on him was death, and hell followed with him

    • Zorru [3260708]
    • Role: Civilian
    • Level: 74
    • Posts: 11
    • Karma: 2
    • Last Action: 29 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:28:35 - 19/10/25 (11 months ago)
    Post link copied to clipboard Copy post link

    Hi, awesome script!

    As someone already complained about not being able to enter API key in mobile, then you could improve your script by adding a button to profile page for entering the API key. For example [Script] BSP - Battle Stats Predictor | Tools & Userscripts | … is handling the case that way.

    As workaround i modified the script locally and hardcoded my API key into it, but it's not very user-friendly nor security aware approach i guess.

Reply
Thread Title: