mousehunt-improved 0.97.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (852) hide show
  1. package/.editorconfig +15 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc.json +153 -0
  4. package/.eslintrc.markdown.json +11 -0
  5. package/.gitattributes +7 -0
  6. package/.github/dependabot.yml +18 -0
  7. package/.github/workflows/ci.yml +29 -0
  8. package/.github/workflows/lint.yml +24 -0
  9. package/.github/workflows/publish.yml +215 -0
  10. package/.stylelintrc.json +51 -0
  11. package/.vscode/tasks.json +37 -0
  12. package/CHANGELOG.md +3853 -0
  13. package/CONTRIBUTING.md +317 -0
  14. package/LICENSE +21 -0
  15. package/README.md +176 -0
  16. package/bun.lock +2298 -0
  17. package/docs/adblock.md +3 -0
  18. package/docs/better-gifts.md +15 -0
  19. package/docs/better-inventory.md +19 -0
  20. package/docs/better-items.md +13 -0
  21. package/docs/better-journal.md +26 -0
  22. package/docs/better-kings-reward.md +5 -0
  23. package/docs/better-maps.md +35 -0
  24. package/docs/better-marketplace.md +16 -0
  25. package/docs/better-mice.md +19 -0
  26. package/docs/better-quests.md +14 -0
  27. package/docs/better-send-supplies.md +15 -0
  28. package/docs/better-shops.md +15 -0
  29. package/docs/better-tournaments.md +13 -0
  30. package/docs/better-travel.md +20 -0
  31. package/docs/better-ui.md +30 -0
  32. package/docs/big-timer.md +3 -0
  33. package/docs/catch-rate-estimator-and-minlucks.md +9 -0
  34. package/docs/codex-at-bottom.md +3 -0
  35. package/docs/copy-id-button.md +7 -0
  36. package/docs/custom-background.md +71 -0
  37. package/docs/custom-camp-background.md +73 -0
  38. package/docs/custom-horn.md +28 -0
  39. package/docs/custom-hud.md +67 -0
  40. package/docs/custom-shield.md +77 -0
  41. package/docs/custom-styles.md +3 -0
  42. package/docs/dark-mode-updates-and-tweaks.md +3 -0
  43. package/docs/dark-mode.md +3 -0
  44. package/docs/data-exporters.md +21 -0
  45. package/docs/debug-logging.md +49 -0
  46. package/docs/delayed-menus.md +3 -0
  47. package/docs/delayed-tooltips.md +3 -0
  48. package/docs/emotes.md +111 -0
  49. package/docs/experiments.md +14 -0
  50. package/docs/favorite-setups.md +10 -0
  51. package/docs/feature-flags.md +90 -0
  52. package/docs/fixes.md +32 -0
  53. package/docs/flrt-helper.md +8 -0
  54. package/docs/hide-codices.md +3 -0
  55. package/docs/hide-daily-draw.md +3 -0
  56. package/docs/hide-daily-reward-popup.md +3 -0
  57. package/docs/hide-footer.md +3 -0
  58. package/docs/hide-news-ticker.md +3 -0
  59. package/docs/hide-share-buttons.md +3 -0
  60. package/docs/hide-sidebar.md +3 -0
  61. package/docs/hover-profiles.md +3 -0
  62. package/docs/image-upscaling-and-transparency.md +5 -0
  63. package/docs/inline-wiki.md +3 -0
  64. package/docs/inventory-lock-and-hide.md +9 -0
  65. package/docs/inventory-only-open-multiple.md +9 -0
  66. package/docs/inventory-open-all-but-one.md +8 -0
  67. package/docs/inventory-open-all.md +8 -0
  68. package/docs/journal-privacy.md +8 -0
  69. package/docs/journal-theme-changer.md +13 -0
  70. package/docs/keyboard-shortcuts.md +42 -0
  71. package/docs/larger-codices.md +3 -0
  72. package/docs/larger-skin-images.md +3 -0
  73. package/docs/legacy-hud.md +9 -0
  74. package/docs/location-catch-stats.md +3 -0
  75. package/docs/location-dashboard.md +89 -0
  76. package/docs/lucky-golden-shield-duration-and-reminder.md +8 -0
  77. package/docs/metric-units.md +3 -0
  78. package/docs/paste-hunter-id.md +5 -0
  79. package/docs/prestige-base-stats.md +3 -0
  80. package/docs/printing-press-paper-counter.md +3 -0
  81. package/docs/quick-filters-and-sort.md +8 -0
  82. package/docs/quick-send-supplies.md +8 -0
  83. package/docs/replace-favicon.md +3 -0
  84. package/docs/scoreboard-search-on-profiles.md +3 -0
  85. package/docs/shield-goes-to-camp.md +3 -0
  86. package/docs/show-adventure-book.md +7 -0
  87. package/docs/show-auras.md +13 -0
  88. package/docs/ssdb-toothlet-counter.md +3 -0
  89. package/docs/taller-windows.md +3 -0
  90. package/docs/tem-crowns.md +3 -0
  91. package/docs/trap-selector-special-effects.md +8 -0
  92. package/docs/ultimate-checkmark.md +9 -0
  93. package/docs/unique-loot-count.md +7 -0
  94. package/docs/wisdom-in-stat-bar.md +12 -0
  95. package/jsconfig.json +17 -0
  96. package/package.json +101 -0
  97. package/scripts/build-extension.mjs +119 -0
  98. package/scripts/build-userscript.mjs +73 -0
  99. package/scripts/build.mjs +106 -0
  100. package/scripts/fetch-external-files.mjs +26 -0
  101. package/scripts/fix-map-groups.mjs +146 -0
  102. package/scripts/get-changelog.mjs +10 -0
  103. package/scripts/get-version.mjs +2 -0
  104. package/scripts/release +29 -0
  105. package/scripts/shared.mjs +135 -0
  106. package/src/data/backgrounds.json +47 -0
  107. package/src/data/crafting-recipe-mapping.json +87 -0
  108. package/src/data/cre-mice-groups.json +148 -0
  109. package/src/data/journal-item-colors.json +110 -0
  110. package/src/data/journals-environment-mapping.json +24 -0
  111. package/src/data/journals-events.json +58 -0
  112. package/src/data/magic-essence-potions.json +28 -0
  113. package/src/data/map-groups.json +3737 -0
  114. package/src/data/ultimate-checkmark.json +407 -0
  115. package/src/data/update-summary.json +48 -0
  116. package/src/extension/content.js +29 -0
  117. package/src/extension/icon-128.png +0 -0
  118. package/src/extension/icon-16.png +0 -0
  119. package/src/extension/icon-32.png +0 -0
  120. package/src/extension/icon-48.png +0 -0
  121. package/src/extension/icon-64.png +0 -0
  122. package/src/extension/manifest.json +55 -0
  123. package/src/extension/popup.html +50 -0
  124. package/src/extension/screenshots/dashboard.png +0 -0
  125. package/src/extension/screenshots/journal.png +0 -0
  126. package/src/extension/screenshots/map-highlighting.png +0 -0
  127. package/src/extension/screenshots/shop.png +0 -0
  128. package/src/index.js +266 -0
  129. package/src/modules/adblock/index.js +22 -0
  130. package/src/modules/adblock/styles.css +31 -0
  131. package/src/modules/better-gifts/index.js +568 -0
  132. package/src/modules/better-gifts/settings/index.js +80 -0
  133. package/src/modules/better-gifts/styles.css +593 -0
  134. package/src/modules/better-inventory/index.js +522 -0
  135. package/src/modules/better-inventory/modules/recipes/index.js +318 -0
  136. package/src/modules/better-inventory/modules/recipes/styles.css +30 -0
  137. package/src/modules/better-inventory/settings/index.js +24 -0
  138. package/src/modules/better-inventory/styles/double-width-item.css +21 -0
  139. package/src/modules/better-inventory/styles/full-width-item.css +27 -0
  140. package/src/modules/better-inventory/styles/larger-images.css +17 -0
  141. package/src/modules/better-inventory/styles/styles.css +704 -0
  142. package/src/modules/better-inventory/styles/tiny-group.css +83 -0
  143. package/src/modules/better-item-view/index.js +454 -0
  144. package/src/modules/better-item-view/modules/hover-item/index.js +211 -0
  145. package/src/modules/better-item-view/modules/hover-item/styles.css +57 -0
  146. package/src/modules/better-item-view/settings/index.js +19 -0
  147. package/src/modules/better-item-view/styles.css +406 -0
  148. package/src/modules/better-journal/index.js +81 -0
  149. package/src/modules/better-journal/modules/journal-full-mice-images/index.js +64 -0
  150. package/src/modules/better-journal/modules/journal-full-mice-images/styles.css +99 -0
  151. package/src/modules/better-journal/modules/journal-gold-and-points/index.js +57 -0
  152. package/src/modules/better-journal/modules/journal-gold-and-points/styles.css +21 -0
  153. package/src/modules/better-journal/modules/journal-highlight-rare-mice/index.js +10 -0
  154. package/src/modules/better-journal/modules/journal-highlight-rare-mice/styles.css +5 -0
  155. package/src/modules/better-journal/modules/journal-history/index.js +396 -0
  156. package/src/modules/better-journal/modules/journal-history/styles.css +36 -0
  157. package/src/modules/better-journal/modules/journal-icons/index.js +17 -0
  158. package/src/modules/better-journal/modules/journal-icons/styles.css +58 -0
  159. package/src/modules/better-journal/modules/journal-icons-minimal/index.js +10 -0
  160. package/src/modules/better-journal/modules/journal-icons-minimal/styles.css +78 -0
  161. package/src/modules/better-journal/modules/journal-item-colors/index.js +19 -0
  162. package/src/modules/better-journal/modules/journal-list/index.js +407 -0
  163. package/src/modules/better-journal/modules/journal-list/styles.css +29 -0
  164. package/src/modules/better-journal/modules/journal-replacements/index.js +430 -0
  165. package/src/modules/better-journal/modules/journal-replacements/styles.css +15 -0
  166. package/src/modules/better-journal/modules/journal-styles/index.js +89 -0
  167. package/src/modules/better-journal/modules/journal-styles/styles/backgrounds.css +71 -0
  168. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/aura.css +15 -0
  169. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/badge.css +85 -0
  170. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/alchemist-cookbook.css +8 -0
  171. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/gem.css +30 -0
  172. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/paper.css +3 -0
  173. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/ssdb.css +3 -0
  174. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/bonus.css +22 -0
  175. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/catch.css +4 -0
  176. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/failure.css +6 -0
  177. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/lucky.css +4 -0
  178. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/prize.css +8 -0
  179. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/gilded.css +9 -0
  180. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/rift-vacuum.css +8 -0
  181. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/torch.css +18 -0
  182. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/ultimate.css +21 -0
  183. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/unstable.css +28 -0
  184. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/draw-winner.css +19 -0
  185. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/events.css +41 -0
  186. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/gwh.css +3 -0
  187. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/kga.css +16 -0
  188. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/larry-gift.css +25 -0
  189. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/birthday.css +48 -0
  190. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/brift.css +6 -0
  191. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/bwrift.css +13 -0
  192. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/floating-islands.css +12 -0
  193. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/folklore-forest.css +57 -0
  194. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frift.css +46 -0
  195. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frox.css +5 -0
  196. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/garden.css +14 -0
  197. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/halloween.css +7 -0
  198. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/harbour.css +11 -0
  199. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/iceberg.css +38 -0
  200. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/labyrinth.css +34 -0
  201. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/mousoleum.css +5 -0
  202. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/queso.css +28 -0
  203. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/school.css +18 -0
  204. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/toxic-spill.css +13 -0
  205. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/vrift.css +12 -0
  206. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/wwrift.css +33 -0
  207. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/maps.css +8 -0
  208. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/glazy.css +10 -0
  209. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/stuck-snowball.css +3 -0
  210. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/valentines.css +10 -0
  211. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/other.css +34 -0
  212. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/popup.css +10 -0
  213. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/rank-up.css +57 -0
  214. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/social-gift.css +27 -0
  215. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/tournaments.css +14 -0
  216. package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/ultimate.css +7 -0
  217. package/src/modules/better-journal/modules/journal-styles/styles/date-hiding.css +74 -0
  218. package/src/modules/better-journal/modules/journal-styles/styles/fullstop.css +101 -0
  219. package/src/modules/better-journal/modules/journal-styles/styles/general.css +321 -0
  220. package/src/modules/better-journal/modules/journal-styles/styles/progress-log.css +217 -0
  221. package/src/modules/better-journal/modules/journal-tags/index.js +10 -0
  222. package/src/modules/better-journal/modules/journal-tags/styles.css +100 -0
  223. package/src/modules/better-journal/settings/index.js +56 -0
  224. package/src/modules/better-journal/styles/list-and-icons.css +3 -0
  225. package/src/modules/better-journal/styles/styles.css +15 -0
  226. package/src/modules/better-kings-reward/index.js +69 -0
  227. package/src/modules/better-kings-reward/styles.css +33 -0
  228. package/src/modules/better-maps/index.js +557 -0
  229. package/src/modules/better-maps/modules/catch-dates.js +78 -0
  230. package/src/modules/better-maps/modules/community.js +167 -0
  231. package/src/modules/better-maps/modules/consolation-prizes.js +30 -0
  232. package/src/modules/better-maps/modules/draggable-highlight.js +80 -0
  233. package/src/modules/better-maps/modules/floating-islands.js +209 -0
  234. package/src/modules/better-maps/modules/highlighting.js +277 -0
  235. package/src/modules/better-maps/modules/preview.js +66 -0
  236. package/src/modules/better-maps/modules/scrolls.js +183 -0
  237. package/src/modules/better-maps/modules/shops.js +170 -0
  238. package/src/modules/better-maps/modules/sidebar.js +203 -0
  239. package/src/modules/better-maps/modules/tab-goals.js +816 -0
  240. package/src/modules/better-maps/modules/tab-hunters.js +323 -0
  241. package/src/modules/better-maps/modules/tab-invites.js +66 -0
  242. package/src/modules/better-maps/modules/tab-sorted.js +818 -0
  243. package/src/modules/better-maps/modules/toggle-ar.js +237 -0
  244. package/src/modules/better-maps/settings/index.js +32 -0
  245. package/src/modules/better-maps/styles/catch-dates.css +23 -0
  246. package/src/modules/better-maps/styles/draggable.css +12 -0
  247. package/src/modules/better-maps/styles/general.css +1092 -0
  248. package/src/modules/better-maps/styles/helper.css +29 -0
  249. package/src/modules/better-maps/styles/highlight-for-map.css +19 -0
  250. package/src/modules/better-maps/styles/hunters.css +191 -0
  251. package/src/modules/better-maps/styles/invites.css +50 -0
  252. package/src/modules/better-maps/styles/map-ar.css +95 -0
  253. package/src/modules/better-maps/styles/mhct.css +145 -0
  254. package/src/modules/better-maps/styles/overlays.css +15 -0
  255. package/src/modules/better-maps/styles/rewards.css +206 -0
  256. package/src/modules/better-maps/styles/scroll-shop.css +241 -0
  257. package/src/modules/better-maps/styles/sidebar.css +105 -0
  258. package/src/modules/better-maps/styles/sorted-map.css +11 -0
  259. package/src/modules/better-maps/styles/sorted.css +351 -0
  260. package/src/modules/better-maps/styles/userscripts.css +70 -0
  261. package/src/modules/better-maps/utils.js +82 -0
  262. package/src/modules/better-marketplace/index.js +669 -0
  263. package/src/modules/better-marketplace/settings/index.js +29 -0
  264. package/src/modules/better-marketplace/styles/quick-sell.css +27 -0
  265. package/src/modules/better-marketplace/styles/small-images.css +5 -0
  266. package/src/modules/better-marketplace/styles/styles.css +261 -0
  267. package/src/modules/better-marketplace/styles/trend-numbers.css +37 -0
  268. package/src/modules/better-mice/index.js +692 -0
  269. package/src/modules/better-mice/modules/hover-mice/index.js +236 -0
  270. package/src/modules/better-mice/modules/hover-mice/styles.css +101 -0
  271. package/src/modules/better-mice/modules/mouse-page/index.js +559 -0
  272. package/src/modules/better-mice/modules/sidebar/index.js +110 -0
  273. package/src/modules/better-mice/modules/sidebar/styles.css +43 -0
  274. package/src/modules/better-mice/settings/index.js +24 -0
  275. package/src/modules/better-mice/styles.css +409 -0
  276. package/src/modules/better-quests/index.js +519 -0
  277. package/src/modules/better-quests/modules/m400/index.js +139 -0
  278. package/src/modules/better-quests/settings/index.js +13 -0
  279. package/src/modules/better-quests/styles.css +223 -0
  280. package/src/modules/better-send-supplies/index.js +361 -0
  281. package/src/modules/better-send-supplies/settings/index.js +45 -0
  282. package/src/modules/better-send-supplies/styles.css +316 -0
  283. package/src/modules/better-shops/index.js +234 -0
  284. package/src/modules/better-shops/modules/hide-max-owned/styles.css +10 -0
  285. package/src/modules/better-shops/modules/quantity-buttons/index.js +56 -0
  286. package/src/modules/better-shops/modules/quantity-buttons/styles.css +38 -0
  287. package/src/modules/better-shops/settings/index.js +19 -0
  288. package/src/modules/better-shops/styles/cost.css +135 -0
  289. package/src/modules/better-shops/styles/general.css +701 -0
  290. package/src/modules/better-shops/styles/order.css +21 -0
  291. package/src/modules/better-shops/styles/retired.css +11 -0
  292. package/src/modules/better-shops/styles/riftstalker.css +48 -0
  293. package/src/modules/better-shops/styles/stats.css +71 -0
  294. package/src/modules/better-tournaments/index.js +282 -0
  295. package/src/modules/better-tournaments/settings/index.js +12 -0
  296. package/src/modules/better-tournaments/styles.css +773 -0
  297. package/src/modules/better-travel/index.js +868 -0
  298. package/src/modules/better-travel/modules/reminders/index.js +169 -0
  299. package/src/modules/better-travel/modules/travel-window/index.js +380 -0
  300. package/src/modules/better-travel/modules/travel-window/styles.css +142 -0
  301. package/src/modules/better-travel/settings/index.js +34 -0
  302. package/src/modules/better-travel/styles/explore-map.css +66 -0
  303. package/src/modules/better-travel/styles/styles.css +421 -0
  304. package/src/modules/better-travel/styles/travel-menu-hiding.css +4 -0
  305. package/src/modules/better-travel/utils.js +28 -0
  306. package/src/modules/better-ui/index.js +71 -0
  307. package/src/modules/better-ui/modules/adventure-book/index.js +28 -0
  308. package/src/modules/better-ui/modules/codex-at-bottom/index.js +24 -0
  309. package/src/modules/better-ui/modules/egg-master/index.js +51 -0
  310. package/src/modules/better-ui/modules/friends/index.js +141 -0
  311. package/src/modules/better-ui/modules/hud/index.js +108 -0
  312. package/src/modules/better-ui/modules/kings-promo/index.js +15 -0
  313. package/src/modules/better-ui/modules/larger-codices/index.js +10 -0
  314. package/src/modules/better-ui/modules/larger-codices/styles.css +57 -0
  315. package/src/modules/better-ui/modules/larger-skin-images/index.js +148 -0
  316. package/src/modules/better-ui/modules/larger-skin-images/styles.css +21 -0
  317. package/src/modules/better-ui/modules/legacy-styles/index.js +9 -0
  318. package/src/modules/better-ui/modules/legacy-styles/styles.css +20 -0
  319. package/src/modules/better-ui/modules/maintenance/index.js +49 -0
  320. package/src/modules/better-ui/modules/random-skin-button/index.js +58 -0
  321. package/src/modules/better-ui/modules/random-skin-button/styles.css +16 -0
  322. package/src/modules/better-ui/modules/show-unowned-skins/index.js +109 -0
  323. package/src/modules/better-ui/modules/show-unowned-skins/styles.css +7 -0
  324. package/src/modules/better-ui/modules/skin-preview-base/index.js +24 -0
  325. package/src/modules/better-ui/modules/trap-gradient-background/index.js +10 -0
  326. package/src/modules/better-ui/modules/trap-gradient-background/styles.css +10 -0
  327. package/src/modules/better-ui/modules/userscripts-styles/index.js +40 -0
  328. package/src/modules/better-ui/modules/userscripts-styles/styles/any-trap-any-skin.css +52 -0
  329. package/src/modules/better-ui/modules/userscripts-styles/styles/favorite-setups.css +4 -0
  330. package/src/modules/better-ui/modules/userscripts-styles/styles/journal-historian.css +14 -0
  331. package/src/modules/better-ui/modules/userscripts-styles/styles/lgs-reminder.css +16 -0
  332. package/src/modules/better-ui/modules/userscripts-styles/styles/profile-plus.css +172 -0
  333. package/src/modules/better-ui/modules/userscripts-styles/styles/spring-egg-hunt-helper.css +5 -0
  334. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-autoloader.css +91 -0
  335. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-location-catch-stats.css +166 -0
  336. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-qol.css +21 -0
  337. package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-supply-search.css +33 -0
  338. package/src/modules/better-ui/settings/index.js +50 -0
  339. package/src/modules/better-ui/styles/adventure.css +380 -0
  340. package/src/modules/better-ui/styles/buttons.css +91 -0
  341. package/src/modules/better-ui/styles/corkboard.css +184 -0
  342. package/src/modules/better-ui/styles/daily-draw.css +203 -0
  343. package/src/modules/better-ui/styles/events.css +233 -0
  344. package/src/modules/better-ui/styles/footer.css +121 -0
  345. package/src/modules/better-ui/styles/friends.css +232 -0
  346. package/src/modules/better-ui/styles/general.css +525 -0
  347. package/src/modules/better-ui/styles/gifts.css +108 -0
  348. package/src/modules/better-ui/styles/horn.css +51 -0
  349. package/src/modules/better-ui/styles/hud.css +131 -0
  350. package/src/modules/better-ui/styles/inbox.css +278 -0
  351. package/src/modules/better-ui/styles/le.css +28 -0
  352. package/src/modules/better-ui/styles/legacy.css +25 -0
  353. package/src/modules/better-ui/styles/login.css +51 -0
  354. package/src/modules/better-ui/styles/maintence.css +49 -0
  355. package/src/modules/better-ui/styles/mobile-camp.css +36 -0
  356. package/src/modules/better-ui/styles/news.css +126 -0
  357. package/src/modules/better-ui/styles/overlays.css +274 -0
  358. package/src/modules/better-ui/styles/profile.css +795 -0
  359. package/src/modules/better-ui/styles/ronza.css +25 -0
  360. package/src/modules/better-ui/styles/scoreboards.css +50 -0
  361. package/src/modules/better-ui/styles/scrambles.css +84 -0
  362. package/src/modules/better-ui/styles/select2.css +47 -0
  363. package/src/modules/better-ui/styles/settings.css +22 -0
  364. package/src/modules/better-ui/styles/sidebar.css +15 -0
  365. package/src/modules/better-ui/styles/skins.css +4 -0
  366. package/src/modules/better-ui/styles/tabs.css +235 -0
  367. package/src/modules/better-ui/styles/team.css +177 -0
  368. package/src/modules/better-ui/styles/timer.css +14 -0
  369. package/src/modules/better-ui/styles/trap-selector.css +124 -0
  370. package/src/modules/better-ui/styles/traps.css +643 -0
  371. package/src/modules/better-ui/styles/tutorial.css +63 -0
  372. package/src/modules/better-ui/styles/ui-page.css +178 -0
  373. package/src/modules/big-timer/index.js +42 -0
  374. package/src/modules/big-timer/legacy-styles.css +19 -0
  375. package/src/modules/big-timer/styles.css +18 -0
  376. package/src/modules/catch-rate-estimate/data.js +458 -0
  377. package/src/modules/catch-rate-estimate/index.js +413 -0
  378. package/src/modules/catch-rate-estimate/settings/index.js +12 -0
  379. package/src/modules/catch-rate-estimate/styles.css +213 -0
  380. package/src/modules/copy-id/index.js +91 -0
  381. package/src/modules/copy-id/settings/index.js +13 -0
  382. package/src/modules/copy-id/styles.css +26 -0
  383. package/src/modules/custom-background/index.js +179 -0
  384. package/src/modules/custom-background/settings/index.js +60 -0
  385. package/src/modules/custom-background/styles.css +135 -0
  386. package/src/modules/custom-camp-background/index.js +83 -0
  387. package/src/modules/custom-camp-background/settings/index.js +52 -0
  388. package/src/modules/custom-camp-background/styles.css +57 -0
  389. package/src/modules/custom-css/index.js +50 -0
  390. package/src/modules/custom-css/settings/index.js +16 -0
  391. package/src/modules/custom-horn/index.js +244 -0
  392. package/src/modules/custom-horn/settings/index.js +60 -0
  393. package/src/modules/custom-horn/styles.css +107 -0
  394. package/src/modules/custom-hud/index.js +130 -0
  395. package/src/modules/custom-hud/settings/index.js +49 -0
  396. package/src/modules/custom-hud/styles/blueprint.css +13 -0
  397. package/src/modules/custom-hud/styles/groovy-green.css +6 -0
  398. package/src/modules/custom-hud/styles/midnight.css +23 -0
  399. package/src/modules/custom-hud/styles/suede.css +10 -0
  400. package/src/modules/custom-shield/cotton-candy.css +38 -0
  401. package/src/modules/custom-shield/index.js +267 -0
  402. package/src/modules/custom-shield/settings/index.js +156 -0
  403. package/src/modules/custom-shield/styles.css +423 -0
  404. package/src/modules/dark-mode-tweaks/index.js +69 -0
  405. package/src/modules/dark-mode-tweaks/journal-entries.css +17 -0
  406. package/src/modules/dark-mode-tweaks/styles.css +401 -0
  407. package/src/modules/data-exporters/exporters/export-favorite-setups-userscript.js +78 -0
  408. package/src/modules/data-exporters/exporters/export-favorite-setups.js +63 -0
  409. package/src/modules/data-exporters/exporters/export-inventory.js +115 -0
  410. package/src/modules/data-exporters/exporters/export-journal-entries.js +61 -0
  411. package/src/modules/data-exporters/exporters/export-kings-crowns.js +71 -0
  412. package/src/modules/data-exporters/exporters/export-marketplace.js +112 -0
  413. package/src/modules/data-exporters/exporters/export-mice.js +287 -0
  414. package/src/modules/data-exporters/exporters/export-rankup-forecaster.js +51 -0
  415. package/src/modules/data-exporters/exporters/export-scoreboards.js +100 -0
  416. package/src/modules/data-exporters/index.js +147 -0
  417. package/src/modules/data-exporters/styles.css +113 -0
  418. package/src/modules/data-exporters/utils.js +355 -0
  419. package/src/modules/debug/index.js +172 -0
  420. package/src/modules/debug/settings/index.js +53 -0
  421. package/src/modules/delayed-menus/index.js +19 -0
  422. package/src/modules/delayed-menus/styles.css +4 -0
  423. package/src/modules/delayed-tooltips/index.js +36 -0
  424. package/src/modules/delayed-tooltips/styles.css +12 -0
  425. package/src/modules/emotes/emotes.json +107 -0
  426. package/src/modules/emotes/index.js +53 -0
  427. package/src/modules/emotes/styles.css +3 -0
  428. package/src/modules/error-reporting/index.js +12 -0
  429. package/src/modules/experiments/index.js +134 -0
  430. package/src/modules/experiments/modules/fabled-custom-title/index.js +143 -0
  431. package/src/modules/experiments/modules/fabled-max-title-progress-bar/index.js +18 -0
  432. package/src/modules/experiments/modules/fabled-max-title-progress-bar/styles.css +8 -0
  433. package/src/modules/experiments/modules/fabled-random-title/index.js +814 -0
  434. package/src/modules/experiments/modules/fabled-random-title/styles.css +9 -0
  435. package/src/modules/experiments/modules/full-mice-images-no-border/index.js +22 -0
  436. package/src/modules/experiments/modules/full-mice-images-no-border/styles.css +26 -0
  437. package/src/modules/experiments/modules/gift-button-opens-gift-selector/index.js +31 -0
  438. package/src/modules/experiments/modules/memory-game/index.js +100 -0
  439. package/src/modules/experiments/modules/real-base-stats/index.js +100 -0
  440. package/src/modules/experiments/modules/settings-options.css +31 -0
  441. package/src/modules/experiments/modules/sort-daily-draw-reverse/index.js +68 -0
  442. package/src/modules/experiments/modules/square-profile-pics/index.js +17 -0
  443. package/src/modules/experiments/modules/square-profile-pics/styles.css +13 -0
  444. package/src/modules/favorite-setups/index.js +1431 -0
  445. package/src/modules/favorite-setups/settings/index.js +25 -0
  446. package/src/modules/favorite-setups/styles.css +471 -0
  447. package/src/modules/feature-flags/index.js +36 -0
  448. package/src/modules/feature-flags/modules/fake-fabled.js +7 -0
  449. package/src/modules/feature-flags/modules/rank-up-forecaster.js +198 -0
  450. package/src/modules/feature-flags/modules/social.js +37 -0
  451. package/src/modules/feature-flags/settings/index.js +16 -0
  452. package/src/modules/fixes/index.js +33 -0
  453. package/src/modules/fixes/modules/item-page.js +115 -0
  454. package/src/modules/fixes/modules/marketplace-buy-button.js +17 -0
  455. package/src/modules/fixes/modules/passing-parcel.js +84 -0
  456. package/src/modules/fixes/modules/rift-tooltip-quantities.js +30 -0
  457. package/src/modules/fixes/styles/accessibility.css +20 -0
  458. package/src/modules/fixes/styles/backgrounds.css +89 -0
  459. package/src/modules/fixes/styles/bountiful-beanstalk.css +4 -0
  460. package/src/modules/fixes/styles/buttons.css +3 -0
  461. package/src/modules/fixes/styles/claim-gift.css +4 -0
  462. package/src/modules/fixes/styles/colors.css +69 -0
  463. package/src/modules/fixes/styles/convertibles.css +9 -0
  464. package/src/modules/fixes/styles/discord.css +4 -0
  465. package/src/modules/fixes/styles/dropdown.css +23 -0
  466. package/src/modules/fixes/styles/events.css +3 -0
  467. package/src/modules/fixes/styles/fb-img-size.css +10 -0
  468. package/src/modules/fixes/styles/font-sizes.css +8 -0
  469. package/src/modules/fixes/styles/footer.css +5 -0
  470. package/src/modules/fixes/styles/hud-shadow.css +8 -0
  471. package/src/modules/fixes/styles/hunter-title.css +11 -0
  472. package/src/modules/fixes/styles/image.css +4 -0
  473. package/src/modules/fixes/styles/labyrinth.css +10 -0
  474. package/src/modules/fixes/styles/location-names-overflow.css +14 -0
  475. package/src/modules/fixes/styles/maps.css +15 -0
  476. package/src/modules/fixes/styles/menu.css +11 -0
  477. package/src/modules/fixes/styles/news-back.css +17 -0
  478. package/src/modules/fixes/styles/other.css +14 -0
  479. package/src/modules/fixes/styles/preferences.css +16 -0
  480. package/src/modules/fixes/styles/queso.css +4 -0
  481. package/src/modules/fixes/styles/ronza.css +5 -0
  482. package/src/modules/fixes/styles/scoreboard.css +5 -0
  483. package/src/modules/fixes/styles/tabs.css +38 -0
  484. package/src/modules/fixes/styles/tem.css +10 -0
  485. package/src/modules/fixes/styles/tooltips.css +24 -0
  486. package/src/modules/fixes/styles/tutorial-overlay.css +16 -0
  487. package/src/modules/flrt-helper/index.js +230 -0
  488. package/src/modules/flrt-helper/styles.css +235 -0
  489. package/src/modules/global-styles/index.js +21 -0
  490. package/src/modules/global-styles/styles/animations.css +194 -0
  491. package/src/modules/global-styles/styles/blueprint.css +11 -0
  492. package/src/modules/global-styles/styles/buttons.css +88 -0
  493. package/src/modules/global-styles/styles/favorite-button.css +30 -0
  494. package/src/modules/global-styles/styles/game-info-bar.css +11 -0
  495. package/src/modules/global-styles/styles/general.css +55 -0
  496. package/src/modules/global-styles/styles/horn-message.css +61 -0
  497. package/src/modules/global-styles/styles/messages.css +49 -0
  498. package/src/modules/global-styles/styles/settings.css +84 -0
  499. package/src/modules/global-styles/styles/tooltips.css +22 -0
  500. package/src/modules/global-styles/styles/trap-qty.css +45 -0
  501. package/src/modules/global-styles/styles/utility.css +39 -0
  502. package/src/modules/hide-codices/index.js +22 -0
  503. package/src/modules/hide-codices/styles.css +4 -0
  504. package/src/modules/hide-daily-draw/index.js +146 -0
  505. package/src/modules/hide-daily-draw/styles.css +3 -0
  506. package/src/modules/hide-daily-reward-popup/index.js +57 -0
  507. package/src/modules/hide-footer/index.js +37 -0
  508. package/src/modules/hide-footer/styles.css +10 -0
  509. package/src/modules/hide-news-ticker/index.js +21 -0
  510. package/src/modules/hide-news-ticker/styles.css +3 -0
  511. package/src/modules/hide-share/index.js +26 -0
  512. package/src/modules/hide-share/styles.css +29 -0
  513. package/src/modules/hide-sidebar/index.js +106 -0
  514. package/src/modules/hide-sidebar/styles.css +102 -0
  515. package/src/modules/hover-profiles/index.js +402 -0
  516. package/src/modules/hover-profiles/styles.css +247 -0
  517. package/src/modules/image-upscaling/index.js +375 -0
  518. package/src/modules/image-upscaling/styles.css +265 -0
  519. package/src/modules/image-upscaling/views.css +270 -0
  520. package/src/modules/inline-wiki/index.js +111 -0
  521. package/src/modules/inline-wiki/styles.css +9 -0
  522. package/src/modules/inventory-buttons/index.js +163 -0
  523. package/src/modules/inventory-buttons/settings/index.js +29 -0
  524. package/src/modules/inventory-buttons/styles/only-open-multiple.css +20 -0
  525. package/src/modules/inventory-lock-and-hide/index.js +641 -0
  526. package/src/modules/inventory-lock-and-hide/styles.css +139 -0
  527. package/src/modules/journal-changer/index.js +321 -0
  528. package/src/modules/journal-changer/settings/index.js +19 -0
  529. package/src/modules/journal-changer/styles.css +21 -0
  530. package/src/modules/journal-privacy/index.js +219 -0
  531. package/src/modules/journal-privacy/settings/index.js +19 -0
  532. package/src/modules/journal-privacy/styles/icon.css +31 -0
  533. package/src/modules/journal-privacy/styles/styles.css +30 -0
  534. package/src/modules/journal-privacy/styles/transparent.css +30 -0
  535. package/src/modules/keyboard-shortcuts/actions.js +213 -0
  536. package/src/modules/keyboard-shortcuts/index.js +521 -0
  537. package/src/modules/keyboard-shortcuts/styles.css +110 -0
  538. package/src/modules/legacy-hud/index.js +314 -0
  539. package/src/modules/legacy-hud/settings/index.js +24 -0
  540. package/src/modules/legacy-hud/styles/menu.css +19 -0
  541. package/src/modules/legacy-hud/styles/stats.css +18 -0
  542. package/src/modules/legacy-hud/styles/styles.css +3 -0
  543. package/src/modules/legacy-hud/styles/tweaks.css +60 -0
  544. package/src/modules/lgs-reminder/index.js +229 -0
  545. package/src/modules/lgs-reminder/settings/index.js +17 -0
  546. package/src/modules/lgs-reminder/styles.css +85 -0
  547. package/src/modules/links/index.js +69 -0
  548. package/src/modules/location-catch-stats/crown-colored-rows.css +47 -0
  549. package/src/modules/location-catch-stats/index.js +234 -0
  550. package/src/modules/location-catch-stats/settings/index.js +17 -0
  551. package/src/modules/location-catch-stats/styles.css +125 -0
  552. package/src/modules/location-dashboard/index.js +536 -0
  553. package/src/modules/location-dashboard/locations/afterword-acres.js +18 -0
  554. package/src/modules/location-dashboard/locations/ancient-city.js +23 -0
  555. package/src/modules/location-dashboard/locations/bountiful-beanstalk.js +51 -0
  556. package/src/modules/location-dashboard/locations/desert-oasis.js +22 -0
  557. package/src/modules/location-dashboard/locations/desert-warpath.js +58 -0
  558. package/src/modules/location-dashboard/locations/draconic-depths.js +52 -0
  559. package/src/modules/location-dashboard/locations/epilogue-falls.js +40 -0
  560. package/src/modules/location-dashboard/locations/floating-islands.js +74 -0
  561. package/src/modules/location-dashboard/locations/foreword-farm.js +45 -0
  562. package/src/modules/location-dashboard/locations/fort-rox.js +39 -0
  563. package/src/modules/location-dashboard/locations/iceberg.js +16 -0
  564. package/src/modules/location-dashboard/locations/labyrinth.js +38 -0
  565. package/src/modules/location-dashboard/locations/lost-city.js +28 -0
  566. package/src/modules/location-dashboard/locations/mousoleum.js +20 -0
  567. package/src/modules/location-dashboard/locations/moussu-picchu.js +29 -0
  568. package/src/modules/location-dashboard/locations/pollution-outbreak.js +18 -0
  569. package/src/modules/location-dashboard/locations/queso-geyser.js +16 -0
  570. package/src/modules/location-dashboard/locations/rift-bristle-woods.js +28 -0
  571. package/src/modules/location-dashboard/locations/rift-burroughs.js +14 -0
  572. package/src/modules/location-dashboard/locations/rift-furoma.js +50 -0
  573. package/src/modules/location-dashboard/locations/rift-valour.js +30 -0
  574. package/src/modules/location-dashboard/locations/sand-dunes.js +21 -0
  575. package/src/modules/location-dashboard/locations/school-of-sorcery.js +29 -0
  576. package/src/modules/location-dashboard/locations/seasonal-garden.js +46 -0
  577. package/src/modules/location-dashboard/locations/sunken-city.js +25 -0
  578. package/src/modules/location-dashboard/locations/table-of-contents.js +20 -0
  579. package/src/modules/location-dashboard/locations/whisker-woods-rift.js +15 -0
  580. package/src/modules/location-dashboard/locations/zugzwang-tower.js +81 -0
  581. package/src/modules/location-dashboard/styles.css +389 -0
  582. package/src/modules/location-huds/index.js +261 -0
  583. package/src/modules/location-huds/locations/acolyte-realm/index.js +13 -0
  584. package/src/modules/location-huds/locations/afterword-acres/index.js +14 -0
  585. package/src/modules/location-huds/locations/afterword-acres/styles.css +21 -0
  586. package/src/modules/location-huds/locations/ancient-city/index.js +197 -0
  587. package/src/modules/location-huds/locations/ancient-city/styles.css +251 -0
  588. package/src/modules/location-huds/locations/balacks-cove/index.js +81 -0
  589. package/src/modules/location-huds/locations/balacks-cove/styles.css +12 -0
  590. package/src/modules/location-huds/locations/bazaar/index.js +8 -0
  591. package/src/modules/location-huds/locations/bountiful-beanstalk/index.js +309 -0
  592. package/src/modules/location-huds/locations/bountiful-beanstalk/small-inv.css +34 -0
  593. package/src/modules/location-huds/locations/bountiful-beanstalk/styles.css +608 -0
  594. package/src/modules/location-huds/locations/calm-clearing/index.js +8 -0
  595. package/src/modules/location-huds/locations/cape-clawed/index.js +12 -0
  596. package/src/modules/location-huds/locations/catacombs/index.js +17 -0
  597. package/src/modules/location-huds/locations/claw-shot-city/index.js +10 -0
  598. package/src/modules/location-huds/locations/claw-shot-city/styles.css +5 -0
  599. package/src/modules/location-huds/locations/conclusion-cliffs/index.js +14 -0
  600. package/src/modules/location-huds/locations/conclusion-cliffs/styles.css +114 -0
  601. package/src/modules/location-huds/locations/derr-dunes/index.js +8 -0
  602. package/src/modules/location-huds/locations/desert-city/index.js +10 -0
  603. package/src/modules/location-huds/locations/desert-city/styles.css +13 -0
  604. package/src/modules/location-huds/locations/desert-warpath/index.js +212 -0
  605. package/src/modules/location-huds/locations/desert-warpath/styles.css +273 -0
  606. package/src/modules/location-huds/locations/dojo/index.js +8 -0
  607. package/src/modules/location-huds/locations/dracano/index.js +8 -0
  608. package/src/modules/location-huds/locations/draconic-depths/index.js +143 -0
  609. package/src/modules/location-huds/locations/draconic-depths/styles.css +222 -0
  610. package/src/modules/location-huds/locations/elub-shore/index.js +8 -0
  611. package/src/modules/location-huds/locations/epilogue-falls/index.js +101 -0
  612. package/src/modules/location-huds/locations/epilogue-falls/styles.css +312 -0
  613. package/src/modules/location-huds/locations/event-locations/birthday/index.js +88 -0
  614. package/src/modules/location-huds/locations/event-locations/birthday/styles.css +341 -0
  615. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/global.css +251 -0
  616. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/index.js +425 -0
  617. package/src/modules/location-huds/locations/event-locations/great-winter-hunt/styles.css +887 -0
  618. package/src/modules/location-huds/locations/event-locations/halloween/index.js +45 -0
  619. package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/index.js +118 -0
  620. package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/styles.css +33 -0
  621. package/src/modules/location-huds/locations/event-locations/halloween/styles.css +605 -0
  622. package/src/modules/location-huds/locations/event-locations/index.js +54 -0
  623. package/src/modules/location-huds/locations/event-locations/lunar-new-year/index.js +176 -0
  624. package/src/modules/location-huds/locations/event-locations/lunar-new-year/styles.css +263 -0
  625. package/src/modules/location-huds/locations/event-locations/ronza/index.js +111 -0
  626. package/src/modules/location-huds/locations/event-locations/ronza/styles.css +144 -0
  627. package/src/modules/location-huds/locations/event-locations/shared.js +67 -0
  628. package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/index.js +128 -0
  629. package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/styles.css +196 -0
  630. package/src/modules/location-huds/locations/floating-islands/index.js +552 -0
  631. package/src/modules/location-huds/locations/floating-islands/styles.css +792 -0
  632. package/src/modules/location-huds/locations/forbidden-grove/index.js +75 -0
  633. package/src/modules/location-huds/locations/forbidden-grove/styles.css +16 -0
  634. package/src/modules/location-huds/locations/foreword-farm/index.js +84 -0
  635. package/src/modules/location-huds/locations/foreword-farm/styles.css +376 -0
  636. package/src/modules/location-huds/locations/fort-rox/index.js +249 -0
  637. package/src/modules/location-huds/locations/fort-rox/styles.css +257 -0
  638. package/src/modules/location-huds/locations/fungal-cavern/index.js +10 -0
  639. package/src/modules/location-huds/locations/fungal-cavern/styles.css +77 -0
  640. package/src/modules/location-huds/locations/great-gnarled-tree/index.js +8 -0
  641. package/src/modules/location-huds/locations/harbour/index.js +10 -0
  642. package/src/modules/location-huds/locations/harbour/styles.css +32 -0
  643. package/src/modules/location-huds/locations/iceberg/index.js +469 -0
  644. package/src/modules/location-huds/locations/iceberg/styles/bob-iceberg.css +57 -0
  645. package/src/modules/location-huds/locations/iceberg/styles/styles.css +329 -0
  646. package/src/modules/location-huds/locations/jungle-of-dread/index.js +17 -0
  647. package/src/modules/location-huds/locations/kings-arms/index.js +8 -0
  648. package/src/modules/location-huds/locations/kings-gauntlet/index.js +17 -0
  649. package/src/modules/location-huds/locations/laboratory/index.js +10 -0
  650. package/src/modules/location-huds/locations/laboratory/styles.css +41 -0
  651. package/src/modules/location-huds/locations/labyrinth/index.js +315 -0
  652. package/src/modules/location-huds/locations/labyrinth/styles.css +547 -0
  653. package/src/modules/location-huds/locations/lagoon/index.js +8 -0
  654. package/src/modules/location-huds/locations/meditation-room/index.js +12 -0
  655. package/src/modules/location-huds/locations/mountain/index.js +10 -0
  656. package/src/modules/location-huds/locations/mountain/styles.css +259 -0
  657. package/src/modules/location-huds/locations/mousoleum/index.js +17 -0
  658. package/src/modules/location-huds/locations/mousoleum/styles.css +21 -0
  659. package/src/modules/location-huds/locations/moussu-picchu/index.js +10 -0
  660. package/src/modules/location-huds/locations/moussu-picchu/styles.css +243 -0
  661. package/src/modules/location-huds/locations/nerg-plains/index.js +8 -0
  662. package/src/modules/location-huds/locations/pinnacle-chamber/index.js +11 -0
  663. package/src/modules/location-huds/locations/pollution-outbreak/index.js +32 -0
  664. package/src/modules/location-huds/locations/pollution-outbreak/styles.css +516 -0
  665. package/src/modules/location-huds/locations/prologue-pond/index.js +64 -0
  666. package/src/modules/location-huds/locations/prologue-pond/styles.css +138 -0
  667. package/src/modules/location-huds/locations/region-living-garden/index.js +36 -0
  668. package/src/modules/location-huds/locations/region-living-garden/styles.css +316 -0
  669. package/src/modules/location-huds/locations/region-queso/index.js +10 -0
  670. package/src/modules/location-huds/locations/region-queso/styles.css +366 -0
  671. package/src/modules/location-huds/locations/rift-bristle-woods/index.js +29 -0
  672. package/src/modules/location-huds/locations/rift-bristle-woods/styles.css +268 -0
  673. package/src/modules/location-huds/locations/rift-burroughs/index.js +157 -0
  674. package/src/modules/location-huds/locations/rift-burroughs/styles.css +272 -0
  675. package/src/modules/location-huds/locations/rift-furoma/index.js +79 -0
  676. package/src/modules/location-huds/locations/rift-furoma/styles.css +233 -0
  677. package/src/modules/location-huds/locations/rift-gnawnia/index.js +10 -0
  678. package/src/modules/location-huds/locations/rift-gnawnia/styles.css +83 -0
  679. package/src/modules/location-huds/locations/rift-valour/flipped-avatar.css +15 -0
  680. package/src/modules/location-huds/locations/rift-valour/index.js +271 -0
  681. package/src/modules/location-huds/locations/rift-valour/simulator.js +559 -0
  682. package/src/modules/location-huds/locations/rift-valour/styles.css +644 -0
  683. package/src/modules/location-huds/locations/rift-whisker-woods/index.js +86 -0
  684. package/src/modules/location-huds/locations/rift-whisker-woods/styles.css +214 -0
  685. package/src/modules/location-huds/locations/school-of-sorcery/clean-chalkboard.css +11 -0
  686. package/src/modules/location-huds/locations/school-of-sorcery/index.js +109 -0
  687. package/src/modules/location-huds/locations/school-of-sorcery/styles.css +460 -0
  688. package/src/modules/location-huds/locations/seasonal-garden/index.js +71 -0
  689. package/src/modules/location-huds/locations/seasonal-garden/styles.css +132 -0
  690. package/src/modules/location-huds/locations/slushy-shoreline/index.js +8 -0
  691. package/src/modules/location-huds/locations/ss-huntington-ii/index.js +8 -0
  692. package/src/modules/location-huds/locations/sunken-city/index.js +177 -0
  693. package/src/modules/location-huds/locations/sunken-city/styles.css +196 -0
  694. package/src/modules/location-huds/locations/table-of-contents/index.js +389 -0
  695. package/src/modules/location-huds/locations/table-of-contents/simulator-styles.css +240 -0
  696. package/src/modules/location-huds/locations/table-of-contents/simulator.js +276 -0
  697. package/src/modules/location-huds/locations/table-of-contents/styles.css +403 -0
  698. package/src/modules/location-huds/locations/tournament-hall/index.js +8 -0
  699. package/src/modules/location-huds/locations/town-of-digby/index.js +8 -0
  700. package/src/modules/location-huds/locations/town-of-gnawnia/index.js +10 -0
  701. package/src/modules/location-huds/locations/town-of-gnawnia/styles.css +48 -0
  702. package/src/modules/location-huds/locations/train-station/index.js +10 -0
  703. package/src/modules/location-huds/locations/train-station/styles.css +31 -0
  704. package/src/modules/location-huds/locations/windmill/index.js +53 -0
  705. package/src/modules/location-huds/locations/windmill/styles.css +73 -0
  706. package/src/modules/location-huds/locations/zugzwang-tower/index.js +10 -0
  707. package/src/modules/location-huds/locations/zugzwang-tower/styles.css +54 -0
  708. package/src/modules/location-huds/settings.js +124 -0
  709. package/src/modules/location-huds/shared/cheese-selectors/index.js +143 -0
  710. package/src/modules/location-huds/shared/crafting-buttons/index.js +133 -0
  711. package/src/modules/location-huds/shared/crafting-buttons/styles.css +51 -0
  712. package/src/modules/location-huds/shared/folklore-forest/index.js +261 -0
  713. package/src/modules/location-huds/shared/folklore-forest/keep-inventory-open.js +77 -0
  714. package/src/modules/location-huds/shared/folklore-forest/styles.css +394 -0
  715. package/src/modules/location-huds/styles.css +61 -0
  716. package/src/modules/location-huds/toggle-icon.js +74 -0
  717. package/src/modules/metric/index.js +114 -0
  718. package/src/modules/native-dark-mode/index.js +79 -0
  719. package/src/modules/native-dark-mode/settings/index.js +15 -0
  720. package/src/modules/native-dark-mode/styles/_root.css +42 -0
  721. package/src/modules/native-dark-mode/styles/adventure.css +95 -0
  722. package/src/modules/native-dark-mode/styles/camp-tabs.css +113 -0
  723. package/src/modules/native-dark-mode/styles/camp-trap.css +420 -0
  724. package/src/modules/native-dark-mode/styles/conflict-popup.css +39 -0
  725. package/src/modules/native-dark-mode/styles/events.css +7 -0
  726. package/src/modules/native-dark-mode/styles/favorite-setups.css +12 -0
  727. package/src/modules/native-dark-mode/styles/friends.css +210 -0
  728. package/src/modules/native-dark-mode/styles/general.css +231 -0
  729. package/src/modules/native-dark-mode/styles/gifts.css +243 -0
  730. package/src/modules/native-dark-mode/styles/header-dropdown.css +62 -0
  731. package/src/modules/native-dark-mode/styles/header.css +100 -0
  732. package/src/modules/native-dark-mode/styles/hover-items.css +30 -0
  733. package/src/modules/native-dark-mode/styles/inbox.css +85 -0
  734. package/src/modules/native-dark-mode/styles/inventory.css +271 -0
  735. package/src/modules/native-dark-mode/styles/item-view.css +42 -0
  736. package/src/modules/native-dark-mode/styles/journal-main.css +115 -0
  737. package/src/modules/native-dark-mode/styles/journal-misc-entries.css +118 -0
  738. package/src/modules/native-dark-mode/styles/journal-preview.css +37 -0
  739. package/src/modules/native-dark-mode/styles/kings-calibrator.css +53 -0
  740. package/src/modules/native-dark-mode/styles/loading.css +58 -0
  741. package/src/modules/native-dark-mode/styles/location-catch-stats.css +31 -0
  742. package/src/modules/native-dark-mode/styles/maps.css +597 -0
  743. package/src/modules/native-dark-mode/styles/markethunt.css +41 -0
  744. package/src/modules/native-dark-mode/styles/marketplace.css +278 -0
  745. package/src/modules/native-dark-mode/styles/mice-images.css +10 -0
  746. package/src/modules/native-dark-mode/styles/mice.css +262 -0
  747. package/src/modules/native-dark-mode/styles/mouse-view.css +44 -0
  748. package/src/modules/native-dark-mode/styles/news.css +40 -0
  749. package/src/modules/native-dark-mode/styles/overlays.css +227 -0
  750. package/src/modules/native-dark-mode/styles/page.css +13 -0
  751. package/src/modules/native-dark-mode/styles/premium.css +7 -0
  752. package/src/modules/native-dark-mode/styles/profile.css +243 -0
  753. package/src/modules/native-dark-mode/styles/progress-log.css +25 -0
  754. package/src/modules/native-dark-mode/styles/quests.css +29 -0
  755. package/src/modules/native-dark-mode/styles/scoreboards.css +66 -0
  756. package/src/modules/native-dark-mode/styles/select2.css +65 -0
  757. package/src/modules/native-dark-mode/styles/send-supplies.css +88 -0
  758. package/src/modules/native-dark-mode/styles/settings.css +172 -0
  759. package/src/modules/native-dark-mode/styles/shops.css +114 -0
  760. package/src/modules/native-dark-mode/styles/sidebar.css +56 -0
  761. package/src/modules/native-dark-mode/styles/tabs.css +17 -0
  762. package/src/modules/native-dark-mode/styles/team.css +58 -0
  763. package/src/modules/native-dark-mode/styles/travel.css +102 -0
  764. package/src/modules/native-dark-mode/styles/userscripts.css +38 -0
  765. package/src/modules/onboarding/index.js +44 -0
  766. package/src/modules/onboarding/styles.css +13 -0
  767. package/src/modules/paste-hunter-id/index.js +82 -0
  768. package/src/modules/prestige-base-stats/index.js +242 -0
  769. package/src/modules/printing-press-paper-counter/index.js +24 -0
  770. package/src/modules/quick-filters-and-sort/index.js +280 -0
  771. package/src/modules/quick-filters-and-sort/styles.css +146 -0
  772. package/src/modules/quick-send-supplies/index.js +358 -0
  773. package/src/modules/quick-send-supplies/settings/index.js +40 -0
  774. package/src/modules/quick-send-supplies/styles.css +185 -0
  775. package/src/modules/replace-favicon/index.js +51 -0
  776. package/src/modules/required/global-utils.js +9 -0
  777. package/src/modules/required/index.js +251 -0
  778. package/src/modules/scoreboard-search-on-profiles/index.js +161 -0
  779. package/src/modules/scoreboard-search-on-profiles/styles.css +25 -0
  780. package/src/modules/settings/icons.css +233 -0
  781. package/src/modules/settings/index.js +653 -0
  782. package/src/modules/settings/settings/index.js +16 -0
  783. package/src/modules/settings/styles.css +635 -0
  784. package/src/modules/shield-goes-to-camp/index.js +31 -0
  785. package/src/modules/show-adventure-book/index.js +31 -0
  786. package/src/modules/show-adventure-book/styles.css +6 -0
  787. package/src/modules/show-auras/index.js +252 -0
  788. package/src/modules/show-auras/settings/index.js +19 -0
  789. package/src/modules/show-auras/styles/grid.css +48 -0
  790. package/src/modules/show-auras/styles/icons.css +22 -0
  791. package/src/modules/show-auras/styles/list.css +49 -0
  792. package/src/modules/show-auras/styles/styles.css +23 -0
  793. package/src/modules/ssdb-toothlet-counter/index.js +24 -0
  794. package/src/modules/taller-windows/index.js +22 -0
  795. package/src/modules/taller-windows/styles.css +137 -0
  796. package/src/modules/tem-crowns/index.js +127 -0
  797. package/src/modules/tem-crowns/styles.css +106 -0
  798. package/src/modules/trap-selector-special-effects/index.js +75 -0
  799. package/src/modules/ultimate-checkmark/index.js +391 -0
  800. package/src/modules/ultimate-checkmark/settings/index.js +40 -0
  801. package/src/modules/ultimate-checkmark/styles.css +12 -0
  802. package/src/modules/unique-loot-count/index.js +59 -0
  803. package/src/modules/unique-loot-count/styles.css +3 -0
  804. package/src/modules/update-notifications/index.js +95 -0
  805. package/src/modules/update-notifications/styles.css +181 -0
  806. package/src/modules/user-highlighting/index.js +130 -0
  807. package/src/modules/user-highlighting/profile.css +374 -0
  808. package/src/modules/user-highlighting/styles.css +34 -0
  809. package/src/modules/wisdom-in-stat-bar/index.js +170 -0
  810. package/src/modules/wisdom-in-stat-bar/settings/index.js +12 -0
  811. package/src/modules/wisdom-in-stat-bar/styles.css +3 -0
  812. package/src/updates/index.js +168 -0
  813. package/src/updates/versions/.gitkeep +0 -0
  814. package/src/updates/versions/0.93.0.js +39 -0
  815. package/src/updates/versions/0.93.3.js +8 -0
  816. package/src/updates/versions/0.94.0.js +8 -0
  817. package/src/utils/blueprint.js +74 -0
  818. package/src/utils/data.js +559 -0
  819. package/src/utils/db.js +206 -0
  820. package/src/utils/debug.js +72 -0
  821. package/src/utils/draggable.js +141 -0
  822. package/src/utils/elements.js +650 -0
  823. package/src/utils/event-registry.js +102 -0
  824. package/src/utils/events.js +698 -0
  825. package/src/utils/flags.js +39 -0
  826. package/src/utils/global.js +37 -0
  827. package/src/utils/horn.js +187 -0
  828. package/src/utils/humanizer.js +62 -0
  829. package/src/utils/index.js +28 -0
  830. package/src/utils/journal.js +222 -0
  831. package/src/utils/json.js +32 -0
  832. package/src/utils/links.js +343 -0
  833. package/src/utils/location-current.js +23 -0
  834. package/src/utils/location.js +70 -0
  835. package/src/utils/maps.js +699 -0
  836. package/src/utils/messages.js +255 -0
  837. package/src/utils/onboarding.js +102 -0
  838. package/src/utils/page-current.js +26 -0
  839. package/src/utils/page.js +155 -0
  840. package/src/utils/settings-markup.js +907 -0
  841. package/src/utils/settings.js +260 -0
  842. package/src/utils/shared/fiery-warpath.js +88 -0
  843. package/src/utils/shared/memory-game.js +231 -0
  844. package/src/utils/shared/trap-quantity.js +232 -0
  845. package/src/utils/styles/errors.css +50 -0
  846. package/src/utils/styles/memory-game.css +227 -0
  847. package/src/utils/styles/page-error.css +145 -0
  848. package/src/utils/styles/page-maintenance.css +150 -0
  849. package/src/utils/styles.js +209 -0
  850. package/src/utils/templates.js +170 -0
  851. package/src/utils/user.js +375 -0
  852. package/src/utils/utils.js +534 -0
@@ -0,0 +1,868 @@
1
+ import {
2
+ addStyles,
3
+ addSubmenuDivider,
4
+ addSubmenuItem,
5
+ getCurrentLocation,
6
+ getCurrentPage,
7
+ getCurrentTab,
8
+ getData,
9
+ getFlag,
10
+ getRelicHunterLocation,
11
+ getSetting,
12
+ makeElement,
13
+ makeFavoriteButton,
14
+ makeMhButton,
15
+ onEvent,
16
+ onNavigation,
17
+ onPageChange,
18
+ removeSubmenuItem,
19
+ sessionGet,
20
+ setTab,
21
+ travelTo
22
+ } from '@utils';
23
+
24
+ import { getTravelSetting, saveTravelSetting } from './utils';
25
+
26
+ import addReminders from './modules/reminders';
27
+ import travelWindow from './modules/travel-window';
28
+
29
+ import exploreMapStyles from './styles/explore-map.css';
30
+ import settings from './settings';
31
+ import styles from './styles/styles.css';
32
+ import travelMenuHidingStyles from './styles/travel-menu-hiding.css';
33
+
34
+ /**
35
+ * Expand the travel regions and zoom the map.
36
+ */
37
+ const expandTravelRegions = () => {
38
+ if ('travel' !== getCurrentPage()) {
39
+ return;
40
+ }
41
+
42
+ const hud = document.querySelector('#mousehuntHud');
43
+ if (hud) {
44
+ const hudHeight = hud.offsetHeight + 30;
45
+
46
+ const map = document.querySelector('.travelPage-mapContainer.full');
47
+ if (map) {
48
+ map.style.height = `calc(100vh - ${hudHeight}px)`;
49
+ }
50
+ }
51
+
52
+ const regionHeaders = document.querySelectorAll('.travelPage-regionMenu-regionLink');
53
+ if (regionHeaders) {
54
+ regionHeaders.forEach((regionHeader) => {
55
+ regionHeader.setAttribute('onclick', 'return false;');
56
+ });
57
+ }
58
+
59
+ const travelAreas = document.querySelectorAll('.travelPage-regionMenu-item');
60
+ if (travelAreas && travelAreas.length > 0) {
61
+ travelAreas.forEach((area) => {
62
+ area.classList.add('active');
63
+ area.classList.remove('contracted');
64
+ });
65
+ }
66
+
67
+ const locations = document.querySelectorAll('.travelPage-map-image-environment.active');
68
+ if (locations && locations.length > 0) {
69
+ locations.forEach((location) => {
70
+ location.addEventListener('mouseover', () => {
71
+ location.classList.add('highlight');
72
+ });
73
+
74
+ location.addEventListener('mouseout', () => {
75
+ setTimeout(() => location.classList.remove('highlight'), 1000);
76
+ });
77
+ });
78
+ }
79
+
80
+ if (app?.pages?.TravelPage?.zoomOut && app.pages.TravelPage.showEnvironment) {
81
+ app.pages.TravelPage.showEnvironment(getCurrentLocation(), true);
82
+ app.pages.TravelPage.zoomOut();
83
+ app.pages.TravelPage.zoomOut();
84
+ }
85
+ };
86
+
87
+ /**
88
+ * Travel to a location when clicking on a link.
89
+ *
90
+ * @param {Event} event The click event.
91
+ */
92
+ const travelClickHandler = (event) => {
93
+ if (app?.pages?.TravelPage?.travel) {
94
+ travelTo(event.target.getAttribute('data-environment'));
95
+ }
96
+ };
97
+
98
+ /**
99
+ * Clone the region menu and add click handlers to the links.
100
+ *
101
+ * @return {Element|false} The cloned region menu.
102
+ */
103
+ const cloneRegionMenu = () => {
104
+ const regionMenu = document.querySelector('.travelPage-regionMenu');
105
+ if (! regionMenu) {
106
+ return false;
107
+ }
108
+
109
+ const regionMenuClone = regionMenu.cloneNode(true);
110
+ const travelLinks = regionMenuClone.querySelectorAll('.travelPage-regionMenu-environmentLink');
111
+
112
+ if (travelLinks && travelLinks.length > 0) {
113
+ travelLinks.forEach((link) => {
114
+ link.setAttribute('onclick', 'return false;');
115
+ link.addEventListener('click', travelClickHandler);
116
+ });
117
+ }
118
+
119
+ return regionMenuClone;
120
+ };
121
+
122
+ /**
123
+ * Add a tab to the travel page.
124
+ *
125
+ * @param {string} id The ID of the tab.
126
+ * @param {string} label The label for the tab.
127
+ */
128
+ const addTab = (id, label) => {
129
+ if ('travel' !== getCurrentPage()) {
130
+ return;
131
+ }
132
+
133
+ const exists = document.querySelector(`#mh-${id}-tab`);
134
+ if (exists) {
135
+ return;
136
+ }
137
+
138
+ const tabContainer = document.querySelector('.mousehuntHud-page-tabHeader-container');
139
+ if (! tabContainer) {
140
+ return;
141
+ }
142
+
143
+ const tab = makeElement('a', 'mousehuntHud-page-tabHeader');
144
+ tab.id = `mh-${id}-tab`;
145
+ tab.setAttribute('data-tab', id);
146
+ tab.setAttribute('onclick', 'hg.utils.PageUtil.onclickPageTabHandler(this); return false;');
147
+
148
+ makeElement('span', '', label, tab);
149
+
150
+ tabContainer.append(tab);
151
+ };
152
+
153
+ /**
154
+ * Add the page content to the travel page.
155
+ *
156
+ * @param {string} id The ID of the page.
157
+ * @param {Element} content The content to add to the page.
158
+ */
159
+ const addPage = (id, content) => {
160
+ if ('travel' !== getCurrentPage()) {
161
+ return;
162
+ }
163
+
164
+ const exists = document.querySelector(`#mh-${id}-page`);
165
+ if (exists) {
166
+ return;
167
+ }
168
+
169
+ const pageContainer = document.querySelector('.mousehuntHud-page-tabContentContainer');
170
+ if (! pageContainer) {
171
+ return;
172
+ }
173
+
174
+ const page = makeElement('div', ['mousehuntHud-page-tabContent', id]);
175
+ page.id = `mh-${id}-page`;
176
+ page.setAttribute('data-tab', id);
177
+
178
+ if (content) {
179
+ page.append(content);
180
+ } else {
181
+ const blank = makeElement('div');
182
+ page.append(blank);
183
+ }
184
+
185
+ pageContainer.append(page);
186
+ };
187
+
188
+ /**
189
+ * Add an alphabetized list of locations to the simple travel page.
190
+ *
191
+ * @param {Element} regionMenu The region menu to clone.
192
+ *
193
+ * @return {Element} The alphabetized list.
194
+ */
195
+ const addAlphabetizedList = (regionMenu) => {
196
+ const alphaWrapper = makeElement('div', 'travelPage-alpha-wrapper');
197
+
198
+ const alphaContent = makeElement('div', 'travelPage-regionMenu');
199
+ const alphaHeader = makeElement('div', ['travelPage-regionMenu-item', 'active']);
200
+
201
+ const alphaList = makeElement('div', 'travelPage-regionMenu-item-contents');
202
+ const alphaListContent = makeElement('div', 'travelPage-regionMenu-environments');
203
+
204
+ const links = regionMenu.querySelectorAll('.travelPage-regionMenu-environmentLink:not(.mystery)');
205
+ const environmentIds = new Set(environments.map((environment) => environment.id));
206
+
207
+ // Clone the links, sort them by name, and add them to the alpha list.
208
+ const sortedLinks = [...links].sort((a, b) => {
209
+ const aName = a.innerText;
210
+ const bName = b.innerText;
211
+
212
+ if (aName < bName) {
213
+ return -1;
214
+ }
215
+
216
+ if (aName > bName) {
217
+ return 1;
218
+ }
219
+
220
+ return 0;
221
+ });
222
+
223
+ // While sorting, add a class to the first occurrence of each letter.
224
+ let lastLetter = '';
225
+
226
+ sortedLinks.forEach((link) => {
227
+ // make a copy of the link
228
+ const linkClone = link.cloneNode(true);
229
+ alphaListContent.append(linkClone);
230
+ linkClone.addEventListener('click', travelClickHandler);
231
+
232
+ // get the first letter of the link
233
+ const firstLetter = linkClone.innerText.charAt(0).toLowerCase();
234
+
235
+ // if the first letter is different than the last letter, add a class
236
+ if (firstLetter !== lastLetter) {
237
+ linkClone.classList.add('first-letter');
238
+ }
239
+
240
+ // set the last letter to the current letter
241
+ lastLetter = firstLetter;
242
+
243
+ // Check if the link is in the list of environments, if it's not, then it's an event location.
244
+ if (! environmentIds.has(link.getAttribute('data-environment'))) {
245
+ linkClone.classList.add('event-location');
246
+ }
247
+ });
248
+
249
+ alphaList.append(alphaListContent);
250
+
251
+ alphaHeader.append(alphaList);
252
+ alphaContent.append(alphaHeader);
253
+
254
+ alphaWrapper.append(alphaContent);
255
+
256
+ const itemCount = sortedLinks.length;
257
+ const rows = Math.ceil(itemCount / 5);
258
+ const height = 14 + (rows * 29);
259
+
260
+ alphaListContent.style.height = `${height}px`;
261
+
262
+ return alphaWrapper;
263
+ };
264
+
265
+ /**
266
+ * Add the Simple Travel page.
267
+ */
268
+ const addSimpleTravelPage = () => {
269
+ expandTravelRegions();
270
+ const wrapper = makeElement('div', 'travelPage-wrapper');
271
+
272
+ if ('not-set' === getSetting('better-travel.default-to-simple-travel', 'not-set')) {
273
+ const settingTip = makeElement('div', ['travelPage-map-prefix', 'simple-travel-tip'], 'You can set this as the default travel tab in the <a href="https://www.mousehuntgame.com/preferences.php?tab=mousehunt-improved-settings">MouseHunt Improved settings</a>.');
274
+ wrapper.append(settingTip);
275
+ }
276
+
277
+ const regionMenu = cloneRegionMenu();
278
+
279
+ if (getSetting('better-travel.show-alphabetized-list', false)) {
280
+ wrapper.append(addAlphabetizedList(regionMenu));
281
+ }
282
+
283
+ wrapper.append(regionMenu);
284
+
285
+ addPage('simple-travel', wrapper);
286
+ };
287
+
288
+ /**
289
+ * Add the tab & page for Simple Travel.
290
+ */
291
+ const addSimpleTravel = () => {
292
+ if ('travel' !== getCurrentPage()) {
293
+ return;
294
+ }
295
+
296
+ addTab('simple-travel', 'Simple Travel');
297
+ addSimpleTravelPage();
298
+ };
299
+
300
+ /**
301
+ * Update the map exploration toggle button state.
302
+ *
303
+ * @param {boolean} enabled Whether or not map exploration is enabled.
304
+ */
305
+ const updateMapExplorationToggle = (enabled = true) => {
306
+ const toggle = document.querySelector('.mh-improved-map-exploration-toggle');
307
+ if (! toggle) {
308
+ return;
309
+ }
310
+
311
+ const text = toggle.querySelector('span');
312
+
313
+ if (text) {
314
+ text.innerText = enabled ? 'Back to Normal Map' : 'Explore Map';
315
+ }
316
+
317
+ toggle.title = enabled ? 'Show location markers and travel details' : 'Hide location markers and travel details';
318
+ toggle.classList.toggle('active', enabled);
319
+ };
320
+
321
+ let isStarting;
322
+ let isStartingClear;
323
+ /**
324
+ * Apply the map exploration body class.
325
+ */
326
+ const setMapExploration = () => {
327
+ if (document.body.classList.contains('mh-improved-map-exploration') || document.body.classList.contains('mh-improved-map-exploration-starting')) {
328
+ document.body.classList.add('mh-improved-map-exploration-starting');
329
+
330
+ clearTimeout(isStarting);
331
+ isStarting = setTimeout(() => {
332
+ document.body.classList.remove('mh-improved-map-exploration');
333
+ }, 100);
334
+
335
+ clearTimeout(isStartingClear);
336
+ isStartingClear = setTimeout(() => {
337
+ document.body.classList.remove('mh-improved-map-exploration-starting');
338
+ }, 500);
339
+
340
+ updateMapExplorationToggle(false);
341
+ } else {
342
+ document.body.classList.add('mh-improved-map-exploration-starting');
343
+
344
+ clearTimeout(isStarting);
345
+ isStarting = setTimeout(() => {
346
+ document.body.classList.add('mh-improved-map-exploration');
347
+ }, 100);
348
+
349
+ clearTimeout(isStartingClear);
350
+ isStartingClear = setTimeout(() => {
351
+ document.body.classList.remove('mh-improved-map-exploration-starting');
352
+ }, 500);
353
+
354
+ updateMapExplorationToggle(true);
355
+ }
356
+ };
357
+
358
+ /**
359
+ * Add the map exploration toggle button to the travel map.
360
+ */
361
+ const addMapExplorationToggle = () => {
362
+ if ('travel' !== getCurrentPage()) {
363
+ return;
364
+ }
365
+
366
+ const exists = document.querySelector('.mh-improved-map-exploration-toggle');
367
+ if (exists) {
368
+ updateMapExplorationToggle(false);
369
+ return;
370
+ }
371
+
372
+ const mapContainer = document.querySelector('.travelPage-mapContainer.full');
373
+ if (! mapContainer) {
374
+ return;
375
+ }
376
+
377
+ const controls = makeElement('div', 'mh-improved-map-exploration-controls');
378
+ makeMhButton({
379
+ element: 'button',
380
+ text: 'Toggle Map Exploration',
381
+ className: 'mh-improved-map-exploration-toggle lightBlue',
382
+ callback: setMapExploration,
383
+ appendTo: controls,
384
+ });
385
+
386
+ mapContainer.after(controls);
387
+ updateMapExplorationToggle();
388
+ };
389
+
390
+ /**
391
+ * Get the previous location.
392
+ *
393
+ * @return {Object|boolean} The previous location object or false.
394
+ */
395
+ const getPreviousLocation = () => {
396
+ const previousLocation = getSetting('better-travel.previous-location', false);
397
+ if (previousLocation && previousLocation !== getCurrentLocation()) {
398
+ return environments.find((environment) => {
399
+ return environment.id === previousLocation;
400
+ });
401
+ }
402
+
403
+ return false;
404
+ };
405
+
406
+ /**
407
+ * Travel to the previous location.
408
+ */
409
+ const goToPreviousLocation = () => {
410
+ const previousLocation = getPreviousLocation();
411
+ if (previousLocation) {
412
+ travelTo(previousLocation.id);
413
+ }
414
+ };
415
+
416
+ /**
417
+ * Add the current region locations to the travel dropdown.
418
+ */
419
+ const addToTravelDropdown = async () => {
420
+ let combinedEnvironments = environments;
421
+
422
+ if (eventEnvironments && eventEnvironments.length > 0) {
423
+ combinedEnvironments = [...environments, ...eventEnvironments];
424
+ }
425
+
426
+ if (! combinedEnvironments || combinedEnvironments.length === 0) {
427
+ environments = await getData('environments');
428
+ eventEnvironments = await getData('environments-events');
429
+ combinedEnvironments = eventEnvironments?.length > 0
430
+ ? [...environments, ...eventEnvironments]
431
+ : environments;
432
+ }
433
+
434
+ if (! combinedEnvironments || combinedEnvironments.length === 0) {
435
+ return;
436
+ }
437
+
438
+ const currentLocation = getCurrentLocation();
439
+
440
+ // get the object that matches the current location
441
+ const currentRegion = combinedEnvironments.find((environment) => {
442
+ return environment.id === currentLocation;
443
+ });
444
+
445
+ if (! currentRegion) {
446
+ return;
447
+ }
448
+
449
+ // get the other locations in the same region
450
+ const otherRegions = combinedEnvironments.filter((environment) => {
451
+ if (! environment?.region || ! currentRegion?.region) {
452
+ return false;
453
+ }
454
+
455
+ if ('acolyte_realm' === environment.id) {
456
+ return false;
457
+ }
458
+
459
+ return environment.region === currentRegion.region;
460
+ });
461
+
462
+ // remove the current location from the list
463
+ const currentLocationIndex = otherRegions.findIndex((environment) => {
464
+ return environment.id === currentLocation;
465
+ });
466
+ if (currentLocationIndex !== -1) {
467
+ otherRegions.splice(currentLocationIndex, 1);
468
+ }
469
+
470
+ // remove any existing custom submenu items that we've added
471
+ const existingCustomSubmenuItems = document.querySelectorAll('.mh-improved-better-travel-menu-item');
472
+ if (existingCustomSubmenuItems) {
473
+ existingCustomSubmenuItems.forEach((item) => {
474
+ item.remove();
475
+ });
476
+ }
477
+
478
+ const previousLocation = getPreviousLocation();
479
+ // add the previous location to the top of the list
480
+ if (previousLocation) {
481
+ addSubmenuItem({
482
+ menu: 'travel',
483
+ label: `Back to ${previousLocation.name}`,
484
+ icon: 'https://i.mouse.rip/icons/back.png',
485
+ callback: goToPreviousLocation,
486
+ class: 'mh-improved-better-travel-menu-item mh-improved-better-travel-previous-location',
487
+ });
488
+ }
489
+
490
+ // add the custom submenu items
491
+ for (const region of otherRegions) {
492
+ if (region.id === currentLocation) {
493
+ continue;
494
+ }
495
+
496
+ // only add the region if it's not there already.
497
+ if (document.querySelector(`#custom-submenu-item-better-travel-${region.id}`)) {
498
+ return;
499
+ }
500
+
501
+ addSubmenuItem({
502
+ id: `better-travel-${region.id}`,
503
+ menu: 'travel',
504
+ label: region.name,
505
+ icon: region.image,
506
+ callback: () => travelTo(region.id),
507
+ class: 'mh-improved-better-travel-menu-item mh-improved-better-travel-region-location',
508
+ });
509
+ }
510
+
511
+ const favorites = getLocationFavorites();
512
+ if (favorites && favorites.length > 0) {
513
+ addSubmenuDivider('travel', 'mh-improved-better-travel-favorites-divider');
514
+
515
+ favorites.forEach((favorite) => {
516
+ const favoriteRegion = combinedEnvironments.find((environment) => {
517
+ return environment.id === favorite;
518
+ });
519
+
520
+ if (favoriteRegion) {
521
+ addSubmenuItem({
522
+ id: `better-travel-favorite-${favorite}`,
523
+ menu: 'travel',
524
+ label: favoriteRegion.name,
525
+ icon: favoriteRegion.image,
526
+ callback: () => travelTo(favoriteRegion.id),
527
+ class: 'mh-improved-better-travel-menu-item mh-improved-better-travel-favorite-location',
528
+ });
529
+ }
530
+ });
531
+ }
532
+ };
533
+
534
+ /**
535
+ * Add a reminder to the travel page.
536
+ */
537
+ const onTravelComplete = () => {
538
+ onEvent('travel_complete', () => {
539
+ saveTravelLocation();
540
+
541
+ setTimeout(() => {
542
+ if (getSetting('better-travel.show-reminders', true)) {
543
+ addReminders();
544
+ }
545
+
546
+ addToTravelDropdown();
547
+ }, 250);
548
+ });
549
+ };
550
+
551
+ /**
552
+ * Initialize the Simple Travel tab.
553
+ */
554
+ const initSimpleTab = () => {
555
+ if ('simple-travel' === getCurrentTab()) {
556
+ const isActive = document.querySelector('.mousehuntHud-page-tabContent.simple-travel');
557
+ if (! isActive || (isActive && isActive.classList.contains('active'))) {
558
+ return;
559
+ }
560
+
561
+ setTab('simple-travel');
562
+ }
563
+ };
564
+
565
+ /**
566
+ * Change the tab to Simple Travel if the setting is enabled.
567
+ */
568
+ const maybeSetTab = () => {
569
+ if ('travel' !== getCurrentPage()) {
570
+ return;
571
+ }
572
+
573
+ initSimpleTab();
574
+
575
+ if ('map' !== getCurrentTab()) {
576
+ return;
577
+ }
578
+
579
+ if (! getSetting('better-travel.default-to-simple-travel', false)) {
580
+ return;
581
+ }
582
+
583
+ setTab('simple-travel');
584
+ };
585
+
586
+ /**
587
+ * Highlight the region where the Relic Hunter is.
588
+ */
589
+ const addRhToSimpleTravel = async () => {
590
+ const location = await getRelicHunterLocation();
591
+ if (! location) {
592
+ return;
593
+ }
594
+
595
+ const travelLink = document.querySelectorAll(`.travelPage-regionMenu-environmentLink[data-environment="${location.id}"]`);
596
+ if (! travelLink.length) {
597
+ return;
598
+ }
599
+
600
+ // Add the RH class to the travel link so we can style it.
601
+ travelLink.forEach((link) => {
602
+ link.classList.add('relic-hunter-is-here');
603
+ });
604
+ };
605
+
606
+ /**
607
+ * Add the Relic Hunter to the map.
608
+ */
609
+ const addRhToMap = async () => {
610
+ const location = await getRelicHunterLocation();
611
+ if (! location) {
612
+ return;
613
+ }
614
+
615
+ const mapLocation = document.querySelector(`.travelPage-map-image-environment[data-environment-type="${location.id}"]`);
616
+ if (! mapLocation) {
617
+ return;
618
+ }
619
+
620
+ const rh = makeElement('div', ['map-relic-hunter-is-here', 'travelPage-map-image-environment-pointer']);
621
+ makeElement('div', ['map-relic-hunter-is-here-image', 'travelPage-map-image-environment-pointer-image'], '', rh);
622
+ mapLocation.append(rh);
623
+ };
624
+
625
+ /**
626
+ * Update the map view of the travel page.
627
+ */
628
+ const maybeDoMapView = () => {
629
+ if ('travel' !== getCurrentPage()) {
630
+ return;
631
+ }
632
+
633
+ if ('map' !== getCurrentTab()) {
634
+ return;
635
+ }
636
+
637
+ expandTravelRegions();
638
+ addRhToMap();
639
+ };
640
+
641
+ let _tabHandler = null;
642
+
643
+ /**
644
+ * Listen for tab changes and update the map view.
645
+ */
646
+ const listenTabChange = () => {
647
+ if (_tabHandler) {
648
+ return;
649
+ }
650
+
651
+ if (! hg?.utils?.PageUtil?.onclickPageTabHandler) {
652
+ return;
653
+ }
654
+
655
+ _tabHandler = hg.utils.PageUtil.onclickPageTabHandler;
656
+
657
+ /**
658
+ * Handle tab changes.
659
+ *
660
+ * @param {string} tab The tab to switch to.
661
+ */
662
+ hg.utils.PageUtil.onclickPageTabHandler = (tab) => {
663
+ _tabHandler(tab);
664
+ maybeDoMapView();
665
+ };
666
+ };
667
+
668
+ /**
669
+ * Save the current location so that we can reference it later as the previous location.
670
+ */
671
+ const saveTravelLocation = () => {
672
+ const isLocationDashboardRefreshing = sessionGet('doing-location-refresh', false);
673
+ if (isLocationDashboardRefreshing) {
674
+ return;
675
+ }
676
+
677
+ // we want to update the 'previousLocation' setting with what the 'currentLocation' is
678
+ // and then update the 'currentLocation' setting with what getCurrentLocation() returns
679
+ const previousLocation = getTravelSetting('current-location', 'not-set');
680
+ const currentLocation = getCurrentLocation();
681
+
682
+ if (currentLocation === previousLocation) {
683
+ return;
684
+ }
685
+
686
+ saveTravelSetting('previous-location', previousLocation);
687
+ saveTravelSetting('current-location', currentLocation);
688
+ };
689
+
690
+ /**
691
+ * Get the travel favorites.
692
+ *
693
+ * @return {Array} The travel favorites.
694
+ */
695
+ const getLocationFavorites = () => {
696
+ return getSetting('better-travel.favorites', []);
697
+ };
698
+
699
+ /**
700
+ * Check if a location is a favorite.
701
+ *
702
+ * @param {string} type The location type.
703
+ *
704
+ * @return {boolean} Whether or not the location is a favorite.
705
+ */
706
+ const isLocationFavorite = (type) => {
707
+ return getLocationFavorites().includes(type);
708
+ };
709
+
710
+ /**
711
+ * Save the travel favorites.
712
+ *
713
+ * @param {Array} favorites The travel favorites.
714
+ */
715
+ const saveLocationFavorites = (favorites) => {
716
+ saveTravelSetting('favorites', favorites);
717
+ };
718
+
719
+ /**
720
+ * Add a location to the favorites.
721
+ *
722
+ * @param {string} type The location type.
723
+ */
724
+ const addToLocationFavorites = (type) => {
725
+ if (! isLocationFavorite(type)) {
726
+ const faves = getLocationFavorites();
727
+ faves.push(type);
728
+ saveLocationFavorites(faves);
729
+ }
730
+ };
731
+
732
+ /**
733
+ * Remove a location from the favorites.
734
+ *
735
+ * @param {string} type The location type.
736
+ */
737
+ const removeFromLocationFavorites = (type) => {
738
+ if (getLocationFavorites()) {
739
+ const faves = getLocationFavorites();
740
+ faves.splice(faves.indexOf(type), 1);
741
+ saveLocationFavorites(faves);
742
+ }
743
+ };
744
+
745
+ /**
746
+ * Add favorite buttons to the travel page for each location.
747
+ */
748
+ const addFavoriteButtonsToTravelPage = async () => {
749
+ const locations = document.querySelectorAll('.travelPage-map-environment-detailContainer .travelPage-map-environment-detail');
750
+ if (! locations) {
751
+ return;
752
+ }
753
+
754
+ const eventEnvironmentIds = new Set(eventEnvironments.map((environment) => environment.id));
755
+ const locationFavorites = getLocationFavorites();
756
+
757
+ locations.forEach((location) => {
758
+ const type = location.getAttribute('data-environment-type');
759
+ if (! type) {
760
+ return;
761
+ }
762
+
763
+ // Don't add a favorite button to event locations.
764
+ if (eventEnvironmentIds.has(type)) {
765
+ return;
766
+ }
767
+
768
+ const isFavorite = locationFavorites.includes(type);
769
+
770
+ makeFavoriteButton({
771
+ id: `better-travel-favorite-${type}`,
772
+ target: location.querySelector('.travelPage-map-environment-detail-title'),
773
+ size: 'small',
774
+ state: isFavorite,
775
+ isSetting: false,
776
+ defaultState: false,
777
+ /**
778
+ * Callback for when the favorite button is clicked.
779
+ */
780
+ onActivate: () => {
781
+ addToLocationFavorites(type);
782
+ addToTravelDropdown();
783
+ },
784
+ /**
785
+ * Callback for when the favorite button is deactivated.
786
+ */
787
+ onDeactivate: () => {
788
+ removeFromLocationFavorites(type);
789
+ removeSubmenuItem(type);
790
+ },
791
+ });
792
+ });
793
+ };
794
+
795
+ /**
796
+ * Main function.
797
+ */
798
+ const main = () => {
799
+ if (getSetting('better-travel.travel-window', true)) {
800
+ travelWindow();
801
+ }
802
+
803
+ onNavigation(() => {
804
+ addSimpleTravel();
805
+ addRhToSimpleTravel();
806
+ addFavoriteButtonsToTravelPage();
807
+ addMapExplorationToggle();
808
+ }, {
809
+ page: 'travel',
810
+ });
811
+
812
+ onPageChange({
813
+ travel: { show: maybeSetTab },
814
+ });
815
+
816
+ listenTabChange();
817
+
818
+ initSimpleTab();
819
+
820
+ maybeDoMapView();
821
+ addMapExplorationToggle();
822
+ onTravelComplete();
823
+
824
+ saveTravelLocation();
825
+ addToTravelDropdown();
826
+
827
+ onEvent('mh-improved-goto-previous-location', goToPreviousLocation);
828
+ };
829
+
830
+ let environments = [];
831
+ let eventEnvironments = [];
832
+
833
+ /**
834
+ * Initialize the module.
835
+ */
836
+ const init = () => {
837
+ const stylesJoined = [styles, exploreMapStyles];
838
+
839
+ if (! getFlag('no-travel-menu-hiding')) {
840
+ stylesJoined.push(travelMenuHidingStyles);
841
+ }
842
+
843
+ addStyles(stylesJoined, 'better-travel');
844
+
845
+ Promise.all([
846
+ getData('environments'),
847
+ getData('environments-events')
848
+ ]).then(([envs, eventEnvs]) => {
849
+ environments = envs;
850
+ eventEnvironments = eventEnvs;
851
+ main();
852
+ }).catch(() => {
853
+ /* Failed to load environments data for better-travel */
854
+ });
855
+ };
856
+
857
+ /**
858
+ * Initialize the module.
859
+ */
860
+ export default {
861
+ id: 'better-travel',
862
+ name: 'Better Travel',
863
+ type: 'better',
864
+ default: true,
865
+ description: 'Add locations in the current region to the Travel dropdown menu, include a "Simple Travel" tab with a grid of locations, offer an optional alphabetized list, and indicate where the Relic Hunter is.',
866
+ load: init,
867
+ settings,
868
+ };