Torn Helper

Adds extra information to different pages all around Torn.

< 腳本Torn Helper的回應

評論:正評 - 腳本一切正常

§
發表於:2017-06-05

Torn helper not loading anymore

Hey been using Torn helper (which is a great app) but it does not load anymore. I read somewhere that I have to give it my API key occasionally but do not see where to do that. I use Chrome on a Chromebook.
Thanks!

jeggy作者
§
發表於:2017-06-13

Hey, I'm not sure what could have gone wrong for you? Could you please press the "F12" key or "CTRL+SHIFT+I" and go to the 'console' tab and copy and paste what it says there.

§
發表於:2017-06-14

Hi jeggy, I investigated further and the script is working fine as long as I do not elect to show any crime stats.

Here is the console tab with it working:
Torn helper: making request 'https://api.torn.com/user/1727347?selections=personalstats,basic,crimes&key=bnJ9HJ5K'
ui-bg_highlight-hard_100_f9f9f9_1x100.png Failed to load resource: the server responded with a status of 404 ()
raven.3.9.1.min.js:2 540283

And with a crime statistic selected:

VM403:3 ERROR: Execution of script 'Torn Helper' failed! Cannot read property 'total' of undefined
(anonymous) @ VM403:3
(anonymous) @ VM403:4
(anonymous) @ VM403:847
(anonymous) @ VM345:2
E_c @ VM345:3
E @ VM372:58
create @ VM372:67
e @ VM372:15
VM403:3 TypeError: Cannot read property 'total' of undefined
at getUserValue (eval at E_c (:3:221), :377:38)
at compareTemplate (eval at E_c (:3:221), :521:30)
at compareFunc (eval at E_c (:3:221), :127:40)
at apiUserStats (eval at E_c (:3:221), :495:9)
at profileView (eval at E_c (:3:221), :129:5)
at eval (eval at E_c (:3:221), :65:42)
at Window.tms_384941f3_b3bc_47c1_b11a_0d56463b36a5 (eval at E_c (:3:221), :67:3)
at :2:398
at eval (eval at E_c (:3:221), :3:1)
at eval (eval at E_c (:3:221), :4:3)
at Object.eval (eval at E_c (:3:221), :847:6)
at :2:398
at Object.E_c (:3:219)
at E (eval at exec_fn (:1:108), :58:467)
at Object.create (eval at exec_fn (:1:108), :67:51)
at e (eval at exec_fn (:1:108), :15:238)
header.min.js?v=1497359426908:23 GET https://www.torn.com/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png 404 ()
get @ header.min.js?v=1497359426908:23
css @ header.min.js?v=1497359426908:23
(anonymous) @ header.min.js?v=1497359426908:24
access @ header.min.js?v=1497359426908:16
$.fn.(anonymous function) @ header.min.js?v=1497359426908:24
d.doMath @ header.min.js?v=1497359426908:63
(anonymous) @ header.min.js?v=1497359426908:63
d @ raven.3.9.1.min.js?v=1497359426908:2

And finally with fewer requests but with a crime stat selected (not working):


VM946:3 ERROR: Execution of script 'Torn Helper' failed! Cannot read property 'total' of undefined
(anonymous) @ VM946:3
(anonymous) @ VM946:4
(anonymous) @ VM946:847
(anonymous) @ VM888:2
E_c @ VM888:3
E @ VM914:58
create @ VM914:67
e @ VM914:15
VM946:3 TypeError: Cannot read property 'total' of undefined
at getUserValue (eval at E_c (:3:221), :377:38)
at compareTemplate (eval at E_c (:3:221), :521:30)
at compareFunc (eval at E_c (:3:221), :127:40)
at apiUserStats (eval at E_c (:3:221), :495:9)
at profileView (eval at E_c (:3:221), :129:5)
at eval (eval at E_c (:3:221), :65:42)
at Window.tms_384941f3_b3bc_47c1_b11a_0d56463b36a5 (eval at E_c (:3:221), :67:3)
at :2:398
at eval (eval at E_c (:3:221), :3:1)
at eval (eval at E_c (:3:221), :4:3)
at Object.eval (eval at E_c (:3:221), :847:6)
at :2:398
at Object.E_c (:3:219)
at E (eval at exec_fn (:1:108), :58:467)
at Object.create (eval at exec_fn (:1:108), :67:51)
at e (eval at exec_fn (:1:108), :15:238)
header.min.js?v=1497359426908:23 GET https://www.torn.com/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png 404 ()
get @ header.min.js?v=1497359426908:23
css @ header.min.js?v=1497359426908:23
(anonymous) @ header.min.js?v=1497359426908:24
access @ header.min.js?v=1497359426908:16
$.fn.(anonymous function) @ header.min.js?v=1497359426908:24
d.doMath @ header.min.js?v=1497359426908:63
(anonymous) @ header.min.js?v=1497359426908:63
d @ raven.3.9.1.min.js?v=1497359426908:2

Thanks!

jeggy作者
§
發表於:2017-06-25

Thanks, and sorry for the late answer again. But I will update it. It should be working again in a few hours

jeggy作者
§
發表於:2017-06-25

and the reasoning for this failed is because Torn has updated some of their API variables which then resulted in this script requesting for wrong data.

§
發表於:2017-06-28

Thanks jeggy, I will re-enable the crime stats and try it out. I appreciate your support.

§
發表於:2017-08-31

Meant to reply sooner. It is working great since the fix.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址