diff --git a/README.md b/README.md new file mode 100644 index 0000000..a4358c8 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# NeoSearchHelper +Adds search icons under items in various areas. +Almost Abandoned Attic is tricky because the image and text are linked to each other in the No Haggle option. To use the Search Helper icons in the Attic, hit "Cancel" and the link will open. + +![image](https://github.com/themeels/NeoSearchHelper/assets/64810580/3a554a86-1dd7-47df-bf68-6aee02ee1984) diff --git a/searchhelper.user.js b/searchhelper.user.js index a6b62a0..2b57e3f 100644 --- a/searchhelper.user.js +++ b/searchhelper.user.js @@ -34,6 +34,8 @@ // @match *://*.neopets.com/space/coincidence.phtml // @match *://*.neopets.com/winter/igloo2.phtml // @match *://*.neopets.com/winter/snowfaerie*.phtml* +// @match *://*.neopets.com/browseshop.phtml* +// @match *://*.neopets.com/halloween/garage.phtml* // @icon https://www.neopets.com/favicon.ico // @grant none // ==/UserScript== @@ -363,6 +365,13 @@ if (isBeta) { }); } + // Almost Abandoned Attic + if (document.URL.includes("/garage.phtml")) { + $("img[src*='/items/']").parent().parent().find("b").each(function (k, v) { + $(v).after(makelinks($(v).text())); + }); + } + // Trading Post if (document.URL.includes("/island/tradingpost.phtml")) { $("img[src*='/items/']").each(function (k, v) { @@ -579,6 +588,13 @@ if (isBeta) { } }); } + + // User Shops + if (document.URL.includes("owner=")) { + $("img[src*='/items/']").parent().parent().find("b").each(function (k, v) { + $(v).after(makelinks($(v).text())); + }); + } // Battledome if (document.URL.includes("/dome/neopets")) {