w35l3y / userscripts

Public userscripts to be used with Greasemonkey
http://gm.wesley.eti.br
GNU General Public License v3.0
45 stars 23 forks source link

Food Club Include - Doesn't return anything anymore? #43

Closed jkingaround closed 8 years ago

jkingaround commented 8 years ago

Browser: Firefox
Greasemonkey: 3.7
Script: Includes : Neopets : FoodClub
Accessed url: https://github.com/w35l3y/userscripts/tree/master/includes/Includes_Neopets_FoodClub
Installation url: URL
Error Message: Object { error: false, errmsg: "", body: HTMLDocument, 1 more… }
Obs.: Made my own foodclub better using your include and a couple of additional functions i added to actually bet and it stopped working recently. I'm not sure why it stopped working but i can't seem to get it to return the proper values.

w35l3y commented 8 years ago

In your case that is a developer, more details like which function and parameters that you used are very welcome. An example of code, etc.

I would be very grateful to see your code.

jkingaround commented 8 years ago

I ended up figuring out it was in the "response" in the Object (rather than on it's own?)

Something changed somewhere and i have to pass a function directly to use it instead of calling "onsuccess" or "callback". I'll get it working again and then post it here.

jkingaround commented 8 years ago

here is the userscript i made based on your include and my added functionality to allow betting from reddit urls and to place the bets. i'm sure you can make it better :stuck_out_tongue:

http://pastebin.com/9p1pjWWR

w35l3y commented 8 years ago

Here's what I did based on yours: http://pastebin.com/fhRPeMss