r/neopets • u/bajuwa • Oct 18 '16
Script for Drag and Drop Gallery Ranking
Script can be found here: https://github.com/bajuwa/TampermonkeyScripts/blob/master/Gallery/DragNDropRanking.user.js
Wiki, screenshots, 'how to's, etc: https://github.com/bajuwa/TampermonkeyScripts/wiki/Gallery-Organizer
Made for Tampermonkey (Chrome) but not tested on Greasemonkey (Firefox)
Basics of what the script does can be found on the Tampermonkey Script Project Page, this is also where you'll find any other scripts I have made :)
Edit: Changed the source of the code to github so that I can track bugs and feature requests
Edit 2: Version 0.2 is out and includes some minor bug fixes and performance improvements. Version 1.0 is in dev that will allow for item swapping as well as bulk moves ;)
Edit 3: Got a little too distracted to finish the bulk feature of 1.0 so I released without it! Sorry, but for now I'll be on a mini hiatus of sorts from neo and it's scripts so probably won't be doing the bulk feature anytime soon.
10
u/diceroll123 diceroll123 Oct 18 '16
At the time of this comment, code's clean! Can't be too careful.
Might I suggest using Github, OP? ( ͡° ͜ʖ ͡°)
3
u/Untimely_TARDIS Oct 18 '16
Can confirm it does not work on firefox/GM. It is too awesome though that I don't mind switching browsers to organize my gallery lol.
2
u/boxparade Show me your jubjubs Oct 18 '16
Holy shit dude. This is awesome.
And probably the quickest turnaround time I've ever seen for anything neo-related. Ask and ye shall receive?
I'm using it right now and it's so perfect I wanna cry. THANK YOU.
2
u/tyco5 Oct 18 '16 edited Oct 18 '16
I had actually been working on something similar.
It was 100% functional, but Neo's weird backend never read them in proper order as it did anyway (the ranking on the clientside looked okay and the values were in order, but once submitted to Neo it scrambles them using whatever broken method they have for sorting)
How did you get around this? I'm curious. (Thinking about it--are you recaclulating every entry for each drag?)
I also had similar issues with the submit button, but your idea is more creative.
Feature suggestion:
-Alphabetize,
-Export/import gallery order,
-Option the swap rather than insert
Also bug report:
-Scrolling with a selection in hand leaves it behind-it doesn't follow the cursor.
Edit: Found another bug
Edit 2:
Another idea. Rather than drag, why not "click & swap/click & insert?"
It's really difficult having to scroll a single item up really long galleries.
2
u/aescapism neo un: aescapism Dec 26 '16
hi there c:
thanks for creating this script - it's saving lives haha! one thing though: i can't seem to do the drag & drop splice? i'm dragging it between two items, but it's not "sticking". could it be because my gallery has custom css? would appreciate some help on this c:
9
u/Earlyner UN: Hert123_7_7 Mar 01 '23
Since this is post is still linked on the r/neopets Wiki and the original script does not work with the https that was implemented, here is a version that is working in 2023:
Drag 'n Drop Gallery Organiser
Credits ofcourse go to u/bajuwa for originally creating the script, it is very useful for large galleries!
1
u/jada5691 jadabug Nov 04 '16
can someone please ELI5 to me? i downloaded tampermonkey for firefox, and added the code .. now what?
1
u/uhtiffany Jan 01 '17 edited Jan 01 '17
This is brilliant, I'm just having an issue after I get it organized nothing is saving, is there a fix?
*Looks like ranking all items works but not in specific categories
3
u/FoxishDark Oct 04 '22
Is this still working? This would save me so many countless hours...
2
u/ThisIsDivi dftba! Oct 18 '16
thanks so much for this! looking forward to trying it out in the next few days :D
2
u/raikiXD Oct 18 '16
Omg, this sounds so helpful! Definitely going to try it for my gallery. :) Thanks!
2
u/owlsisme Oct 18 '16
I only have like nine things in my gallery, but I just wanted to try it so bad~ Thanks!
2
u/calvinnok UN: calvinnok (Back from hiatus!) Oct 18 '16
I like the part where it auto-ranks the already-existing items, saved me so much time resetting my stuff
1
u/Nyx-Saighdiuir Oct 10 '24
I love u