Greasy Fork is available in English.

Discussions » Creation Requests

Userscript Assistance

§
Posted: 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

woxxomMod
§
Posted: 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.

§
Posted: 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.

Post reply

Sign in to post a reply.