Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Add Inventory Button to Right Navbar

  1. #1
    Zer0's Avatar
    Joined
    Oct 2013
    Posts
    79
    Userbars
    2
    Thanks
    18
    Thanked
    115/37
    DL/UL
    13/0
    Mentioned
    2 times
    Time Online
    4d 10h 23m
    Avg. Time Online
    1m

    Thumbs up Add Inventory Button to Right Navbar

    Hi,

    Just a small quality of life script. Neopet's mobile friendly design bugs me. It just deters old school and desktop users, so I added an inventory button.

    (you need an account to see links)

    Code:
    // ==UserScript==
    // @name         Add Inventory Button
    // @namespace    zer0@clraik
    // @version      0.1
    // @description  A good QOL feature that adds the Inventory Button. This is much more intuitive than going through the sidebar.
    // @author       zer0
    // @match        https://www.neopets.com/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=neopets.com
    // @grant        none
    // ==/UserScript==
    function _0x176d(_0x49a66e,_0x3a83f6){var _0x2ee344=_0x2ee3();return _0x176d=function(_0x176d15,_0x39adea){_0x176d15=_0x176d15-0xb4;var _0x324187=_0x2ee344[_0x176d15];return _0x324187;},_0x176d(_0x49a66e,_0x3a83f6);}(function(_0x5e3009,_0x17fd8c){var _0x40c972=_0x176d,_0x4efc31=_0x5e3009();while(!![]){try{var _0x53cadc=-parseInt(_0x40c972(0xc2))/0x1+parseInt(_0x40c972(0xc0))/0x2+-parseInt(_0x40c972(0xb5))/0x3+parseInt(_0x40c972(0xbc))/0x4*(parseInt(_0x40c972(0xb6))/0x5)+-parseInt(_0x40c972(0xb9))/0x6+-parseInt(_0x40c972(0xbd))/0x7*(parseInt(_0x40c972(0xc3))/0x8)+-parseInt(_0x40c972(0xb8))/0x9*(-parseInt(_0x40c972(0xc1))/0xa);if(_0x53cadc===_0x17fd8c)break;else _0x4efc31['push'](_0x4efc31['shift']());}catch(_0x3f2f1d){_0x4efc31['push'](_0x4efc31['shift']());}}}(_0x2ee3,0x559f4));function addInventoryButton(){var _0x55510e=_0x176d,_0x30f25c=document[_0x55510e(0xbb)](_0x55510e(0xb7))[0x0],_0x152cfe=document[_0x55510e(0xb4)](_0x55510e(0xbf))[0x0];_0x152cfe[_0x55510e(0xbe)]=_0x55510e(0xba),_0x30f25c[_0x55510e(0xbe)]=_0x30f25c[_0x55510e(0xbe)]+'<a\x20href=\x22/inventory.phtml\x22><div\x20class=\x22navsub-inventory-meter__2020\x22><div\x20class=\x22my-inventory-icon\x22></div><span\x20id=\x22npanchor\x22\x20class=\x22np-text__2020\x22>Inventory</span></div></a>';}addInventoryButton();function _0x2ee3(){var _0xc0a02e=['1231736gdMKSz','9950420AyfJAu','371563UkXKzK','4384vbGfjZ','getElementsByTagName','1368270sgYioV','524315totlcd','navsub-right__2020','9oYMbzh','3419856YbsDiZ','.my-inventory-icon{background:url(https://images.neopets.com/themes/h5/basic/images/v3/inventory-icon.svg)\x20center\x20center\x20no-repeat;\x20height:31px!important;\x20width:29px!important;background-size:\x20100%\x20auto;\x0a\x09height:25px;width:23px;margin:\x20auto\x204px\x20auto\x200;float:left;vertical-align:middle;}.navsub-inventory-meter__2020{min-width:\x2050px;background:\x20#fff;border-radius:\x2010px;height:\x20auto;display:\x20inline-block;cursor:\x20pointer;padding:\x202px\x205px;width:\x20auto;}','getElementsByClassName','20DktFwJ','4942LOorGC','innerHTML','style'];_0x2ee3=function(){return _0xc0a02e;};return _0x2ee3();}
    Attached Images Attached Images

  2. The Following 8 Users Say Thank You to Zer0 For This Useful Post:

    Aero (11-26-2022),Bunnii (10-22-2023),howdy (11-26-2022),Ice (11-26-2022),rio (02-07-2024),Slowpoke (11-26-2022),steeler (11-26-2022),Teakwood (11-26-2022)

  3. #2
    Totodile's Avatar
    Joined
    Sep 2022
    Posts
    1,037
    Pronouns
    🦕☄️🌃
    Userbars
    67
    Thanks
    1,124
    Thanked
    3,661/1,006
    DL/UL
    7/0
    Mentioned
    161 times
    Time Online
    58d 2h 30m
    Avg. Time Online
    2h 23m
    Oh wow this is so awesome! Thank you so much for this - I have inventory booked marked on beta and this is so much easier now for me!

  4. #3
    Ice's Avatar
    Joined
    Aug 2012
    Posts
    2,859
    Pronouns
    She/Her
    Userbars
    100
    Thanks
    11,570
    Thanked
    9,232/2,710
    DL/UL
    21/0
    Mentioned
    945 times
    Time Online
    116d 16h 47m
    Avg. Time Online
    39m
    You must spread some Reputation around before giving it to Zer0 again.

    I love little fixes like these! Thank you so much for sharing

  5. #4
    howdy's Avatar
    Joined
    Sep 2018
    Posts
    508
    Pronouns
    she/her
    Userbars
    34
    Thanks
    1,506
    Thanked
    1,240/414
    DL/UL
    3/0
    Mentioned
    81 times
    Time Online
    15d 11h 11m
    Avg. Time Online
    10m
    This is causing a few issues around the site for me:

    Trudy's surprise gets small (not a huge issue)
    In my inventory (regular not the old type) all the little icons for the inventory helper script get huge and unwieldy
    in customization, the descriptions of items get huge and show all the time, making the closet have one item on each page

    lmk if you need any more info to debug
    🔗(you need an account to see links)


    💖 meme inspo : Dita and Cat Purrson 💖
    orig. + more memes in (you need an account to see links)
    🌵 Cactus Ryu : Great White North🌵


  6. #5
    Totodile's Avatar
    Joined
    Sep 2022
    Posts
    1,037
    Pronouns
    🦕☄️🌃
    Userbars
    67
    Thanks
    1,124
    Thanked
    3,661/1,006
    DL/UL
    7/0
    Mentioned
    161 times
    Time Online
    58d 2h 30m
    Avg. Time Online
    2h 23m
    I had a small bug myself - but im not sure if its supposed to be like that or not.

    Anyways when I use the script it makes the layout seem like I have a invisible ad but lowers the entire site pages. I can share a screenshot if you don't understand what I'm referring - I have a bad time explaining things

  7. #6
    Aero's Avatar
    Joined
    Sep 2020
    Posts
    1,668
    Pronouns
    she/her
    Userbars
    86
    Thanks
    6,315
    Thanked
    4,435/1,358
    DL/UL
    14/0
    Mentioned
    189 times
    Time Online
    85d 5h 9m
    Avg. Time Online
    1h 34m
    I love these small quality of life fixes. Thanks for submitting this one



  8. #7
    Zer0's Avatar
    Joined
    Oct 2013
    Posts
    79
    Userbars
    2
    Thanks
    18
    Thanked
    115/37
    DL/UL
    13/0
    Mentioned
    2 times
    Time Online
    4d 10h 23m
    Avg. Time Online
    1m
    Quote Originally Posted by InsufferableHuman View Post
    I had a small bug myself - but im not sure if its supposed to be like that or not.

    Anyways when I use the script it makes the layout seem like I have a invisible ad but lowers the entire site pages. I can share a screenshot if you don't understand what I'm referring - I have a bad time explaining things
    Hey! I've been using it for the last 3 days and haven't seen any issues, but I wouldn't say I've done some compehensive testing on this.It would be great if you could share with me what you are seeing and also let me know if there are any particular pages where you see this issue occurring.

  9. #8
    Totodile's Avatar
    Joined
    Sep 2022
    Posts
    1,037
    Pronouns
    🦕☄️🌃
    Userbars
    67
    Thanks
    1,124
    Thanked
    3,661/1,006
    DL/UL
    7/0
    Mentioned
    161 times
    Time Online
    58d 2h 30m
    Avg. Time Online
    2h 23m
    Quote Originally Posted by Zer0 View Post
    Hey! I've been using it for the last 3 days and haven't seen any issues, but I wouldn't say I've done some compehensive testing on this.It would be great if you could share with me what you are seeing and also let me know if there are any particular pages where you see this issue occurring.
    Here ya go! I'm not sure if that's supposed to happen but mostly all neo pages I go to that are in 'classic' make the grey box appear

  10. #9
    Politoed's Avatar
    Joined
    Jan 2019
    Posts
    1,122
    Pronouns
    🐸
    Userbars
    36
    Thanks
    925
    Thanked
    1,004/513
    DL/UL
    24/0
    Mentioned
    54 times
    Time Online
    77d 19h 4m
    Avg. Time Online
    58m
    Wow this is super helpful thank you for sharing~!

  11. #10
    Zer0's Avatar
    Joined
    Oct 2013
    Posts
    79
    Userbars
    2
    Thanks
    18
    Thanked
    115/37
    DL/UL
    13/0
    Mentioned
    2 times
    Time Online
    4d 10h 23m
    Avg. Time Online
    1m
    Quote Originally Posted by InsufferableHuman View Post
    Here ya go! I'm not sure if that's supposed to happen but mostly all neo pages I go to that are in 'classic' make the grey box appear
    I can't seem to reproduce this. Just wanted to double check a few things here:

    1) You are viewing this page, right? (you need an account to see links)
    2) What browser are you using?
    3) Is that a different theme? It looks different from mine.

    This is how my screen looks like on that page:
    (you need an account to see links)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •