[Script] Remaining Time on Tab Title | Tools & Userscripts | T…

[Script] Remaining Time on Tab Title

​

    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 18:31:44 - 30/11/23 (2 years ago)
    |
    Last replied 11:37:16 - 13/05/26 (5 months ago)
    A light script that displays the remaining travel, hospital, raceway, and remaining chain time (on the Factions page) as part of the tab title while at their respective pages.

    For those who would like to use the tab as a timer/pomodoro etc. while doing something else on their browsers. Can edit the script to modify the title to remove the additional text, or to add a quote/reminder etc.

    The script uses the time displayed on the webpage, so their respective webpages need to be open for the time to show up. (Intended feature rofl, spend time on the other things you should be doing aside from Torn haha). Doesn't use extra API calls due to this.

    Might update it in the future to allow for other types of remaining times.

    https://greasyfork.org/en/scripts/481120-time-on-tab-title

    Update 01/12/23: Now also shows remaining Hospital time while in Hospital view.

    Update 02/12/23: Shows remaining raceway time in the Raceway view and Chain time in the Factions view.


    x
    Last edited by Hesper on 08:36:50 - 21/12/23 (2 years ago)
    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:14:00 - 01/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Updated the script to also show remaining Hospital time on the tab title while the web page for the Hospital is open.


    Update 2: Updated with option to parse hospital time into hh:mm:ss format via setting IF_PARSE_HOSPITAL_TIME to true, instead of just copying the natural language format from Hospital view. By default it is false.
    Last edited by Hesper on 07:44:09 - 01/12/23 (2 years ago)
    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:05:18 - 02/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Updated to include raceway time remaining on the raceway page, and chain time left on the factions page.

    Untested for long periods of time though for if the tab is inactive/unopened for hours. Depending on your browser settings, the browser may suspend the page especially if your browser has settings for battery saving/suspending tabs. So I know how sensitive chain time can be so yeah. Visiting the page does mark it as "active" for the browser though so assuming you're actively playing Torn anyway while doing something else, this shouldn't be an issue.
    • RannKizz [3117943]
    • Role: Civilian
    • Level: 36
    • Posts: 10
    • Karma: 5
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:11:18 - 04/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Simple yet useful , thanks!
    • 7tu [2961078]
    • Role: Civilian
    • Level: 93
    • Posts: 128
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:43:06 - 05/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    R+
    7tu
    Rising Star Trader • Elite Recruiter
     
    • Phillip_J_Fry [2184575]
    • Role: Civilian
    • Level: 50
    • Posts: 370
    • Karma: 441
    • Last Action: 1 month
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:40:59 - 21/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Could we get it to show 5 minute chain hit timer?
    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:57:05 - 21/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Phillip_J_Fry [2184575]

    Could we get it to show 5 minute chain hit timer?
    Hiya if you could show an example by what you mean for this would be great thanks! I replied to your DM too on Chat 2.0, but just saw this now and thought that perhaps replying here instead for better backreading (and stuff being fixed for chat 2.0). Thanks!
    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 4,986
    • Karma: 39,136
    • Last Action: 26 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:21:09 - 21/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Hesper [2924630]

    Hiya if you could show an example by what you mean for this would be great thanks! I replied to your DM too on Chat 2.0, but just saw this now and thought that perhaps replying here instead for better backreading (and stuff being fixed for chat 2.0). Thanks!
    The chain timer element is .bar-timeleft___B9RGV if that helps.

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:32:33 - 21/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Hesper [2924630]

    Hiya if you could show an example by what you mean for this would be great thanks! I replied to your DM too on Chat 2.0, but just saw this now and thought that perhaps replying here instead for better backreading (and stuff being fixed for chat 2.0). Thanks!

    Omanpx [1906686]

    The chain timer element is .bar-timeleft___B9RGV if that helps.
    Thanks! But I don't quite understand what Philip is asking about because I already have a chain timer thing on it as per greasyfork screenshots

    • FrostedPetal [3437868]
    • Role: Civilian
    • Level: 64
    • Posts: 108
    • Karma: 21
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:45:46 - 28/11/24 (1 year ago)
    Post link copied to clipboard Copy post link

    This is so helpful... Working as of 28/11/2024

    • Quanna_Parker [3259081]
    • Role: Civilian
    • Level: 27
    • Posts: 550
    • Karma: 254
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:20:34 - 28/11/24 (1 year ago)
    Post link copied to clipboard Copy post link

    Hesper [2924630]

    A light script that displays the remaining travel, hospital, raceway, and remaining chain time (on the Factions page) as part of the tab title while at their respective pages. For those who would like to use the tab as a timer/pomodoro etc. while doing something else on their browsers. Can edit the script to modify the title to remove the additional text, or to add a quote/reminder etc. The script uses the time displayed on the webpage, so their respective webpages need to be open for the time to show up. (Intended feature rofl, spend time on the other things you should be doing aside from Torn haha). Doesn't use extra API calls due to this. Might update it in the future to allow for other types of remaining times. [url]https://greasyfork.org/en/scripts/481120-time-on-tab-title[/url] Update 01/12/23: Now also shows remaining Hospital time while in Hospital view. Update 02/12/23: Shows remaining raceway time in the Raceway view and Chain time in the Factions view. [img]https://i.imgur.com/HTAeCqR.png[/img] x[img]https://i.imgur.com/mrWU92B.png[/img]

    Does it work on PDA?

    377X283_571bb7bb-0c35-4df2-86ba-1fe72b36bd79-3259081.gif?v=1371103970

    • Hesper [2924630]
    • Role: Civilian
    • Level: 80
    • Posts: 430
    • Karma: 407
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:19:20 - 05/12/24 (1 year ago)
    Post link copied to clipboard Copy post link

    Hesper [2924630]

    A light script that displays the remaining travel, hospital, raceway, and remaining chain time (on the Factions page) as part of the tab title while at their respective pages. For those who would like to use the tab as a timer/pomodoro etc. while doing something else on their browsers. Can edit the script to modify the title to remove the additional text, or to add a quote/reminder etc. The script uses the time displayed on the webpage, so their respective webpages need to be open for the time to show up. (Intended feature rofl, spend time on the other things you should be doing aside from Torn haha). Doesn't use extra API calls due to this. Might update it in the future to allow for other types of remaining times. [url]https://greasyfork.org/en/scripts/481120-time-on-tab-title[/url] Update 01/12/23: Now also shows remaining Hospital time while in Hospital view. Update 02/12/23: Shows remaining raceway time in the Raceway view and Chain time in the Factions view. [img]https://i.imgur.com/HTAeCqR.png[/img] x[img]https://i.imgur.com/mrWU92B.png[/img]

    Quanna_Parker [3259081]

    Does it work on PDA?

    Hello, there doesn't seem to be much of a title bar (too smol) for the tabs on PDA so I'm afraid it's not that useful there sorry.

    • Kushisu [3818758]
    • Role: Civilian
    • Level: 52
    • Posts: 48
    • Karma: 21
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 22:28:51 - 16/09/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Extremely useful for traveling, 10/10

    • Annemarel [2275585]
    • Role: Civilian
    • Level: 73
    • Posts: 47
    • Karma: 12
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:00:11 - 19/04/26 (5 months ago)
    Post link copied to clipboard Copy post link

    Doesn't work for me

    I'm on chrome 

    • Aetherz [3505972]
    • Role: Civilian
    • Level: 42
    • Posts: 14
    • Karma: 4
    • Last Action: 30 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:37:16 - 13/05/26 (5 months ago)
    Post link copied to clipboard Copy post link

    Hi, this doesn't seem to work for me as well on Chrome and Opera :c 

Reply
Thread Title: