Neopets Neopoints Link Fix

Clicking on your Neopoints should redirect you to your inventory, not the bank!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           Neopets Neopoints Link Fix
// @author         Rae
// @description    Clicking on your Neopoints should redirect you to your inventory, not the bank!
// @include        *neopets.com/*
// @version        0.1d
// @namespace      https://greasyfork.org/users/866507
// @icon           http://images.neopets.com/themes/h5/basic/images/np-icon.svg
// @require        https://code.jquery.com/jquery-3.6.0.min.js

// ==/UserScript==

var inv = '/inventory.phtml';
var $navsub = $("div.navsub-right__2020")

$(document).ready(function(){
    $navsub.find("a:first").attr("href", inv);
  }
)