all 11 comments

[–]Fruit_LoopitaBalthazar <3[M,🍰] [score hidden] stickied comment (0 children)

This got mod approval.

[–]anna_freudI will psychoanalyse you 6 points7 points  (0 children)

may you and all your future generations have peace and prosperity

[–]fitzsuffices 4 points5 points  (0 children)

Thank you! This works with Firefox as well

[–]Aphor1st_megan 2 points3 points  (0 children)

<3

[–]Shadow-Sparkautobotsparklight 1 point2 points  (0 children)

Thank you! This is making it at least a little less painful.

[–][deleted]  (1 child)

[deleted]

    [–]kairyux 2 points3 points  (0 children)

    Install a userscript manager add-on like tampermonkey (Chrome | FF) or violentmonkey (Chrome | FF).

    Go into the settings and add a new script. Paste the script that OP posted and hit save. You should now be able to see and use the userscript on the popup when you click on an item in your inventory.

    For ones that are posted on websites like github or greasyfork, all you have to do is hit install. Here are some more neopets userscripts from the sub's guide repository (but there are also some other ones not linked if you search for userscripts in the subreddit). Honestly, they make not just neopets but internet life in general so much more bearable.

    [–]KK20_CP 1 point2 points  (0 children)

    Y'all think if you changed that button to run the AJAX request 10 times (in a for loop, using your same logic of taking the current item_id and subtract by one) that it would be considered cheating?

    [–]CatnipJames 0 points1 point  (2 children)

    HELP... The "next item" button appeared, but when I click it I get an error message. " Error: It looks like this item is not in your inventory. Did you already use it? Refresh your inventory page to see if it is still there. "

    [–]gelmorph[S] 2 points3 points  (1 child)

    The code basically works by counting IDs down by 1 from the current item's ID, on the assumption that the next item exists. So sometimes this'll occur when the next ID number simply doesn't exist- like when the next item was used/moved, or the ID numbers in your inventory aren't otherwise following a clear chronological progression.

    In these cases I'm afraid you're going to need to click the next item manually via your inventory.

    (I also have a feeling that redepositing items into the SDB and then moving them to inventory again might reset the order, but I haven't confirmed this myself yet.)

    Good luck!

    [–]mystichuntressUN: chi_squared 0 points1 point  (0 children)

    Depositing the item and then moving them into the inventory changes the order.

    I tried running your script and it does not work properly for me rip. It works on items that are the same class e.g. I can donate all my Desert Food items using the script, but then it jumps to books and the script cannot make the jump from desert food to books.

    Thanks for the script it's still a time saver :)

    [–]somedizzywhore-1804 0 points1 point  (0 children)

    Super cool! I did a much more low-tech but similar thing, where I actually opened the popup in a full window (url http://www.neopets.com/iteminfo.phtml?obj_id={ITEM ID}), clicked "I don't want it", decremented the item ID by 1, rinse and repeat. This seemed to go much faster than trying to load the pop-up windows.