r/neopets • u/Etryn vero00 • Apr 03 '15
I made a userscript that will hide your fancy pets from you at the Lab Ray, Rainbow Fountain, etc. to protect them from accidents.
I was motivated by a couple recent events to see if I could make a userscript that would hide your favorite pets to protect them from accidental lab zaps, morphs, etc! I hereby present Pet Protector.
If you want to install it, you need a browser extension like Greasemonkey or Tampermonkey. Then, just click the "Raw" button at the above link! Once you've got it installed, you'll need to modify the first line in the code where it says PETNAME, PETNAME, PETNAME to reflect, well, your actual pet names.
This is my first ever userscript, so any feedback is welcome! I had a lot of guidance. (Thanks, /u/DHowett. Sorry if you don't want me linking your user page on /r/Neopets.)
Basically what it does is this:
- You specify the pets you want to protect.
- The script hides them from you at the lab ray, the rainbow fountain, and from the item use screen dropdown menu (only for "dangerous items" like morphing potions, transmog potions, etc.)
- It also removes the "Click here to learn more and possibly convert me!" thing that shows up for UCs on the quick reference page.
One thing to note: I didn't feel like listing out every magical chia pop and magical plushie, so it currently removes your favorite pets from the selection list for any item with the word "Magical" in its name. For now, you'll need to disable the script to use any "Magical" items on your favorite pets.
Let me know if there are any additional pages that should be added to this! (I'd like to add the FFQ page, but I don't have an FFQ to test it on.)
EDIT: I updated the script so that it now also hides pets at the Pound! Thanks everyone, glad you all like it!
EDIT 2: Just realized that (in Tampermonkey, at least) the script will auto-update if the Update URL is set to the "Raw" link on GitHub. This means if I make any changes to the source file, your list of pet names will be cleared. If you notice the script is no longer working, check the source in Grease/Tampermonkey to see if the "pets" list has been reset to default! If you want to avoid this, you'll need to turn off the auto-update feature or clear the Update URL field in your browser extension of choice.
20
u/diceroll123 diceroll123 Apr 03 '15
Programmer here!
Commit 9da4d62179 is clean!
Looks great, OP.
4
u/[deleted] Apr 03 '15
This surely will protect a lot of accidents from happening thanks for this!
4
u/[deleted] Jan 11 '22
This doesn't work anymore, is there an alternative?
2
u/pinotnoirs MidgetInGlasses Apr 03 '15
This is awesome! Thank you!
6
u/shivers_42 josefine378 Apr 03 '15
Brilliant, I have almost had a few tired/drunk lab accidents!
1
u/ohreallynowz Apr 03 '15
I'm downloading this as soon as I get home. Are they also protected from pounding?
1
u/Sunlit5 Be careful. I do bite. Apr 03 '15
That is wonderful. Great job. Thanks. I once had a magical plushie. .. my pet loves plushies and if I hadn't been more aware it would have completely changed him.
I would have cried.
1
u/Sunlit5 Be careful. I do bite. Apr 03 '15
Can you also add Vengeful scroll to the list? I was told it changed your pet to a pink Lenny when read.
1
u/Gigglingdeath Jul 14 '24
I was able to modify and get all but the inventory portions to work again. Not sure where I can upload the code to, but happy to share if anyone needs.
1
u/[deleted] May 19 '15
This is amazing, thank you. I just installed it and set it up, it works perfectly. Can I add more pets to it so it works cross accounts? Like can I add the names of three pets from each of my accounts so when I log in it will only ever show the pet I want to zap?
1
u/zsense zeroreason // meepit queen Apr 03 '15
This is fantastic. Thanks!
1
u/UtterEast Sloth did nothing wrong Apr 03 '15
This is amazing, thank you very much. I was just thinking about transferring my UC to one of my sides to protect it from an accidental zap or some other catastrophe.
1
u/[deleted] Jul 21 '15
just got it cuz my poogle zapped msp. took me a bit to figure out how to makes it work, but thanks! such appreciation from me to you.
0
u/[deleted] Sep 05 '15
[deleted] — view deleted comment