Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to be adding a readme image to this, the image should be hosted as an asset in the git repository directly, or as a public image like on imgur.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure how one would add it as an hosted asset to the git repository, would it just need to be added by Dice?

16 changes: 16 additions & 0 deletions searchhelper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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")) {
Expand Down