Need to update url in script to this.
https://www.torn.com/page.php?sid=crimes*
Once updated it worked for me again.
Started by iron [2428902] on in Tools & Userscripts.
Posts archived: 67 / 67 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Need to update url in script to this.
https://www.torn.com/page.php?sid=crimes*
Once updated it worked for me again.
Thank you. I just pushed this change now so hopefully that should come through if people update their script
Thanks! Can you please make the following changes?
* In the fetchCrimes function, add a comment to the API call, such as &comment=CrimeChain
* Comment out or remove your testing console.log code
Doesn't seem to be working for me. Ill try a few things.
Will do, might take a bit though. Busy weekend ahead
I couldn't get the script to work on my main device, but changing match to only load on the cracking page fixed it. I was getting sad because your script works much better than the old one.
https://www.torn.com/loader.php?sid=crimes#/cracking
I made a restricted custom API key creator link for people to use so you don't have to give full access
This will only allow the script to use basic user info and only access logs for Crime critical failure, Crime failure, Crime success, Crimes
You can use the tool here to do it yourself also https://www.torn.com/api.html#
Nice work!
Hey, love the script.
I've discovered a very rare self-induced edge case with this script that causes this script to go into an infinite loop and eat my entire API limit every time i visit the crimes page.
I sort of added ALOT of bonded paper into forgery, which cause the "Crime item add for forgery" event to be the last item in the fetch which doesn't match the regex so it keeps repeating.
I've manually edited my version to account for this edge case, but i'd recommend you update the script for everyone else to prevent something similar from happening.
Haha, love this.
can you shoot me a message with the text of the changes you made let me know what lines and I’ll get it updated
It's highlighted in the screenshot :)
just changed your regex in calcCrimeChain() to include "|item add" when matching the title.
Hope an update is on the horizon.
That’s done 👍
I have installed the 1.0.6 version. I can't see the crime chain value on the crime page. I could before the last pda update. Does it not work or should I put some setting I don't know?
Bump issue above
Yeah I’ll try fix in the next few days. Unless someone has/wants to find the issue, I just don’t have much time for scripting these days
Updated this it had stopped displaying and made the chain update instantly as you commit crimes instead of lagging behind. Credit to Ironhydedragon for the original this is just a compatibility fix on top of it. Updated version on Greasy Fork
I'm not getting the prompt for the API key anywhere, is there somewhere in the code I have to put it?
Are you using PDA? If you are it uses your PDA api key. Otherwise you’ll have to go into the script settings on PDA and assign a custom key to it.
If you’re not using PDA and you’re using your browser try clearing your browser case and your local storage
Made an update that lets you put an api key in Tampermonkey if on desktop