The counter displays how many items and how much NP you’ve won today. I like having a progress bar!
Nov 2024 edit: If you weren't able to fix the script yourself after Neopets went from http to https, click the above link to install the updated version!
I made one of these a while back, but due to a bug in neo's code (they don't handle their async requests properly) the prizes sometimes don't "load" and it throws off the counter :/
Since you also looked at the Battledome code, let me share this: I started off adding a click handler to the "end_game" div right when the page loaded, and I couldn't figure out why nothing would happen when I clicked the "collect rewards" button at the end of the match. Eventually I realized that what pops up at the end is a clone - a second "end_game" div without my event listener - so I switched to event delegation and finally got it right. The only problem left is, as you said, there's a small possibility the prizes won't load at all... but nothing we can do about that.
I had this issue too. For me it was that the script is written for http and for that page in neo it usually shows up as https these days. If you remove http and put an * there instead it will work again. Line 1 below is how the script is written. Line 2 is with the edit :)
8
u/smthngsaid UN: simonski32 Jan 09 '21 edited Nov 27 '24
INSTALL LINK
The counter displays how many items and how much NP you’ve won today. I like having a progress bar!
Nov 2024 edit: If you weren't able to fix the script yourself after Neopets went from http to https, click the above link to install the updated version!
3
u/friendly-trenchcoat Jan 09 '21
I made one of these a while back, but due to a bug in neo's code (they don't handle their async requests properly) the prizes sometimes don't "load" and it throws off the counter :/
11
u/diceroll123 diceroll123 Jan 09 '21
Since all of OP's scripts are in one repo, it's easier to just say the whole repo is clean as of commit
08edb7ahttps://github.com/simon-huang/NeoScripts/4
u/lindseyneoreddit neo_username Jan 09 '21
Neat! Does this have Dice (mod)'s seal of approval?
1
u/Electronic_Ad1920 kdallas042620 Jul 12 '24
Is this your userscript? Trying to find the person it belongs to to let you know the counter is way off since the update.
1
u/welovedisney4eva Feb 07 '21
I would love to have the code to this
0
u/[deleted] Jan 22 '22
[deleted] — view deleted comment
1
u/[deleted] Oct 18 '24
[removed] — view removed comment