Last active
May 20, 2025 19:31
-
-
Save Tcip/234a5eef538b43eba9c9b257d97212aa to your computer and use it in GitHub Desktop.
[OLD] Embervale Bounties XP per Stamina Calculator
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%20elements%20%3D%20document.querySelectorAll(%22.bounty-information-text-item%5Bdata-v-489b16b8%5D%22)%3Bconst%20titleContainer%20%3D%20document.querySelectorAll(%22.bounty-title-container%5Bdata-v-489b16b8%5D%22)%3Bfunction%20logBountyInfo(index)%20%7Bconsole.groupCollapsed(%60%25c%24%7BtitleContainer%5Bindex%5D.textContent%7D%20(%24%7Belements%5Bindex%20*%206%20%2B%205%5D.lastChild.textContent%20%2F%20elements%5Bindex%20*%206%20%2B%202%5D.lastChild.textContent%7D)%60%2C%20%22font-size%3A%20large%3B%22)%3Bconsole.log(%60%25c%24%7BtitleContainer%5Bindex%5D.textContent%7D%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20%23593523%3B%22)%3Bconsole.log(%60%25c%24%7Belements%5Bindex%20*%206%20%2B%202%5D.lastChild.textContent%7D%20xp%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20green%3B%22)%3Bconsole.log(%60%25c%24%7Belements%5Bindex%20*%206%20%2B%205%5D.lastChild.textContent%7Dstamina%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20%2398804A%3B%22)%3Bconsole.log(%60%25c%24%7Belements%5Bindex%20*%206%20%2B%205%5D.lastChild.textContent%20%2F%20elements%5Bindex%20*%206%20%2B%202%5D.lastChild.textContent%7D%20XP%2FStamina%60%2C%22font-weight%3A%20700%3B%20background%3A%20%23000%3B%20color%3A%20%23fff%3B%20padding%3A%204px%206px%3B%20border-radius%3A%203px%22)%3Bconsole.groupEnd(titleContainer%5Bindex%5D.textContent)%3B%7Dfor%20(let%20i%20%3D%200%3B%20i%20%3C%20titleContainer.length%3B%20i%2B%2B)%20%7BlogBountyInfo(i)%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
| const elements = document.querySelectorAll(".bounty-information-text-item[data-v-489b16b8]"); | |
| const titleContainer = document.querySelectorAll(".bounty-title-container[data-v-489b16b8]"); | |
| function logBountyInfo(index) { | |
| console.groupCollapsed(`%c${titleContainer[index].textContent} (${elements[index * 6 + 5].lastChild.textContent / elements[index * 6 + 2].lastChild.textContent})`, "font-size: large;"); | |
| console.log(`%c${titleContainer[index].textContent}`, "font-weight: 700; color: #593523;"); | |
| console.log(`%c${elements[index * 6 + 2].lastChild.textContent} xp`, "font-weight: 700; color: green;"); | |
| console.log(`%c${elements[index * 6 + 5].lastChild.textContent}stamina`, "font-weight: 700; color: #98804A;"); | |
| console.log( | |
| `%c${elements[index * 6 + 5].lastChild.textContent / elements[index * 6 + 2].lastChild.textContent} XP/Stamina`, | |
| "font-weight: 700; background: #000; color: #fff; padding: 4px 6px; border-radius: 3px" | |
| ); | |
| console.groupEnd(titleContainer[index].textContent); | |
| } | |
| for (let i = 0; i < titleContainer.length; i++) { | |
| logBountyInfo(i); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Embervale Bounties XP per Stamina Calculator
Displays the XP per Stamina in all the Bounties in the game Embervale.
Usage