[userscript] Torn Race Stats | Tools & Userscripts | TORN

[userscript] Torn Race Stats

​

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 17:31:17 - 05/08/15 (11 years ago)
    |
    Last replied 09:30:17 - 08/08/21 (5 years ago)
    This script looks at the width attribute of each bar and displays it numerically for easy reading.
    The parts page does not update when you install a new upgrade so the numbers do not update either unless you refresh and go back in. The numbers when looking at parts do not necessarily show you the end result because the bars on torn are not set up that way, they are mainly to compare interchangeable parts.









    Words were being automatically removed from the script when posted directly. Please use this link Torn Race Stats 0.1 if you want to try it out.
    Last edited by PsycWard on 03:21:46 - 27/07/17 (9 years ago)
    • Mr_Stalker [1012898]
    • Role: Civilian
    • Level: 80
    • Posts: 316
    • Karma: 96
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:20:26 - 06/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Cheers
    • Cursed [1901987]
    • Role: Civilian
    • Level: 100
    • Posts: 5,216
    • Karma: 5,425
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:32:46 - 08/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    now i can compare what the most effective upgrade is R+
    • LordSam [1900989]
    • Role: Civilian
    • Level: 100
    • Posts: 4,843
    • Karma: 1,987
    • Last Action: 15 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:22:33 - 09/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    thanks a lot.

    LordSam.

    • HandsomePants [1897243]
    • Role: Civilian
    • Level: 86
    • Posts: 4,651
    • Karma: 7,214
    • Last Action: 7 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:01:28 - 10/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Great stuff, R+
    • Tempest [1867527]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 7,189
    • Karma: 9,792
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:19:21 - 10/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Don't know why but it is not working for me
    I am using tampermonkey on chrome
    • QGunner [1944615]
    • Role: Civilian
    • Level: 15
    • Posts: 142
    • Karma: 18
    • Last Action: 10 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:39:33 - 11/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    didn't work for me :(
    • RogerMellie [1333079]
    • Role: Civilian
    • Level: 100
    • Posts: 110
    • Karma: 15
    • Last Action: 5 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:57:58 - 12/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Tried it too but no joy on Chrome with Tampermonkey. Sounds great though :) I can barely see those bars.

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:38:30 - 12/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Sorry this happened to me before when I posted through message but I didn't know it happened in the forums too, words are being removed. I'll upload it and link it.
    • 1898966 [1898966]
    • Role: Civilian
    • Level: 48
    • Posts: 1,311
    • Karma: 777
    • Last Action: 9 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:35:52 - 12/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    R+

    • RogerMellie [1333079]
    • Role: Civilian
    • Level: 100
    • Posts: 110
    • Karma: 15
    • Last Action: 5 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:11:28 - 13/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Thanks a lot for this - it's working now and looks pretty handy.



    R+

    • kin0 [1858750]
    • Role: Civilian
    • Level: 90
    • Posts: 142
    • Karma: 56
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:09:18 - 25/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    I can't get this to work, I think it's something with the include line being for racing.php yet the "parts" section adds &add=parts.php
    • Ripple [1372836]
    • Role: Civilian
    • Level: 100
    • Posts: 709
    • Karma: 140
    • Last Action: 4 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:22:54 - 25/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Nice one. Thanks. R+
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:07:59 - 26/08/15 (11 years ago)
    Post link copied to clipboard Copy post link

    kin0 [1858750]

    I can't get this to work, I think it's something with the include line being for racing.php yet the "parts" section adds &add=parts.php
    On my browser the url never changes when I click around in the racing area so I kept to one location for the includes.

    If your url changes in your browser when you click Parts or you like to type in the url to get directly to parts (http://www.torn.com/loader.php?sid=racing&tab=parts) you could change includes to "*torn.com/loader.php?sid=racing*" and that may fix your problem. The only problem with directly linking would be that some portions of the script are triggered by clicks. So even after entering a url to parts for example you may still have to click the parts icon activate the script. In short if you are directly linking it would probably be much easier to stop and just use http://www.torn.com/loader.php?sid=racing if you want the script to function properly.

    If the url doesn't change when you click Part and you are not typing in http://www.torn.com/loader.php?sid=racing&tab=parts to get to parts directly I'm not sure why you would have a problem. I only use Chrome on Linux so other browsers/OS's may have issues I'm unaware of. I no longer try to test my scripts on multiple browsers.
    Last edited by PsycWard on 14:35:01 - 26/08/15 (11 years ago)
    • Reagan [1496632]
    • Role: Civilian
    • Level: 100
    • Posts: 675
    • Karma: 389
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:37:09 - 28/08/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Works great on Chrome, but cannot figure it out for FF.

    Pretty cool stuff, thanks for sharing.
    • Hexellate [1935916]
    • Role: Civilian
    • Level: 26
    • Posts: 143
    • Karma: 21
    • Last Action: 7 years
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:39:27 - 01/09/15 (11 years ago)
    Post link copied to clipboard Copy post link
    Just a quick idea I had, it might be worth checking if the bar is red or green, because one of my cars is showing the length of the red bar which is incorrect. Anyway, great script. R+

    Hello there.

    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:23:59 - 01/09/15 (11 years ago)
    Post link copied to clipboard Copy post link

    Hexellate [1935916]

    Just a quick idea I had, it might be worth checking if the bar is red or green, because one of my cars is showing the length of the red bar which is incorrect. Anyway, great script. R+
    When I originally wrote the script I did have an extra step that checked the color of the bar but from the testing I did the numbers still decreased while displaying the red bar numbers.
    I'll look into it again as it has been some time since I wrote it but it is only meant to be a comparison tool; this car vs that car or this part vs that part. So as long as the numbers increase and decrease at a set rate giving comparable data I'm pretty happy with it.
    • ryvian [1927461]
    • Role: Civilian
    • Level: 25
    • Posts: 646
    • Karma: 65
    • Last Action: 6 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:23:05 - 12/09/15 (11 years ago)
    Post link copied to clipboard Copy post link
    R+
    • Tempest [1867527]
    • Role: Wiki Contributor
    • Level: 100
    • Posts: 7,189
    • Karma: 9,792
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:42:22 - 12/10/16 (10 years ago)
    Post link copied to clipboard Copy post link
    I tried it a few days ago and it was displaying white screen when I tried to navigate to Racing Page.(Chrome, Tampermonkey)

    I fixed it by changing jquery link in the script.
    • PsycWard [1579270]
    • Role: Civilian
    • Level: 100
    • Posts: 2,359
    • Karma: 2,575
    • Last Action: 2 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:51:50 - 12/10/16 (10 years ago)
    Post link copied to clipboard Copy post link

    Tempest [1867527]

    I tried it a few days ago and it was displaying white screen when I tried to navigate to Racing Page.(Chrome, Tampermonkey) I fixed it by changing jquery link in the script.
    Thanks, it's still working for me. Could you post the jquery source you're using just incase someone else has the same problem.

    I know that I was lazy and I never updated the description but firefox users need to remove the jquery line because there is a known issue with ff and jquery libraries.
    // @require http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js
Reply
Thread Title: