[SCRIPT + PDA] Display Crime Chain - Finally! | Tools & Usersc…

[SCRIPT + PDA] Display Crime Chain - Finally!

​

    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 13:24:09 - 09/12/23 (2 years ago)
    |
    Last replied 10:05:55 - 14/09/26 (15 days ago)



    Display Crime Chain
    For when you cbf going to torn.report for it because your lazy af

     

    This script will display the your crime chain bonus in the title bar on the crimes page

     




    REQUIRES A FULL ACCESS API KEY:

    • Input form for your API Key will only show on the crime page.
    • If you are on PDA your API key is automatically gathered from there.
    • NB. if you have a limited access API key in PDA you WILL need to change it to a full access one!

     



    FINISHING COMMENTS:

    • If you experience any bugs or issues comment them below and ill try to sort ASAP
    • If you have any other features you want added let me know. there is usually plenty of scope for these things
    • If this script shows you love and you wanna throw some love back (completely optional). I have a 4 nerve beer addiction that could use some enabling.
    • Feel free to give me feedback or a like on any of my threads, thnx bby!

    MY OTHER SCRIPTS

    MY SCRIPT SERVICES

    Last edited by iron on 21:41:13 - 05/08/26 (1 month ago)
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:32:14 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    reserved
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:52:20 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    VERSION 1.0.1

    Patches:
    • Fixed multiple icons rendering on some devices
    • RenegadeRuss [1295794]
    • Role: Civilian
    • Level: 100
    • Posts: 2,789
    • Karma: 1,953
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:30:31 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Nice little script saves going over to torn report to check
    • Nexttime [2226695]
    • Role: Civilian
    • Level: 99
    • Posts: 196
    • Karma: 486
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:54:28 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Thanks IhD f**king legend!
    • Fuckery [2653035]
    • Role: Civilian
    • Level: 100
    • Posts: 1,810
    • Karma: 6,651
    • Last Action: 57 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:20:21 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    You may be my new favourite scripter

    QoL scripts are the best

    3bcd74f3-dc95-45bc-99b3-4e95dbc3ac14-2653035.png

    • MCSH [2855875]
    • Role: Civilian
    • Level: 81
    • Posts: 274
    • Karma: 807
    • Last Action: 1 year
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:24:26 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Really nice script, thank you!
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:57:05 - 09/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    VERSION 1.0.2

    Patches:
    • Fixed potential typeError on initialisation if no api key is present
    • PurpleFire [2868362]
    • Role: Committee
    • Level: 100
    • Posts: 1,787
    • Karma: 1,406
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:04:28 - 10/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Thank you.

    Accessibility wise, the chain number is read out. There is nothing to indicate what the number is though.

    Having said that, it is easy enough to figure out what the number is, since it appeared only after I installed the script.

    If this were an official Torn update, I'd probably complain about the missing aria-label.

    Since it is not, I am going to just be happy that the chain count is now available. :)
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:14:57 - 10/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    PurpleFire [2868362]

    Thank you. Accessibility wise, the chain number is read out. There is nothing to indicate what the number is though. Having said that, it is easy enough to figure out what the number is, since it appeared only after I installed the script. If this were an official Torn update, I'd probably complain about the missing aria-label. Since it is not, I am going to just be happy that the chain count is now available. :)
    So it’d be fairly easy to add in an aria label. So you want it to read crime chain in the aria label for the number?

    also if there is poor accessibility with any of my other scripts you’re using let me know what missing for you and I’ll add it in
    Last edited by iron on 03:16:53 - 10/12/23 (2 years ago)
    • PurpleFire [2868362]
    • Role: Committee
    • Level: 100
    • Posts: 1,787
    • Karma: 1,406
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 03:34:38 - 10/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    PurpleFire [2868362]

    Thank you. Accessibility wise, the chain number is read out. There is nothing to indicate what the number is though. Having said that, it is easy enough to figure out what the number is, since it appeared only after I installed the script. If this were an official Torn update, I'd probably complain about the missing aria-label. Since it is not, I am going to just be happy that the chain count is now available. :)

    iron [2428902]

    So it’d be fairly easy to add in an aria label. So you want it to read crime chain in the aria label for the number? also if there is poor accessibility with any of my other scripts you’re using let me know what missing for you and I’ll add it in
    If it would not be too much trouble, yes, that would be very nice.

    Thank you for being so considerate. :)

    I might check out a few of your other scripts soon.

    I believe I tried one recently that helps with online/idle/offline status.

    Not sure if that was yours or not, so I'll double check tomorrow.

    The issue for screen readers with the statuses, is that the icons are color coded. This of course means nothing to the screen reader.

    No idea if aria-labels would be possible in that regard or how difficult it might be to add them, just thought I would mention it.
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 09:28:32 - 10/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    VERSION 1.0.3

    Patches:
    • Added aria-label to crime chain to help with accessibility
    • Inferno [3007989]
    • Role: Civilian
    • Level: 89
    • Posts: 12,848
    • Karma: 1,155
    • Last Action: 39 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:14:44 - 11/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Edit : I figured it. Apparently the dumb me had only pasted half the code in there . Apologies

    Edit 2. : damn this is super cool and handy. Thanks a lot !!

    Hi .
    How do I make this work on PDA ? Do I need to edit the code in specific places or something??
    Thanks in advance
    Last edited by Inferno on 21:32:29 - 11/12/23 (2 years ago)
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 00:25:04 - 12/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Should just work on pda using your PDA api key. You need to make sure your APi key is a ‘Full access’ one
    Last edited by iron on 00:25:27 - 12/12/23 (2 years ago)
    • PurpleFire [2868362]
    • Role: Committee
    • Level: 100
    • Posts: 1,787
    • Karma: 1,406
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:42:24 - 12/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    iron [2428902]

    [b]VERSION 1.0.3[/b] [b]Patches:[/b] [ul][li]Added aria-label to crime chain to help with accessibility[/li] [/ul]
    Thank you :)
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:32:14 - 22/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    VERSION 1.0.4

    Patches:
    • Fixed API form rendering multiple times
    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 2,839
    • Karma: 4,961
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:47:05 - 23/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    This script won't work for users on iOS <16.4 as regex lookbehind is not supported on Webkit until 16.4

    This includes PDA users on these respective iOS versions (such as myself). I haven't looked in-depth, is a workaround possible here?


    Classic Apple/Safari...
    • iron [2428902]
    • Role: Civilian
    • Level: 91
    • Posts: 1,043
    • Karma: 942
    • Last Action: 15 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:53:38 - 23/12/23 (2 years ago)
    Post link copied to clipboard Copy post link

    Kwack [2190604]

    This script won't work for users on iOS <16.4 as regex lookbehind is [url=https://caniuse.com/js-regexp-lookbehind]not supported[/url] on Webkit until 16.4 This includes PDA users on these respective iOS versions (such as myself). I haven't looked in-depth, is a workaround possible here? [img]https://i.imgur.com/0XhDIqR.png[/img] Classic Apple/Safari...
    Yeah there would be… I’ll have to change the if statments to look for the whole class not the outcome. There are probably other ways too. I won’t have time to do this till after Boxing Day probably…

    Hit me up on discord if you wanna do it yourself. Can send repo details and you can make a pull request
    • Twicemonkey [2694029]
    • Role: Civilian
    • Level: 100
    • Posts: 498
    • Karma: 969
    • Last Action: 40 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:01:28 - 27/12/23 (2 years ago)
    Post link copied to clipboard Copy post link
    Great stuff!
    • Eromis [2144510]
    • Role: Civilian
    • Level: 100
    • Posts: 129
    • Karma: 260
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 00:29:18 - 02/01/24 (2 years ago)
    Post link copied to clipboard Copy post link
    Awesome tool, question on it with cracking. Guessing a letter incorrectly resets the chain to zero, but the game doesnt count that as a failure or a critical failure. Curious if this is working as intended (and failing at guessing a letter manually is considered a critical failure for the sake of crime chains) or just an unintended interaction.

    Thanks, and again thanks for the great tool.

    *Edit: It seems to be doing it to me on and off. My chain came back, I guessed on a different cracking code and it did it again. After a minute or two and refreshing the page the chain counter does return though.
    Last edited by Eromis on 00:33:52 - 02/01/24 (2 years ago)
Reply
Thread Title: