Skip to content

Instantly share code, notes, and snippets.

@Tcip
Created June 22, 2025 22:47
Show Gist options
  • Select an option

  • Save Tcip/7fca4528e7dab45ca9ce718db3cf8657 to your computer and use it in GitHub Desktop.

Select an option

Save Tcip/7fca4528e7dab45ca9ce718db3cf8657 to your computer and use it in GitHub Desktop.
Displays undiscovered Items for Embervale
javascript:(function()%7Bconst%20styles%20%3D%20%7Blabel%3A%20%22background%3A%23000%3Bcolor%3A%23fff%3Bpadding%3A1px%206px%3Bborder%3A1px%20solid%20%23000%3Bborder-right%3Anone%3Bborder-radius%3A3px%200%200%203px%22%2Cvalue%3A%20%22background%3A%23fff%3Bcolor%3A%23000%3Bpadding%3A1px%206px%3Bborder%3A1px%20solid%20%23000%3Bborder-left%3Anone%3Bborder-radius%3A0%203px%203px%200%3Bmargin-left%3A-1px%22%7D%3Bconst%20exclamationMark%20%3D%20document.querySelectorAll(%22.character-slot%20img%22)%3Bconst%20undiscoveredItem%20%3D%20Array.from(exclamationMark).find(img%20%3D%3E%20img.src.endsWith(%22exclamation_mark.webp%22))%3Bif%20(undiscoveredItem%20%3D%3D%20null)%20%7Bconsole.log(%60%25cUndiscovered%20Item%25c0%60%2C%20styles.label%2C%20styles.value)%3B%7D%20else%20%7BundiscoveredItem.parentNode.style.boxShadow%20%3D%20%220%200%206px%2010px%20yellow%22%3Bconsole.groupCollapsed(%60%25cUndiscovered%20Item%25c%24%7B%5BundiscoveredItem%5D.length%7D%60%2C%20styles.label%2C%20styles.value)%3Bconsole.log(undiscoveredItem)%3Bconsole.groupEnd()%3B%7D%7D)()
(function() {
const styles = {
label: "background:#000;color:#fff;padding:1px 6px;border:1px solid #000;border-right:none;border-radius:3px 0 0 3px",
value: "background:#fff;color:#000;padding:1px 6px;border:1px solid #000;border-left:none;border-radius:0 3px 3px 0;margin-left:-1px"
};
const exclamationMark = document.querySelectorAll(".character-slot img");
const undiscoveredItem = Array.from(exclamationMark).find(img => img.src.endsWith("exclamation_mark.webp"));
if (undiscoveredItem == null) {
console.log(`%cUndiscovered Item%c0`, styles.label, styles.value);
} else {
undiscoveredItem.parentNode.style.boxShadow = "0 0 6px 10px yellow";
console.groupCollapsed(`%cUndiscovered Item%c${[undiscoveredItem].length}`, styles.label, styles.value);
console.log(undiscoveredItem);
console.groupEnd();
}
}())
@Tcip
Copy link
Author

Tcip commented Jun 22, 2025

Embervale Undiscovered Items

Shows all undiscovered items on an opponent (and put a yellow border around them)


Usage

  1. Create a new bookmark with the Website Address from the file above
  2. While on a opponent's page (example clicked on a player in the Leaderboard or Arena) click on the bookmarklet and open the DevTools to see the result

Undiscovered Items Embervale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment