Greasy Fork is available in English.

讨论 » 创建请求

Userscript Assistance

§
发表于:2015-06-26

Userscript Assistance

I'm currently in the process of creating a userscript that automatically battles for the user on http://tpkrpg.net/. I'm having trouble though, as their battle system makes use of AJAX, and I can't seem to load battles upon a click with my userscript. Below, I have linked my userscript as well as the RPG's jQuery/AJAX that is used for battling.

Any and all assistance is greatly appreciated.

Here is my script: https://paste.ee/p/eqM0K

Here is the RPG's AJAX: https://paste.ee/p/6IP86

woxxom管理员
§
发表于:2015-06-26

Do you use a hardcoded ID parameter in your script? I think it's different every time user loads the page so you need to get it from the page.

§
发表于:2015-06-26

Do you use a hardcoded ID parameter in your script? I think it's different every time user loads the page so you need to get it from the page.

Unfortunately no, it changes every time the page loads, like you think.

发表回复

登录以发表回复。