Created
June 22, 2025 22:47
-
-
Save Tcip/7fca4528e7dab45ca9ce718db3cf8657 to your computer and use it in GitHub Desktop.
Displays undiscovered Items for Embervale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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(); | |
| } | |
| }()) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Embervale Undiscovered Items
Shows all undiscovered items on an opponent (and put a yellow border around them)
Usage