Skip to content
TORNLIFE More

[Userscript] Torn Profile Link Formatter

Started by GNSC4 [268863] on in Tools & Userscripts.

12 replies · 279 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 13 / 13 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
13
Discussion span
→
People posting
6
Likes on archived posts
19
Authority score
37 / 100
Historical score
29 / 100
Story score
40 / 100
Engagement score
62 / 100

Mentioned in this thread

Player 12345 [12345] ×2 Player 67890 [67890] ×2 GNSC4 [268863] ×2 --L [3802448] ×2 Madz [2035318] ×1

GNSC4 [268863]

[Userscript] Torn Profile Link Formatter - Instant, Customizable Player Links!


Tired of manually typing out player names, IDs, and links when coordinating with your faction? I've created a script to take all the hassle out of sharing player information. Introducing the Torn Profile Link Formatter!



What does it do?


This script adds a small copy icon next to player names on profiles, faction lists, and ranked war pages. Clicking it instantly copies a pre-formatted, customizable line of HTML to your clipboard, ready to paste into chat, forums, or notes. It's designed to make coordination faster, easier, and more accurate.

 

Core Features

  • One-Click Copy: Adds a 📄 icon next to names on faction lists and a "Copy" button on main profile pages.
  • Ranked War Faction Copy: Adds a 📋 icon to ranked war headers to copy the entire member list with full stats in a single click.
  • Customizable Format: A settings menu (⚙️ icon) on profile pages lets you choose exactly what information you want to include.
  • Key Information at a Glance:
    • Player Status: Shows if a player is Online 🟢, Idle 🟡, or Offline ⚫.
    • Direct Links: Instantly grab links to Attack, visit their Faction, or their Company.
    • Hospital Timers:
      • On Profile Pages, it shows the "In hospital for..." text directly from the page.
      • On Faction/War Pages, it uses live data to show a precise remaining time and TCT release time for better coordination.
    • TornStats Integration: If you provide your TornStats API key, you can include a player's battle stats (with customizable formats) and see how old the spy is. (Your API key is stored locally and only used for this purpose).

Example Output

Here's what a fully-loaded copied link can look like:

🟢 GNSC4 [268863] - Attack - (Str: 1.25B | Def: 1.10B | Spd: 1.50B | Dex: 1.45B | Total: 5.30B | Spy: 2 days ago)

And for a faction copy:

PlayerOne [12345] - Attack - (Str: 1.00B | Def: 2.00B | Spd: 1.50B | Dex: 1.75B | Total: 6.25B)


PlayerTwo [67890] - Attack - (Str: 3.00B | Def: 2.50B | Spd: 2.75B | Dex: 2.25B | Total: 10.50B)

How to Install

  1. You'll need a userscript manager extension for your browser. Tampermonkey is the most popular choice.
  2. Once you have the extension, click the installation link below:
    INSTALL SCRIPT
  3. Tampermonkey will open a new tab. Just click the "Install" button.

The script will automatically update when new versions are released.


Changelog


Version 1.6.5 - Added HTML separators to faction copy for improved readability.
Version 1.6.4 - Faction copy now includes full stat breakdown. Corrected emoji rendering.
Version 1.6.3 - Reverted to a more compatible plain-text copy method to ensure HTML formats correctly on paste.
Version 1.6.1 - Massively optimized faction copy feature. It now uses a single API call to TornStats for the entire member list, making it significantly faster and more reliable.
Version 1.5.1 - Fixed copy icon on faction pages.


Terms of Service



I hope you find this script as useful as I do! If you have any feedback, suggestions, or run into any bugs, please post them here.

 

 

GNSC4 [268863]

Mentions: GNSC4 [268863] · PlayerOne [12345] · PlayerTwo [67890]

Madz [2035318]

very useful tool for me, good job!

 

tips for future versions: add a copy all (faction list) and maybe add estimated stats option? if using BSP or others

--L [3802448]

I've tried it and it doesn't work at all, I can only copy paste the profile link and other players' battle stats don't appear.

 

Skizrzx [3802448]

 

That's just how it appears

Mentions: --L [3802448]

GNSC4 [268863]

did you turn the options on? and add a ts_ API key Its not a torn API but a tornstats API key. And you have to have the persons spy report in your factions/personal spy base it doesn't come up with them

Madz [2035318]

another tips would be have 2 options, the copy like now and a simple copy for faction chat and maybe only have the total spy to save space, or all (havent tested)

 

🟢 Madz [2035318] - https://www.torn.com/loader2.php?sid=getInAttack&user2ID=2035318" - Total: 3.82B | Spy: 7h ago)

Mentions: Madz [2035318]

Warcrypt [2762099]

Thanks for this script, I like the concept. On the RW page, the copy Icon is unclickable. I can click and copy from the profile page. I have added the TS api key and selected the options, Maybe i am missing something

GNSC4 [268863]

Interesting it works for me on the faction page, what browser are you using and mobile or pc? So I can try to test it and figure out where it’s failing

GNSC4 [268863]

The HTML coding I use, is made for faction chat, if you paste it it’s a clickable link (assuming you’re on chat 3.0)