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.
- package/.editorconfig +15 -0
- package/.eslintignore +2 -0
- package/.eslintrc.json +153 -0
- package/.eslintrc.markdown.json +11 -0
- package/.gitattributes +7 -0
- package/.github/dependabot.yml +18 -0
- package/.github/workflows/ci.yml +29 -0
- package/.github/workflows/lint.yml +24 -0
- package/.github/workflows/publish.yml +215 -0
- package/.stylelintrc.json +51 -0
- package/.vscode/tasks.json +37 -0
- package/CHANGELOG.md +3853 -0
- package/CONTRIBUTING.md +317 -0
- package/LICENSE +21 -0
- package/README.md +176 -0
- package/bun.lock +2298 -0
- package/docs/adblock.md +3 -0
- package/docs/better-gifts.md +15 -0
- package/docs/better-inventory.md +19 -0
- package/docs/better-items.md +13 -0
- package/docs/better-journal.md +26 -0
- package/docs/better-kings-reward.md +5 -0
- package/docs/better-maps.md +35 -0
- package/docs/better-marketplace.md +16 -0
- package/docs/better-mice.md +19 -0
- package/docs/better-quests.md +14 -0
- package/docs/better-send-supplies.md +15 -0
- package/docs/better-shops.md +15 -0
- package/docs/better-tournaments.md +13 -0
- package/docs/better-travel.md +20 -0
- package/docs/better-ui.md +30 -0
- package/docs/big-timer.md +3 -0
- package/docs/catch-rate-estimator-and-minlucks.md +9 -0
- package/docs/codex-at-bottom.md +3 -0
- package/docs/copy-id-button.md +7 -0
- package/docs/custom-background.md +71 -0
- package/docs/custom-camp-background.md +73 -0
- package/docs/custom-horn.md +28 -0
- package/docs/custom-hud.md +67 -0
- package/docs/custom-shield.md +77 -0
- package/docs/custom-styles.md +3 -0
- package/docs/dark-mode-updates-and-tweaks.md +3 -0
- package/docs/dark-mode.md +3 -0
- package/docs/data-exporters.md +21 -0
- package/docs/debug-logging.md +49 -0
- package/docs/delayed-menus.md +3 -0
- package/docs/delayed-tooltips.md +3 -0
- package/docs/emotes.md +111 -0
- package/docs/experiments.md +14 -0
- package/docs/favorite-setups.md +10 -0
- package/docs/feature-flags.md +90 -0
- package/docs/fixes.md +32 -0
- package/docs/flrt-helper.md +8 -0
- package/docs/hide-codices.md +3 -0
- package/docs/hide-daily-draw.md +3 -0
- package/docs/hide-daily-reward-popup.md +3 -0
- package/docs/hide-footer.md +3 -0
- package/docs/hide-news-ticker.md +3 -0
- package/docs/hide-share-buttons.md +3 -0
- package/docs/hide-sidebar.md +3 -0
- package/docs/hover-profiles.md +3 -0
- package/docs/image-upscaling-and-transparency.md +5 -0
- package/docs/inline-wiki.md +3 -0
- package/docs/inventory-lock-and-hide.md +9 -0
- package/docs/inventory-only-open-multiple.md +9 -0
- package/docs/inventory-open-all-but-one.md +8 -0
- package/docs/inventory-open-all.md +8 -0
- package/docs/journal-privacy.md +8 -0
- package/docs/journal-theme-changer.md +13 -0
- package/docs/keyboard-shortcuts.md +42 -0
- package/docs/larger-codices.md +3 -0
- package/docs/larger-skin-images.md +3 -0
- package/docs/legacy-hud.md +9 -0
- package/docs/location-catch-stats.md +3 -0
- package/docs/location-dashboard.md +89 -0
- package/docs/lucky-golden-shield-duration-and-reminder.md +8 -0
- package/docs/metric-units.md +3 -0
- package/docs/paste-hunter-id.md +5 -0
- package/docs/prestige-base-stats.md +3 -0
- package/docs/printing-press-paper-counter.md +3 -0
- package/docs/quick-filters-and-sort.md +8 -0
- package/docs/quick-send-supplies.md +8 -0
- package/docs/replace-favicon.md +3 -0
- package/docs/scoreboard-search-on-profiles.md +3 -0
- package/docs/shield-goes-to-camp.md +3 -0
- package/docs/show-adventure-book.md +7 -0
- package/docs/show-auras.md +13 -0
- package/docs/ssdb-toothlet-counter.md +3 -0
- package/docs/taller-windows.md +3 -0
- package/docs/tem-crowns.md +3 -0
- package/docs/trap-selector-special-effects.md +8 -0
- package/docs/ultimate-checkmark.md +9 -0
- package/docs/unique-loot-count.md +7 -0
- package/docs/wisdom-in-stat-bar.md +12 -0
- package/jsconfig.json +17 -0
- package/package.json +101 -0
- package/scripts/build-extension.mjs +119 -0
- package/scripts/build-userscript.mjs +73 -0
- package/scripts/build.mjs +106 -0
- package/scripts/fetch-external-files.mjs +26 -0
- package/scripts/fix-map-groups.mjs +146 -0
- package/scripts/get-changelog.mjs +10 -0
- package/scripts/get-version.mjs +2 -0
- package/scripts/release +29 -0
- package/scripts/shared.mjs +135 -0
- package/src/data/backgrounds.json +47 -0
- package/src/data/crafting-recipe-mapping.json +87 -0
- package/src/data/cre-mice-groups.json +148 -0
- package/src/data/journal-item-colors.json +110 -0
- package/src/data/journals-environment-mapping.json +24 -0
- package/src/data/journals-events.json +58 -0
- package/src/data/magic-essence-potions.json +28 -0
- package/src/data/map-groups.json +3737 -0
- package/src/data/ultimate-checkmark.json +407 -0
- package/src/data/update-summary.json +48 -0
- package/src/extension/content.js +29 -0
- package/src/extension/icon-128.png +0 -0
- package/src/extension/icon-16.png +0 -0
- package/src/extension/icon-32.png +0 -0
- package/src/extension/icon-48.png +0 -0
- package/src/extension/icon-64.png +0 -0
- package/src/extension/manifest.json +55 -0
- package/src/extension/popup.html +50 -0
- package/src/extension/screenshots/dashboard.png +0 -0
- package/src/extension/screenshots/journal.png +0 -0
- package/src/extension/screenshots/map-highlighting.png +0 -0
- package/src/extension/screenshots/shop.png +0 -0
- package/src/index.js +266 -0
- package/src/modules/adblock/index.js +22 -0
- package/src/modules/adblock/styles.css +31 -0
- package/src/modules/better-gifts/index.js +568 -0
- package/src/modules/better-gifts/settings/index.js +80 -0
- package/src/modules/better-gifts/styles.css +593 -0
- package/src/modules/better-inventory/index.js +522 -0
- package/src/modules/better-inventory/modules/recipes/index.js +318 -0
- package/src/modules/better-inventory/modules/recipes/styles.css +30 -0
- package/src/modules/better-inventory/settings/index.js +24 -0
- package/src/modules/better-inventory/styles/double-width-item.css +21 -0
- package/src/modules/better-inventory/styles/full-width-item.css +27 -0
- package/src/modules/better-inventory/styles/larger-images.css +17 -0
- package/src/modules/better-inventory/styles/styles.css +704 -0
- package/src/modules/better-inventory/styles/tiny-group.css +83 -0
- package/src/modules/better-item-view/index.js +454 -0
- package/src/modules/better-item-view/modules/hover-item/index.js +211 -0
- package/src/modules/better-item-view/modules/hover-item/styles.css +57 -0
- package/src/modules/better-item-view/settings/index.js +19 -0
- package/src/modules/better-item-view/styles.css +406 -0
- package/src/modules/better-journal/index.js +81 -0
- package/src/modules/better-journal/modules/journal-full-mice-images/index.js +64 -0
- package/src/modules/better-journal/modules/journal-full-mice-images/styles.css +99 -0
- package/src/modules/better-journal/modules/journal-gold-and-points/index.js +57 -0
- package/src/modules/better-journal/modules/journal-gold-and-points/styles.css +21 -0
- package/src/modules/better-journal/modules/journal-highlight-rare-mice/index.js +10 -0
- package/src/modules/better-journal/modules/journal-highlight-rare-mice/styles.css +5 -0
- package/src/modules/better-journal/modules/journal-history/index.js +396 -0
- package/src/modules/better-journal/modules/journal-history/styles.css +36 -0
- package/src/modules/better-journal/modules/journal-icons/index.js +17 -0
- package/src/modules/better-journal/modules/journal-icons/styles.css +58 -0
- package/src/modules/better-journal/modules/journal-icons-minimal/index.js +10 -0
- package/src/modules/better-journal/modules/journal-icons-minimal/styles.css +78 -0
- package/src/modules/better-journal/modules/journal-item-colors/index.js +19 -0
- package/src/modules/better-journal/modules/journal-list/index.js +407 -0
- package/src/modules/better-journal/modules/journal-list/styles.css +29 -0
- package/src/modules/better-journal/modules/journal-replacements/index.js +430 -0
- package/src/modules/better-journal/modules/journal-replacements/styles.css +15 -0
- package/src/modules/better-journal/modules/journal-styles/index.js +89 -0
- package/src/modules/better-journal/modules/journal-styles/styles/backgrounds.css +71 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/aura.css +15 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/badge.css +85 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/alchemist-cookbook.css +8 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/gem.css +30 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/paper.css +3 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/ssdb.css +3 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/bonus.css +22 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/catch.css +4 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/failure.css +6 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/lucky.css +4 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/prize.css +8 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/gilded.css +9 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/rift-vacuum.css +8 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/torch.css +18 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/ultimate.css +21 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/unstable.css +28 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/draw-winner.css +19 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/events.css +41 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/gwh.css +3 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/kga.css +16 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/larry-gift.css +25 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/birthday.css +48 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/brift.css +6 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/bwrift.css +13 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/floating-islands.css +12 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/folklore-forest.css +57 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frift.css +46 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frox.css +5 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/garden.css +14 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/halloween.css +7 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/harbour.css +11 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/iceberg.css +38 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/labyrinth.css +34 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/mousoleum.css +5 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/queso.css +28 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/school.css +18 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/toxic-spill.css +13 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/vrift.css +12 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/wwrift.css +33 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/maps.css +8 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/glazy.css +10 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/stuck-snowball.css +3 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/valentines.css +10 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/other.css +34 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/popup.css +10 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/rank-up.css +57 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/social-gift.css +27 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/tournaments.css +14 -0
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/ultimate.css +7 -0
- package/src/modules/better-journal/modules/journal-styles/styles/date-hiding.css +74 -0
- package/src/modules/better-journal/modules/journal-styles/styles/fullstop.css +101 -0
- package/src/modules/better-journal/modules/journal-styles/styles/general.css +321 -0
- package/src/modules/better-journal/modules/journal-styles/styles/progress-log.css +217 -0
- package/src/modules/better-journal/modules/journal-tags/index.js +10 -0
- package/src/modules/better-journal/modules/journal-tags/styles.css +100 -0
- package/src/modules/better-journal/settings/index.js +56 -0
- package/src/modules/better-journal/styles/list-and-icons.css +3 -0
- package/src/modules/better-journal/styles/styles.css +15 -0
- package/src/modules/better-kings-reward/index.js +69 -0
- package/src/modules/better-kings-reward/styles.css +33 -0
- package/src/modules/better-maps/index.js +557 -0
- package/src/modules/better-maps/modules/catch-dates.js +78 -0
- package/src/modules/better-maps/modules/community.js +167 -0
- package/src/modules/better-maps/modules/consolation-prizes.js +30 -0
- package/src/modules/better-maps/modules/draggable-highlight.js +80 -0
- package/src/modules/better-maps/modules/floating-islands.js +209 -0
- package/src/modules/better-maps/modules/highlighting.js +277 -0
- package/src/modules/better-maps/modules/preview.js +66 -0
- package/src/modules/better-maps/modules/scrolls.js +183 -0
- package/src/modules/better-maps/modules/shops.js +170 -0
- package/src/modules/better-maps/modules/sidebar.js +203 -0
- package/src/modules/better-maps/modules/tab-goals.js +816 -0
- package/src/modules/better-maps/modules/tab-hunters.js +323 -0
- package/src/modules/better-maps/modules/tab-invites.js +66 -0
- package/src/modules/better-maps/modules/tab-sorted.js +818 -0
- package/src/modules/better-maps/modules/toggle-ar.js +237 -0
- package/src/modules/better-maps/settings/index.js +32 -0
- package/src/modules/better-maps/styles/catch-dates.css +23 -0
- package/src/modules/better-maps/styles/draggable.css +12 -0
- package/src/modules/better-maps/styles/general.css +1092 -0
- package/src/modules/better-maps/styles/helper.css +29 -0
- package/src/modules/better-maps/styles/highlight-for-map.css +19 -0
- package/src/modules/better-maps/styles/hunters.css +191 -0
- package/src/modules/better-maps/styles/invites.css +50 -0
- package/src/modules/better-maps/styles/map-ar.css +95 -0
- package/src/modules/better-maps/styles/mhct.css +145 -0
- package/src/modules/better-maps/styles/overlays.css +15 -0
- package/src/modules/better-maps/styles/rewards.css +206 -0
- package/src/modules/better-maps/styles/scroll-shop.css +241 -0
- package/src/modules/better-maps/styles/sidebar.css +105 -0
- package/src/modules/better-maps/styles/sorted-map.css +11 -0
- package/src/modules/better-maps/styles/sorted.css +351 -0
- package/src/modules/better-maps/styles/userscripts.css +70 -0
- package/src/modules/better-maps/utils.js +82 -0
- package/src/modules/better-marketplace/index.js +669 -0
- package/src/modules/better-marketplace/settings/index.js +29 -0
- package/src/modules/better-marketplace/styles/quick-sell.css +27 -0
- package/src/modules/better-marketplace/styles/small-images.css +5 -0
- package/src/modules/better-marketplace/styles/styles.css +261 -0
- package/src/modules/better-marketplace/styles/trend-numbers.css +37 -0
- package/src/modules/better-mice/index.js +692 -0
- package/src/modules/better-mice/modules/hover-mice/index.js +236 -0
- package/src/modules/better-mice/modules/hover-mice/styles.css +101 -0
- package/src/modules/better-mice/modules/mouse-page/index.js +559 -0
- package/src/modules/better-mice/modules/sidebar/index.js +110 -0
- package/src/modules/better-mice/modules/sidebar/styles.css +43 -0
- package/src/modules/better-mice/settings/index.js +24 -0
- package/src/modules/better-mice/styles.css +409 -0
- package/src/modules/better-quests/index.js +519 -0
- package/src/modules/better-quests/modules/m400/index.js +139 -0
- package/src/modules/better-quests/settings/index.js +13 -0
- package/src/modules/better-quests/styles.css +223 -0
- package/src/modules/better-send-supplies/index.js +361 -0
- package/src/modules/better-send-supplies/settings/index.js +45 -0
- package/src/modules/better-send-supplies/styles.css +316 -0
- package/src/modules/better-shops/index.js +234 -0
- package/src/modules/better-shops/modules/hide-max-owned/styles.css +10 -0
- package/src/modules/better-shops/modules/quantity-buttons/index.js +56 -0
- package/src/modules/better-shops/modules/quantity-buttons/styles.css +38 -0
- package/src/modules/better-shops/settings/index.js +19 -0
- package/src/modules/better-shops/styles/cost.css +135 -0
- package/src/modules/better-shops/styles/general.css +701 -0
- package/src/modules/better-shops/styles/order.css +21 -0
- package/src/modules/better-shops/styles/retired.css +11 -0
- package/src/modules/better-shops/styles/riftstalker.css +48 -0
- package/src/modules/better-shops/styles/stats.css +71 -0
- package/src/modules/better-tournaments/index.js +282 -0
- package/src/modules/better-tournaments/settings/index.js +12 -0
- package/src/modules/better-tournaments/styles.css +773 -0
- package/src/modules/better-travel/index.js +868 -0
- package/src/modules/better-travel/modules/reminders/index.js +169 -0
- package/src/modules/better-travel/modules/travel-window/index.js +380 -0
- package/src/modules/better-travel/modules/travel-window/styles.css +142 -0
- package/src/modules/better-travel/settings/index.js +34 -0
- package/src/modules/better-travel/styles/explore-map.css +66 -0
- package/src/modules/better-travel/styles/styles.css +421 -0
- package/src/modules/better-travel/styles/travel-menu-hiding.css +4 -0
- package/src/modules/better-travel/utils.js +28 -0
- package/src/modules/better-ui/index.js +71 -0
- package/src/modules/better-ui/modules/adventure-book/index.js +28 -0
- package/src/modules/better-ui/modules/codex-at-bottom/index.js +24 -0
- package/src/modules/better-ui/modules/egg-master/index.js +51 -0
- package/src/modules/better-ui/modules/friends/index.js +141 -0
- package/src/modules/better-ui/modules/hud/index.js +108 -0
- package/src/modules/better-ui/modules/kings-promo/index.js +15 -0
- package/src/modules/better-ui/modules/larger-codices/index.js +10 -0
- package/src/modules/better-ui/modules/larger-codices/styles.css +57 -0
- package/src/modules/better-ui/modules/larger-skin-images/index.js +148 -0
- package/src/modules/better-ui/modules/larger-skin-images/styles.css +21 -0
- package/src/modules/better-ui/modules/legacy-styles/index.js +9 -0
- package/src/modules/better-ui/modules/legacy-styles/styles.css +20 -0
- package/src/modules/better-ui/modules/maintenance/index.js +49 -0
- package/src/modules/better-ui/modules/random-skin-button/index.js +58 -0
- package/src/modules/better-ui/modules/random-skin-button/styles.css +16 -0
- package/src/modules/better-ui/modules/show-unowned-skins/index.js +109 -0
- package/src/modules/better-ui/modules/show-unowned-skins/styles.css +7 -0
- package/src/modules/better-ui/modules/skin-preview-base/index.js +24 -0
- package/src/modules/better-ui/modules/trap-gradient-background/index.js +10 -0
- package/src/modules/better-ui/modules/trap-gradient-background/styles.css +10 -0
- package/src/modules/better-ui/modules/userscripts-styles/index.js +40 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/any-trap-any-skin.css +52 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/favorite-setups.css +4 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/journal-historian.css +14 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/lgs-reminder.css +16 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/profile-plus.css +172 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/spring-egg-hunt-helper.css +5 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-autoloader.css +91 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-location-catch-stats.css +166 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-qol.css +21 -0
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-supply-search.css +33 -0
- package/src/modules/better-ui/settings/index.js +50 -0
- package/src/modules/better-ui/styles/adventure.css +380 -0
- package/src/modules/better-ui/styles/buttons.css +91 -0
- package/src/modules/better-ui/styles/corkboard.css +184 -0
- package/src/modules/better-ui/styles/daily-draw.css +203 -0
- package/src/modules/better-ui/styles/events.css +233 -0
- package/src/modules/better-ui/styles/footer.css +121 -0
- package/src/modules/better-ui/styles/friends.css +232 -0
- package/src/modules/better-ui/styles/general.css +525 -0
- package/src/modules/better-ui/styles/gifts.css +108 -0
- package/src/modules/better-ui/styles/horn.css +51 -0
- package/src/modules/better-ui/styles/hud.css +131 -0
- package/src/modules/better-ui/styles/inbox.css +278 -0
- package/src/modules/better-ui/styles/le.css +28 -0
- package/src/modules/better-ui/styles/legacy.css +25 -0
- package/src/modules/better-ui/styles/login.css +51 -0
- package/src/modules/better-ui/styles/maintence.css +49 -0
- package/src/modules/better-ui/styles/mobile-camp.css +36 -0
- package/src/modules/better-ui/styles/news.css +126 -0
- package/src/modules/better-ui/styles/overlays.css +274 -0
- package/src/modules/better-ui/styles/profile.css +795 -0
- package/src/modules/better-ui/styles/ronza.css +25 -0
- package/src/modules/better-ui/styles/scoreboards.css +50 -0
- package/src/modules/better-ui/styles/scrambles.css +84 -0
- package/src/modules/better-ui/styles/select2.css +47 -0
- package/src/modules/better-ui/styles/settings.css +22 -0
- package/src/modules/better-ui/styles/sidebar.css +15 -0
- package/src/modules/better-ui/styles/skins.css +4 -0
- package/src/modules/better-ui/styles/tabs.css +235 -0
- package/src/modules/better-ui/styles/team.css +177 -0
- package/src/modules/better-ui/styles/timer.css +14 -0
- package/src/modules/better-ui/styles/trap-selector.css +124 -0
- package/src/modules/better-ui/styles/traps.css +643 -0
- package/src/modules/better-ui/styles/tutorial.css +63 -0
- package/src/modules/better-ui/styles/ui-page.css +178 -0
- package/src/modules/big-timer/index.js +42 -0
- package/src/modules/big-timer/legacy-styles.css +19 -0
- package/src/modules/big-timer/styles.css +18 -0
- package/src/modules/catch-rate-estimate/data.js +458 -0
- package/src/modules/catch-rate-estimate/index.js +413 -0
- package/src/modules/catch-rate-estimate/settings/index.js +12 -0
- package/src/modules/catch-rate-estimate/styles.css +213 -0
- package/src/modules/copy-id/index.js +91 -0
- package/src/modules/copy-id/settings/index.js +13 -0
- package/src/modules/copy-id/styles.css +26 -0
- package/src/modules/custom-background/index.js +179 -0
- package/src/modules/custom-background/settings/index.js +60 -0
- package/src/modules/custom-background/styles.css +135 -0
- package/src/modules/custom-camp-background/index.js +83 -0
- package/src/modules/custom-camp-background/settings/index.js +52 -0
- package/src/modules/custom-camp-background/styles.css +57 -0
- package/src/modules/custom-css/index.js +50 -0
- package/src/modules/custom-css/settings/index.js +16 -0
- package/src/modules/custom-horn/index.js +244 -0
- package/src/modules/custom-horn/settings/index.js +60 -0
- package/src/modules/custom-horn/styles.css +107 -0
- package/src/modules/custom-hud/index.js +130 -0
- package/src/modules/custom-hud/settings/index.js +49 -0
- package/src/modules/custom-hud/styles/blueprint.css +13 -0
- package/src/modules/custom-hud/styles/groovy-green.css +6 -0
- package/src/modules/custom-hud/styles/midnight.css +23 -0
- package/src/modules/custom-hud/styles/suede.css +10 -0
- package/src/modules/custom-shield/cotton-candy.css +38 -0
- package/src/modules/custom-shield/index.js +267 -0
- package/src/modules/custom-shield/settings/index.js +156 -0
- package/src/modules/custom-shield/styles.css +423 -0
- package/src/modules/dark-mode-tweaks/index.js +69 -0
- package/src/modules/dark-mode-tweaks/journal-entries.css +17 -0
- package/src/modules/dark-mode-tweaks/styles.css +401 -0
- package/src/modules/data-exporters/exporters/export-favorite-setups-userscript.js +78 -0
- package/src/modules/data-exporters/exporters/export-favorite-setups.js +63 -0
- package/src/modules/data-exporters/exporters/export-inventory.js +115 -0
- package/src/modules/data-exporters/exporters/export-journal-entries.js +61 -0
- package/src/modules/data-exporters/exporters/export-kings-crowns.js +71 -0
- package/src/modules/data-exporters/exporters/export-marketplace.js +112 -0
- package/src/modules/data-exporters/exporters/export-mice.js +287 -0
- package/src/modules/data-exporters/exporters/export-rankup-forecaster.js +51 -0
- package/src/modules/data-exporters/exporters/export-scoreboards.js +100 -0
- package/src/modules/data-exporters/index.js +147 -0
- package/src/modules/data-exporters/styles.css +113 -0
- package/src/modules/data-exporters/utils.js +355 -0
- package/src/modules/debug/index.js +172 -0
- package/src/modules/debug/settings/index.js +53 -0
- package/src/modules/delayed-menus/index.js +19 -0
- package/src/modules/delayed-menus/styles.css +4 -0
- package/src/modules/delayed-tooltips/index.js +36 -0
- package/src/modules/delayed-tooltips/styles.css +12 -0
- package/src/modules/emotes/emotes.json +107 -0
- package/src/modules/emotes/index.js +53 -0
- package/src/modules/emotes/styles.css +3 -0
- package/src/modules/error-reporting/index.js +12 -0
- package/src/modules/experiments/index.js +134 -0
- package/src/modules/experiments/modules/fabled-custom-title/index.js +143 -0
- package/src/modules/experiments/modules/fabled-max-title-progress-bar/index.js +18 -0
- package/src/modules/experiments/modules/fabled-max-title-progress-bar/styles.css +8 -0
- package/src/modules/experiments/modules/fabled-random-title/index.js +814 -0
- package/src/modules/experiments/modules/fabled-random-title/styles.css +9 -0
- package/src/modules/experiments/modules/full-mice-images-no-border/index.js +22 -0
- package/src/modules/experiments/modules/full-mice-images-no-border/styles.css +26 -0
- package/src/modules/experiments/modules/gift-button-opens-gift-selector/index.js +31 -0
- package/src/modules/experiments/modules/memory-game/index.js +100 -0
- package/src/modules/experiments/modules/real-base-stats/index.js +100 -0
- package/src/modules/experiments/modules/settings-options.css +31 -0
- package/src/modules/experiments/modules/sort-daily-draw-reverse/index.js +68 -0
- package/src/modules/experiments/modules/square-profile-pics/index.js +17 -0
- package/src/modules/experiments/modules/square-profile-pics/styles.css +13 -0
- package/src/modules/favorite-setups/index.js +1431 -0
- package/src/modules/favorite-setups/settings/index.js +25 -0
- package/src/modules/favorite-setups/styles.css +471 -0
- package/src/modules/feature-flags/index.js +36 -0
- package/src/modules/feature-flags/modules/fake-fabled.js +7 -0
- package/src/modules/feature-flags/modules/rank-up-forecaster.js +198 -0
- package/src/modules/feature-flags/modules/social.js +37 -0
- package/src/modules/feature-flags/settings/index.js +16 -0
- package/src/modules/fixes/index.js +33 -0
- package/src/modules/fixes/modules/item-page.js +115 -0
- package/src/modules/fixes/modules/marketplace-buy-button.js +17 -0
- package/src/modules/fixes/modules/passing-parcel.js +84 -0
- package/src/modules/fixes/modules/rift-tooltip-quantities.js +30 -0
- package/src/modules/fixes/styles/accessibility.css +20 -0
- package/src/modules/fixes/styles/backgrounds.css +89 -0
- package/src/modules/fixes/styles/bountiful-beanstalk.css +4 -0
- package/src/modules/fixes/styles/buttons.css +3 -0
- package/src/modules/fixes/styles/claim-gift.css +4 -0
- package/src/modules/fixes/styles/colors.css +69 -0
- package/src/modules/fixes/styles/convertibles.css +9 -0
- package/src/modules/fixes/styles/discord.css +4 -0
- package/src/modules/fixes/styles/dropdown.css +23 -0
- package/src/modules/fixes/styles/events.css +3 -0
- package/src/modules/fixes/styles/fb-img-size.css +10 -0
- package/src/modules/fixes/styles/font-sizes.css +8 -0
- package/src/modules/fixes/styles/footer.css +5 -0
- package/src/modules/fixes/styles/hud-shadow.css +8 -0
- package/src/modules/fixes/styles/hunter-title.css +11 -0
- package/src/modules/fixes/styles/image.css +4 -0
- package/src/modules/fixes/styles/labyrinth.css +10 -0
- package/src/modules/fixes/styles/location-names-overflow.css +14 -0
- package/src/modules/fixes/styles/maps.css +15 -0
- package/src/modules/fixes/styles/menu.css +11 -0
- package/src/modules/fixes/styles/news-back.css +17 -0
- package/src/modules/fixes/styles/other.css +14 -0
- package/src/modules/fixes/styles/preferences.css +16 -0
- package/src/modules/fixes/styles/queso.css +4 -0
- package/src/modules/fixes/styles/ronza.css +5 -0
- package/src/modules/fixes/styles/scoreboard.css +5 -0
- package/src/modules/fixes/styles/tabs.css +38 -0
- package/src/modules/fixes/styles/tem.css +10 -0
- package/src/modules/fixes/styles/tooltips.css +24 -0
- package/src/modules/fixes/styles/tutorial-overlay.css +16 -0
- package/src/modules/flrt-helper/index.js +230 -0
- package/src/modules/flrt-helper/styles.css +235 -0
- package/src/modules/global-styles/index.js +21 -0
- package/src/modules/global-styles/styles/animations.css +194 -0
- package/src/modules/global-styles/styles/blueprint.css +11 -0
- package/src/modules/global-styles/styles/buttons.css +88 -0
- package/src/modules/global-styles/styles/favorite-button.css +30 -0
- package/src/modules/global-styles/styles/game-info-bar.css +11 -0
- package/src/modules/global-styles/styles/general.css +55 -0
- package/src/modules/global-styles/styles/horn-message.css +61 -0
- package/src/modules/global-styles/styles/messages.css +49 -0
- package/src/modules/global-styles/styles/settings.css +84 -0
- package/src/modules/global-styles/styles/tooltips.css +22 -0
- package/src/modules/global-styles/styles/trap-qty.css +45 -0
- package/src/modules/global-styles/styles/utility.css +39 -0
- package/src/modules/hide-codices/index.js +22 -0
- package/src/modules/hide-codices/styles.css +4 -0
- package/src/modules/hide-daily-draw/index.js +146 -0
- package/src/modules/hide-daily-draw/styles.css +3 -0
- package/src/modules/hide-daily-reward-popup/index.js +57 -0
- package/src/modules/hide-footer/index.js +37 -0
- package/src/modules/hide-footer/styles.css +10 -0
- package/src/modules/hide-news-ticker/index.js +21 -0
- package/src/modules/hide-news-ticker/styles.css +3 -0
- package/src/modules/hide-share/index.js +26 -0
- package/src/modules/hide-share/styles.css +29 -0
- package/src/modules/hide-sidebar/index.js +106 -0
- package/src/modules/hide-sidebar/styles.css +102 -0
- package/src/modules/hover-profiles/index.js +402 -0
- package/src/modules/hover-profiles/styles.css +247 -0
- package/src/modules/image-upscaling/index.js +375 -0
- package/src/modules/image-upscaling/styles.css +265 -0
- package/src/modules/image-upscaling/views.css +270 -0
- package/src/modules/inline-wiki/index.js +111 -0
- package/src/modules/inline-wiki/styles.css +9 -0
- package/src/modules/inventory-buttons/index.js +163 -0
- package/src/modules/inventory-buttons/settings/index.js +29 -0
- package/src/modules/inventory-buttons/styles/only-open-multiple.css +20 -0
- package/src/modules/inventory-lock-and-hide/index.js +641 -0
- package/src/modules/inventory-lock-and-hide/styles.css +139 -0
- package/src/modules/journal-changer/index.js +321 -0
- package/src/modules/journal-changer/settings/index.js +19 -0
- package/src/modules/journal-changer/styles.css +21 -0
- package/src/modules/journal-privacy/index.js +219 -0
- package/src/modules/journal-privacy/settings/index.js +19 -0
- package/src/modules/journal-privacy/styles/icon.css +31 -0
- package/src/modules/journal-privacy/styles/styles.css +30 -0
- package/src/modules/journal-privacy/styles/transparent.css +30 -0
- package/src/modules/keyboard-shortcuts/actions.js +213 -0
- package/src/modules/keyboard-shortcuts/index.js +521 -0
- package/src/modules/keyboard-shortcuts/styles.css +110 -0
- package/src/modules/legacy-hud/index.js +314 -0
- package/src/modules/legacy-hud/settings/index.js +24 -0
- package/src/modules/legacy-hud/styles/menu.css +19 -0
- package/src/modules/legacy-hud/styles/stats.css +18 -0
- package/src/modules/legacy-hud/styles/styles.css +3 -0
- package/src/modules/legacy-hud/styles/tweaks.css +60 -0
- package/src/modules/lgs-reminder/index.js +229 -0
- package/src/modules/lgs-reminder/settings/index.js +17 -0
- package/src/modules/lgs-reminder/styles.css +85 -0
- package/src/modules/links/index.js +69 -0
- package/src/modules/location-catch-stats/crown-colored-rows.css +47 -0
- package/src/modules/location-catch-stats/index.js +234 -0
- package/src/modules/location-catch-stats/settings/index.js +17 -0
- package/src/modules/location-catch-stats/styles.css +125 -0
- package/src/modules/location-dashboard/index.js +536 -0
- package/src/modules/location-dashboard/locations/afterword-acres.js +18 -0
- package/src/modules/location-dashboard/locations/ancient-city.js +23 -0
- package/src/modules/location-dashboard/locations/bountiful-beanstalk.js +51 -0
- package/src/modules/location-dashboard/locations/desert-oasis.js +22 -0
- package/src/modules/location-dashboard/locations/desert-warpath.js +58 -0
- package/src/modules/location-dashboard/locations/draconic-depths.js +52 -0
- package/src/modules/location-dashboard/locations/epilogue-falls.js +40 -0
- package/src/modules/location-dashboard/locations/floating-islands.js +74 -0
- package/src/modules/location-dashboard/locations/foreword-farm.js +45 -0
- package/src/modules/location-dashboard/locations/fort-rox.js +39 -0
- package/src/modules/location-dashboard/locations/iceberg.js +16 -0
- package/src/modules/location-dashboard/locations/labyrinth.js +38 -0
- package/src/modules/location-dashboard/locations/lost-city.js +28 -0
- package/src/modules/location-dashboard/locations/mousoleum.js +20 -0
- package/src/modules/location-dashboard/locations/moussu-picchu.js +29 -0
- package/src/modules/location-dashboard/locations/pollution-outbreak.js +18 -0
- package/src/modules/location-dashboard/locations/queso-geyser.js +16 -0
- package/src/modules/location-dashboard/locations/rift-bristle-woods.js +28 -0
- package/src/modules/location-dashboard/locations/rift-burroughs.js +14 -0
- package/src/modules/location-dashboard/locations/rift-furoma.js +50 -0
- package/src/modules/location-dashboard/locations/rift-valour.js +30 -0
- package/src/modules/location-dashboard/locations/sand-dunes.js +21 -0
- package/src/modules/location-dashboard/locations/school-of-sorcery.js +29 -0
- package/src/modules/location-dashboard/locations/seasonal-garden.js +46 -0
- package/src/modules/location-dashboard/locations/sunken-city.js +25 -0
- package/src/modules/location-dashboard/locations/table-of-contents.js +20 -0
- package/src/modules/location-dashboard/locations/whisker-woods-rift.js +15 -0
- package/src/modules/location-dashboard/locations/zugzwang-tower.js +81 -0
- package/src/modules/location-dashboard/styles.css +389 -0
- package/src/modules/location-huds/index.js +261 -0
- package/src/modules/location-huds/locations/acolyte-realm/index.js +13 -0
- package/src/modules/location-huds/locations/afterword-acres/index.js +14 -0
- package/src/modules/location-huds/locations/afterword-acres/styles.css +21 -0
- package/src/modules/location-huds/locations/ancient-city/index.js +197 -0
- package/src/modules/location-huds/locations/ancient-city/styles.css +251 -0
- package/src/modules/location-huds/locations/balacks-cove/index.js +81 -0
- package/src/modules/location-huds/locations/balacks-cove/styles.css +12 -0
- package/src/modules/location-huds/locations/bazaar/index.js +8 -0
- package/src/modules/location-huds/locations/bountiful-beanstalk/index.js +309 -0
- package/src/modules/location-huds/locations/bountiful-beanstalk/small-inv.css +34 -0
- package/src/modules/location-huds/locations/bountiful-beanstalk/styles.css +608 -0
- package/src/modules/location-huds/locations/calm-clearing/index.js +8 -0
- package/src/modules/location-huds/locations/cape-clawed/index.js +12 -0
- package/src/modules/location-huds/locations/catacombs/index.js +17 -0
- package/src/modules/location-huds/locations/claw-shot-city/index.js +10 -0
- package/src/modules/location-huds/locations/claw-shot-city/styles.css +5 -0
- package/src/modules/location-huds/locations/conclusion-cliffs/index.js +14 -0
- package/src/modules/location-huds/locations/conclusion-cliffs/styles.css +114 -0
- package/src/modules/location-huds/locations/derr-dunes/index.js +8 -0
- package/src/modules/location-huds/locations/desert-city/index.js +10 -0
- package/src/modules/location-huds/locations/desert-city/styles.css +13 -0
- package/src/modules/location-huds/locations/desert-warpath/index.js +212 -0
- package/src/modules/location-huds/locations/desert-warpath/styles.css +273 -0
- package/src/modules/location-huds/locations/dojo/index.js +8 -0
- package/src/modules/location-huds/locations/dracano/index.js +8 -0
- package/src/modules/location-huds/locations/draconic-depths/index.js +143 -0
- package/src/modules/location-huds/locations/draconic-depths/styles.css +222 -0
- package/src/modules/location-huds/locations/elub-shore/index.js +8 -0
- package/src/modules/location-huds/locations/epilogue-falls/index.js +101 -0
- package/src/modules/location-huds/locations/epilogue-falls/styles.css +312 -0
- package/src/modules/location-huds/locations/event-locations/birthday/index.js +88 -0
- package/src/modules/location-huds/locations/event-locations/birthday/styles.css +341 -0
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/global.css +251 -0
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/index.js +425 -0
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/styles.css +887 -0
- package/src/modules/location-huds/locations/event-locations/halloween/index.js +45 -0
- package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/index.js +118 -0
- package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/styles.css +33 -0
- package/src/modules/location-huds/locations/event-locations/halloween/styles.css +605 -0
- package/src/modules/location-huds/locations/event-locations/index.js +54 -0
- package/src/modules/location-huds/locations/event-locations/lunar-new-year/index.js +176 -0
- package/src/modules/location-huds/locations/event-locations/lunar-new-year/styles.css +263 -0
- package/src/modules/location-huds/locations/event-locations/ronza/index.js +111 -0
- package/src/modules/location-huds/locations/event-locations/ronza/styles.css +144 -0
- package/src/modules/location-huds/locations/event-locations/shared.js +67 -0
- package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/index.js +128 -0
- package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/styles.css +196 -0
- package/src/modules/location-huds/locations/floating-islands/index.js +552 -0
- package/src/modules/location-huds/locations/floating-islands/styles.css +792 -0
- package/src/modules/location-huds/locations/forbidden-grove/index.js +75 -0
- package/src/modules/location-huds/locations/forbidden-grove/styles.css +16 -0
- package/src/modules/location-huds/locations/foreword-farm/index.js +84 -0
- package/src/modules/location-huds/locations/foreword-farm/styles.css +376 -0
- package/src/modules/location-huds/locations/fort-rox/index.js +249 -0
- package/src/modules/location-huds/locations/fort-rox/styles.css +257 -0
- package/src/modules/location-huds/locations/fungal-cavern/index.js +10 -0
- package/src/modules/location-huds/locations/fungal-cavern/styles.css +77 -0
- package/src/modules/location-huds/locations/great-gnarled-tree/index.js +8 -0
- package/src/modules/location-huds/locations/harbour/index.js +10 -0
- package/src/modules/location-huds/locations/harbour/styles.css +32 -0
- package/src/modules/location-huds/locations/iceberg/index.js +469 -0
- package/src/modules/location-huds/locations/iceberg/styles/bob-iceberg.css +57 -0
- package/src/modules/location-huds/locations/iceberg/styles/styles.css +329 -0
- package/src/modules/location-huds/locations/jungle-of-dread/index.js +17 -0
- package/src/modules/location-huds/locations/kings-arms/index.js +8 -0
- package/src/modules/location-huds/locations/kings-gauntlet/index.js +17 -0
- package/src/modules/location-huds/locations/laboratory/index.js +10 -0
- package/src/modules/location-huds/locations/laboratory/styles.css +41 -0
- package/src/modules/location-huds/locations/labyrinth/index.js +315 -0
- package/src/modules/location-huds/locations/labyrinth/styles.css +547 -0
- package/src/modules/location-huds/locations/lagoon/index.js +8 -0
- package/src/modules/location-huds/locations/meditation-room/index.js +12 -0
- package/src/modules/location-huds/locations/mountain/index.js +10 -0
- package/src/modules/location-huds/locations/mountain/styles.css +259 -0
- package/src/modules/location-huds/locations/mousoleum/index.js +17 -0
- package/src/modules/location-huds/locations/mousoleum/styles.css +21 -0
- package/src/modules/location-huds/locations/moussu-picchu/index.js +10 -0
- package/src/modules/location-huds/locations/moussu-picchu/styles.css +243 -0
- package/src/modules/location-huds/locations/nerg-plains/index.js +8 -0
- package/src/modules/location-huds/locations/pinnacle-chamber/index.js +11 -0
- package/src/modules/location-huds/locations/pollution-outbreak/index.js +32 -0
- package/src/modules/location-huds/locations/pollution-outbreak/styles.css +516 -0
- package/src/modules/location-huds/locations/prologue-pond/index.js +64 -0
- package/src/modules/location-huds/locations/prologue-pond/styles.css +138 -0
- package/src/modules/location-huds/locations/region-living-garden/index.js +36 -0
- package/src/modules/location-huds/locations/region-living-garden/styles.css +316 -0
- package/src/modules/location-huds/locations/region-queso/index.js +10 -0
- package/src/modules/location-huds/locations/region-queso/styles.css +366 -0
- package/src/modules/location-huds/locations/rift-bristle-woods/index.js +29 -0
- package/src/modules/location-huds/locations/rift-bristle-woods/styles.css +268 -0
- package/src/modules/location-huds/locations/rift-burroughs/index.js +157 -0
- package/src/modules/location-huds/locations/rift-burroughs/styles.css +272 -0
- package/src/modules/location-huds/locations/rift-furoma/index.js +79 -0
- package/src/modules/location-huds/locations/rift-furoma/styles.css +233 -0
- package/src/modules/location-huds/locations/rift-gnawnia/index.js +10 -0
- package/src/modules/location-huds/locations/rift-gnawnia/styles.css +83 -0
- package/src/modules/location-huds/locations/rift-valour/flipped-avatar.css +15 -0
- package/src/modules/location-huds/locations/rift-valour/index.js +271 -0
- package/src/modules/location-huds/locations/rift-valour/simulator.js +559 -0
- package/src/modules/location-huds/locations/rift-valour/styles.css +644 -0
- package/src/modules/location-huds/locations/rift-whisker-woods/index.js +86 -0
- package/src/modules/location-huds/locations/rift-whisker-woods/styles.css +214 -0
- package/src/modules/location-huds/locations/school-of-sorcery/clean-chalkboard.css +11 -0
- package/src/modules/location-huds/locations/school-of-sorcery/index.js +109 -0
- package/src/modules/location-huds/locations/school-of-sorcery/styles.css +460 -0
- package/src/modules/location-huds/locations/seasonal-garden/index.js +71 -0
- package/src/modules/location-huds/locations/seasonal-garden/styles.css +132 -0
- package/src/modules/location-huds/locations/slushy-shoreline/index.js +8 -0
- package/src/modules/location-huds/locations/ss-huntington-ii/index.js +8 -0
- package/src/modules/location-huds/locations/sunken-city/index.js +177 -0
- package/src/modules/location-huds/locations/sunken-city/styles.css +196 -0
- package/src/modules/location-huds/locations/table-of-contents/index.js +389 -0
- package/src/modules/location-huds/locations/table-of-contents/simulator-styles.css +240 -0
- package/src/modules/location-huds/locations/table-of-contents/simulator.js +276 -0
- package/src/modules/location-huds/locations/table-of-contents/styles.css +403 -0
- package/src/modules/location-huds/locations/tournament-hall/index.js +8 -0
- package/src/modules/location-huds/locations/town-of-digby/index.js +8 -0
- package/src/modules/location-huds/locations/town-of-gnawnia/index.js +10 -0
- package/src/modules/location-huds/locations/town-of-gnawnia/styles.css +48 -0
- package/src/modules/location-huds/locations/train-station/index.js +10 -0
- package/src/modules/location-huds/locations/train-station/styles.css +31 -0
- package/src/modules/location-huds/locations/windmill/index.js +53 -0
- package/src/modules/location-huds/locations/windmill/styles.css +73 -0
- package/src/modules/location-huds/locations/zugzwang-tower/index.js +10 -0
- package/src/modules/location-huds/locations/zugzwang-tower/styles.css +54 -0
- package/src/modules/location-huds/settings.js +124 -0
- package/src/modules/location-huds/shared/cheese-selectors/index.js +143 -0
- package/src/modules/location-huds/shared/crafting-buttons/index.js +133 -0
- package/src/modules/location-huds/shared/crafting-buttons/styles.css +51 -0
- package/src/modules/location-huds/shared/folklore-forest/index.js +261 -0
- package/src/modules/location-huds/shared/folklore-forest/keep-inventory-open.js +77 -0
- package/src/modules/location-huds/shared/folklore-forest/styles.css +394 -0
- package/src/modules/location-huds/styles.css +61 -0
- package/src/modules/location-huds/toggle-icon.js +74 -0
- package/src/modules/metric/index.js +114 -0
- package/src/modules/native-dark-mode/index.js +79 -0
- package/src/modules/native-dark-mode/settings/index.js +15 -0
- package/src/modules/native-dark-mode/styles/_root.css +42 -0
- package/src/modules/native-dark-mode/styles/adventure.css +95 -0
- package/src/modules/native-dark-mode/styles/camp-tabs.css +113 -0
- package/src/modules/native-dark-mode/styles/camp-trap.css +420 -0
- package/src/modules/native-dark-mode/styles/conflict-popup.css +39 -0
- package/src/modules/native-dark-mode/styles/events.css +7 -0
- package/src/modules/native-dark-mode/styles/favorite-setups.css +12 -0
- package/src/modules/native-dark-mode/styles/friends.css +210 -0
- package/src/modules/native-dark-mode/styles/general.css +231 -0
- package/src/modules/native-dark-mode/styles/gifts.css +243 -0
- package/src/modules/native-dark-mode/styles/header-dropdown.css +62 -0
- package/src/modules/native-dark-mode/styles/header.css +100 -0
- package/src/modules/native-dark-mode/styles/hover-items.css +30 -0
- package/src/modules/native-dark-mode/styles/inbox.css +85 -0
- package/src/modules/native-dark-mode/styles/inventory.css +271 -0
- package/src/modules/native-dark-mode/styles/item-view.css +42 -0
- package/src/modules/native-dark-mode/styles/journal-main.css +115 -0
- package/src/modules/native-dark-mode/styles/journal-misc-entries.css +118 -0
- package/src/modules/native-dark-mode/styles/journal-preview.css +37 -0
- package/src/modules/native-dark-mode/styles/kings-calibrator.css +53 -0
- package/src/modules/native-dark-mode/styles/loading.css +58 -0
- package/src/modules/native-dark-mode/styles/location-catch-stats.css +31 -0
- package/src/modules/native-dark-mode/styles/maps.css +597 -0
- package/src/modules/native-dark-mode/styles/markethunt.css +41 -0
- package/src/modules/native-dark-mode/styles/marketplace.css +278 -0
- package/src/modules/native-dark-mode/styles/mice-images.css +10 -0
- package/src/modules/native-dark-mode/styles/mice.css +262 -0
- package/src/modules/native-dark-mode/styles/mouse-view.css +44 -0
- package/src/modules/native-dark-mode/styles/news.css +40 -0
- package/src/modules/native-dark-mode/styles/overlays.css +227 -0
- package/src/modules/native-dark-mode/styles/page.css +13 -0
- package/src/modules/native-dark-mode/styles/premium.css +7 -0
- package/src/modules/native-dark-mode/styles/profile.css +243 -0
- package/src/modules/native-dark-mode/styles/progress-log.css +25 -0
- package/src/modules/native-dark-mode/styles/quests.css +29 -0
- package/src/modules/native-dark-mode/styles/scoreboards.css +66 -0
- package/src/modules/native-dark-mode/styles/select2.css +65 -0
- package/src/modules/native-dark-mode/styles/send-supplies.css +88 -0
- package/src/modules/native-dark-mode/styles/settings.css +172 -0
- package/src/modules/native-dark-mode/styles/shops.css +114 -0
- package/src/modules/native-dark-mode/styles/sidebar.css +56 -0
- package/src/modules/native-dark-mode/styles/tabs.css +17 -0
- package/src/modules/native-dark-mode/styles/team.css +58 -0
- package/src/modules/native-dark-mode/styles/travel.css +102 -0
- package/src/modules/native-dark-mode/styles/userscripts.css +38 -0
- package/src/modules/onboarding/index.js +44 -0
- package/src/modules/onboarding/styles.css +13 -0
- package/src/modules/paste-hunter-id/index.js +82 -0
- package/src/modules/prestige-base-stats/index.js +242 -0
- package/src/modules/printing-press-paper-counter/index.js +24 -0
- package/src/modules/quick-filters-and-sort/index.js +280 -0
- package/src/modules/quick-filters-and-sort/styles.css +146 -0
- package/src/modules/quick-send-supplies/index.js +358 -0
- package/src/modules/quick-send-supplies/settings/index.js +40 -0
- package/src/modules/quick-send-supplies/styles.css +185 -0
- package/src/modules/replace-favicon/index.js +51 -0
- package/src/modules/required/global-utils.js +9 -0
- package/src/modules/required/index.js +251 -0
- package/src/modules/scoreboard-search-on-profiles/index.js +161 -0
- package/src/modules/scoreboard-search-on-profiles/styles.css +25 -0
- package/src/modules/settings/icons.css +233 -0
- package/src/modules/settings/index.js +653 -0
- package/src/modules/settings/settings/index.js +16 -0
- package/src/modules/settings/styles.css +635 -0
- package/src/modules/shield-goes-to-camp/index.js +31 -0
- package/src/modules/show-adventure-book/index.js +31 -0
- package/src/modules/show-adventure-book/styles.css +6 -0
- package/src/modules/show-auras/index.js +252 -0
- package/src/modules/show-auras/settings/index.js +19 -0
- package/src/modules/show-auras/styles/grid.css +48 -0
- package/src/modules/show-auras/styles/icons.css +22 -0
- package/src/modules/show-auras/styles/list.css +49 -0
- package/src/modules/show-auras/styles/styles.css +23 -0
- package/src/modules/ssdb-toothlet-counter/index.js +24 -0
- package/src/modules/taller-windows/index.js +22 -0
- package/src/modules/taller-windows/styles.css +137 -0
- package/src/modules/tem-crowns/index.js +127 -0
- package/src/modules/tem-crowns/styles.css +106 -0
- package/src/modules/trap-selector-special-effects/index.js +75 -0
- package/src/modules/ultimate-checkmark/index.js +391 -0
- package/src/modules/ultimate-checkmark/settings/index.js +40 -0
- package/src/modules/ultimate-checkmark/styles.css +12 -0
- package/src/modules/unique-loot-count/index.js +59 -0
- package/src/modules/unique-loot-count/styles.css +3 -0
- package/src/modules/update-notifications/index.js +95 -0
- package/src/modules/update-notifications/styles.css +181 -0
- package/src/modules/user-highlighting/index.js +130 -0
- package/src/modules/user-highlighting/profile.css +374 -0
- package/src/modules/user-highlighting/styles.css +34 -0
- package/src/modules/wisdom-in-stat-bar/index.js +170 -0
- package/src/modules/wisdom-in-stat-bar/settings/index.js +12 -0
- package/src/modules/wisdom-in-stat-bar/styles.css +3 -0
- package/src/updates/index.js +168 -0
- package/src/updates/versions/.gitkeep +0 -0
- package/src/updates/versions/0.93.0.js +39 -0
- package/src/updates/versions/0.93.3.js +8 -0
- package/src/updates/versions/0.94.0.js +8 -0
- package/src/utils/blueprint.js +74 -0
- package/src/utils/data.js +559 -0
- package/src/utils/db.js +206 -0
- package/src/utils/debug.js +72 -0
- package/src/utils/draggable.js +141 -0
- package/src/utils/elements.js +650 -0
- package/src/utils/event-registry.js +102 -0
- package/src/utils/events.js +698 -0
- package/src/utils/flags.js +39 -0
- package/src/utils/global.js +37 -0
- package/src/utils/horn.js +187 -0
- package/src/utils/humanizer.js +62 -0
- package/src/utils/index.js +28 -0
- package/src/utils/journal.js +222 -0
- package/src/utils/json.js +32 -0
- package/src/utils/links.js +343 -0
- package/src/utils/location-current.js +23 -0
- package/src/utils/location.js +70 -0
- package/src/utils/maps.js +699 -0
- package/src/utils/messages.js +255 -0
- package/src/utils/onboarding.js +102 -0
- package/src/utils/page-current.js +26 -0
- package/src/utils/page.js +155 -0
- package/src/utils/settings-markup.js +907 -0
- package/src/utils/settings.js +260 -0
- package/src/utils/shared/fiery-warpath.js +88 -0
- package/src/utils/shared/memory-game.js +231 -0
- package/src/utils/shared/trap-quantity.js +232 -0
- package/src/utils/styles/errors.css +50 -0
- package/src/utils/styles/memory-game.css +227 -0
- package/src/utils/styles/page-error.css +145 -0
- package/src/utils/styles/page-maintenance.css +150 -0
- package/src/utils/styles.js +209 -0
- package/src/utils/templates.js +170 -0
- package/src/utils/user.js +375 -0
- package/src/utils/utils.js +534 -0
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addStyles,
|
|
3
|
+
addSubmenuItem,
|
|
4
|
+
doRequest,
|
|
5
|
+
getArForMouse,
|
|
6
|
+
getData,
|
|
7
|
+
getFlag,
|
|
8
|
+
getRelicHunterLocation,
|
|
9
|
+
getSetting,
|
|
10
|
+
makeElement,
|
|
11
|
+
makeFavoriteButton,
|
|
12
|
+
makeLink,
|
|
13
|
+
makeMhButton,
|
|
14
|
+
makeTooltip,
|
|
15
|
+
onNavigation,
|
|
16
|
+
onOverlayChange,
|
|
17
|
+
onTurn,
|
|
18
|
+
setPage
|
|
19
|
+
} from '@utils';
|
|
20
|
+
|
|
21
|
+
import hoverMice from './modules/hover-mice';
|
|
22
|
+
import mousePage from './modules/mouse-page';
|
|
23
|
+
import settings from './settings';
|
|
24
|
+
import sidebar from './modules/sidebar';
|
|
25
|
+
|
|
26
|
+
import styles from './styles.css';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get the markup for the mouse links.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} name The name of the mouse.
|
|
32
|
+
* @param {string} id The ID of the mouse.
|
|
33
|
+
*
|
|
34
|
+
* @return {string} The markup for the mouse links.
|
|
35
|
+
*/
|
|
36
|
+
const getLinkMarkup = (name, id) => {
|
|
37
|
+
return makeLink('MHCT AR', `https://api.mouse.rip/mhct-redirect/${id}`) +
|
|
38
|
+
makeLink('Wiki', `https://mhwiki.hitgrab.com/wiki/index.php/${encodeURIComponent(name.replaceAll(' ', '_'))}`, true);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Add links to the mouse overlay.
|
|
43
|
+
*
|
|
44
|
+
* @param {string} id The ID of the mouse.
|
|
45
|
+
*/
|
|
46
|
+
const addLinks = (id) => {
|
|
47
|
+
const title = document.querySelector('.mouseView-title');
|
|
48
|
+
if (! title) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const currentLinks = document.querySelector('.mh-ui-mouse-links');
|
|
53
|
+
if (currentLinks) {
|
|
54
|
+
currentLinks.remove();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const div = document.createElement('div');
|
|
58
|
+
div.classList.add('mh-ui-mouse-links');
|
|
59
|
+
div.innerHTML = getLinkMarkup(title.innerText, id);
|
|
60
|
+
title.parentNode.insertBefore(div, title);
|
|
61
|
+
|
|
62
|
+
// Move the values into the main text.
|
|
63
|
+
const values = document.querySelector('.mouseView-values');
|
|
64
|
+
const desc = document.querySelector('.mouseView-descriptionContainer');
|
|
65
|
+
if (values && desc) {
|
|
66
|
+
// insert as first child of desc
|
|
67
|
+
desc.insertBefore(values, desc.firstChild);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if the mouse is a favorite.
|
|
73
|
+
*
|
|
74
|
+
* @param {string} mouseId The ID of the mouse.
|
|
75
|
+
*
|
|
76
|
+
* @return {boolean} Whether the mouse is a favorite.
|
|
77
|
+
*/
|
|
78
|
+
const isFavorite = async (mouseId) => {
|
|
79
|
+
const favorites = await doRequest('managers/ajax/pages/page.php', {
|
|
80
|
+
page_class: 'HunterProfile',
|
|
81
|
+
'page_arguments[tab]': 'kings_crowns',
|
|
82
|
+
'page_arguments[sub_tab]': false,
|
|
83
|
+
'page_arguments[snuid]': window.user.sn_user_id,
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
if (! favorites?.page?.tabs?.kings_crowns?.subtabs[0]?.mouse_crowns?.favourite_mice.length) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// check if the mouseId matches the id property of any of the favorite mice
|
|
91
|
+
return favorites.page.tabs.kings_crowns.subtabs[0].mouse_crowns.favourite_mice.some((mouse) => {
|
|
92
|
+
return mouse.id && mouse.id === Number.parseInt(mouseId, 10);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Add the favorite button to the mouse view.
|
|
98
|
+
*
|
|
99
|
+
* @param {string} mouseId The ID of the mouse.
|
|
100
|
+
* @param {HTMLElement} mouseView The mouse view element.
|
|
101
|
+
*/
|
|
102
|
+
const addFavoriteButton = async (mouseId, mouseView) => {
|
|
103
|
+
const state = await isFavorite(mouseId);
|
|
104
|
+
|
|
105
|
+
const fave = await makeFavoriteButton({
|
|
106
|
+
target: mouseView,
|
|
107
|
+
size: 'large',
|
|
108
|
+
isSetting: false,
|
|
109
|
+
state,
|
|
110
|
+
/**
|
|
111
|
+
* Save the favorite state when the button is clicked.
|
|
112
|
+
*/
|
|
113
|
+
onChange: () => {
|
|
114
|
+
doRequest('managers/ajax/mice/mouse_crowns.php', {
|
|
115
|
+
action: 'toggle_favourite',
|
|
116
|
+
user_id: window.user.user_id,
|
|
117
|
+
mouse_id: mouseId,
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
const mouseviewImage = mouseView.querySelector('.mouseView-imageContainer');
|
|
123
|
+
if (mouseviewImage) {
|
|
124
|
+
mouseviewImage.append(fave);
|
|
125
|
+
} else {
|
|
126
|
+
mouseView.append(fave);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Add the minluck to the mouse view.
|
|
132
|
+
*
|
|
133
|
+
* @param {string} mouseId The ID of the mouse.
|
|
134
|
+
* @param {HTMLElement} mouseView The mouse view element.
|
|
135
|
+
*/
|
|
136
|
+
const addMinluck = async (mouseId, mouseView) => {
|
|
137
|
+
// get the description container
|
|
138
|
+
const appendTo = mouseView.querySelector('.mouseView-contentContainer');
|
|
139
|
+
if (! appendTo) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const minluckContainer = makeElement('div', 'minluck-container');
|
|
144
|
+
const titleText = makeElement('div', 'minluck-title', 'Minlucks');
|
|
145
|
+
|
|
146
|
+
makeTooltip({
|
|
147
|
+
appendTo: titleText,
|
|
148
|
+
text: 'If your current luck is above the minluck, you are guaranteed to catch the mouse if you attract it.',
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
minluckContainer.append(titleText);
|
|
152
|
+
|
|
153
|
+
// foreach minluck, output the power type and the minluck
|
|
154
|
+
const minluckList = makeElement('ul', 'minluck-list');
|
|
155
|
+
|
|
156
|
+
if (! minlucks) {
|
|
157
|
+
minlucks = await getData('minlucks');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// find the mouse in the minlucks data by id
|
|
161
|
+
const minluck = minlucks.find((m) => m.id === Number.parseInt(mouseId, 10));
|
|
162
|
+
const mouseMinlucks = minluck?.minlucks || {};
|
|
163
|
+
|
|
164
|
+
// We need the keys and values in our loop,
|
|
165
|
+
// so we can't use a for...in loop.
|
|
166
|
+
Object.keys(mouseMinlucks).forEach((powerType) => {
|
|
167
|
+
if (! mouseMinlucks[powerType] || '∞' === mouseMinlucks[powerType]) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const minluckItem = makeElement('li', 'minluck-item');
|
|
172
|
+
|
|
173
|
+
const powerTypeImg = makeElement('img', 'minluck-power-type-img');
|
|
174
|
+
powerTypeImg.src = `https://www.mousehuntgame.com/images/powertypes/${powerType.toLowerCase()}.png`;
|
|
175
|
+
minluckItem.append(powerTypeImg);
|
|
176
|
+
|
|
177
|
+
makeElement('div', 'minluck-power-type-minluck', mouseMinlucks[powerType], minluckItem);
|
|
178
|
+
|
|
179
|
+
minluckList.append(minluckItem);
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
minluckContainer.append(minluckList);
|
|
183
|
+
|
|
184
|
+
appendTo.append(minluckContainer);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Add the wisdom to the mouse view.
|
|
189
|
+
*
|
|
190
|
+
* @param {string} mouseId The ID of the mouse.
|
|
191
|
+
* @param {HTMLElement} mouseView The mouse view element.
|
|
192
|
+
*/
|
|
193
|
+
const addWisdom = async (mouseId, mouseView) => {
|
|
194
|
+
const values = mouseView.querySelector('.mouseView-values');
|
|
195
|
+
if (! values) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (! wisdoms) {
|
|
200
|
+
wisdoms = await getData('wisdom');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
let wisdom = wisdoms.find((m) => m.id === Number.parseInt(mouseId, 10));
|
|
204
|
+
|
|
205
|
+
wisdom = wisdom?.wisdom || 0;
|
|
206
|
+
|
|
207
|
+
// comma separate the wisdom number
|
|
208
|
+
wisdom = wisdom.toString().replaceAll(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
209
|
+
makeElement('span', 'wisdom-container', ` / ${wisdom} Wisdom`, values);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Update the mouse view.
|
|
214
|
+
*/
|
|
215
|
+
const updateMouseView = async () => {
|
|
216
|
+
const mouseView = document.querySelector('#overlayPopup .mouseView');
|
|
217
|
+
if (! mouseView) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const mouseId = mouseView.getAttribute('data-mouse-id');
|
|
222
|
+
if (! mouseId) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const name = mouseView.querySelector('.mouseView-title');
|
|
227
|
+
if (! name) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const catchesEl = document.querySelectorAll('.mouseView-statsContainer-block-padding td abbr');
|
|
232
|
+
if (catchesEl && catchesEl.length > 0) {
|
|
233
|
+
catchesEl.forEach((el) => {
|
|
234
|
+
// remove the ' catches' from the title and use it as the text
|
|
235
|
+
const catchesNumber = el
|
|
236
|
+
.getAttribute('title')
|
|
237
|
+
.replace(' Catches', '')
|
|
238
|
+
.replace(' catches', '')
|
|
239
|
+
.replace(' Misses', '')
|
|
240
|
+
.replace(' misses', '')
|
|
241
|
+
.trim();
|
|
242
|
+
if (catchesNumber) {
|
|
243
|
+
el.innerText = catchesNumber;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
addLinks(mouseId);
|
|
249
|
+
|
|
250
|
+
addFavoriteButton(mouseId, mouseView);
|
|
251
|
+
|
|
252
|
+
addMinluck(mouseId, mouseView);
|
|
253
|
+
|
|
254
|
+
addWisdom(mouseId, mouseView);
|
|
255
|
+
|
|
256
|
+
mouseView.classList.add('mouseview-has-mhct');
|
|
257
|
+
|
|
258
|
+
const group = document.querySelector('.mouseView-group');
|
|
259
|
+
if (group) {
|
|
260
|
+
group.classList.add('mouseview-title-group');
|
|
261
|
+
|
|
262
|
+
const descContainer = document.querySelector('.mouseView-descriptionContainer');
|
|
263
|
+
if (descContainer) {
|
|
264
|
+
if (descContainer.childNodes.length > 1) {
|
|
265
|
+
descContainer.insertBefore(group, descContainer.childNodes[1]);
|
|
266
|
+
} else {
|
|
267
|
+
descContainer.append(group);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const groupTitle = mouseView.querySelector('.mouseView-group.mouseview-title-group');
|
|
273
|
+
if (groupTitle) {
|
|
274
|
+
let newHtml = groupTitle.innerHTML.replace('Group: ', '');
|
|
275
|
+
const subGroups = newHtml.split('(');
|
|
276
|
+
if (subGroups.length > 1) {
|
|
277
|
+
newHtml = `<span class="mouseview-group">${subGroups[0]}</span><span class="mouseview-subgroup">(${subGroups[1]}</span>`;
|
|
278
|
+
groupTitle.classList.add('mouseview-title-group-has-subgroup');
|
|
279
|
+
} else {
|
|
280
|
+
newHtml = `<span class="mouseview-group">${newHtml}</span>`;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
groupTitle.innerHTML = newHtml;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const container = mouseView.querySelector('.mouseView-contentContainer');
|
|
287
|
+
if (! container) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const imageContainer = mouseView.querySelector('.mouseView-imageContainer');
|
|
292
|
+
if (imageContainer) {
|
|
293
|
+
const movedContainer = makeElement('div', 'mouseView-movedContainer');
|
|
294
|
+
|
|
295
|
+
const statsContainer = mouseView.querySelector('.mouseView-statsContainer');
|
|
296
|
+
if (statsContainer) {
|
|
297
|
+
movedContainer.append(statsContainer);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const weaknessContainer = mouseView.querySelector('.mouseView-weaknessContainer');
|
|
301
|
+
if (weaknessContainer) {
|
|
302
|
+
movedContainer.append(weaknessContainer);
|
|
303
|
+
const weaknesses = weaknessContainer.querySelectorAll('.mouseView-categoryContent-subgroup-mouse-weaknesses-padding');
|
|
304
|
+
weaknesses.forEach((w) => {
|
|
305
|
+
const weakness = w.querySelector('.mouseView-weakness');
|
|
306
|
+
if (! weakness) {
|
|
307
|
+
w.classList.add('mouseview-weakness-empty');
|
|
308
|
+
w.classList.add('hidden');
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (401 === Number.parseInt(mouseId, 10)) {
|
|
314
|
+
const location = await getRelicHunterLocation();
|
|
315
|
+
|
|
316
|
+
if (location && location.name) {
|
|
317
|
+
const relicHunterBox = makeElement('div', ['mouseview-relicHunter', 'mouseview-relicHunter']);
|
|
318
|
+
makeElement('div', 'hint', location.name, relicHunterBox);
|
|
319
|
+
|
|
320
|
+
makeMhButton({
|
|
321
|
+
text: 'Travel',
|
|
322
|
+
size: 'small',
|
|
323
|
+
callback: () => {
|
|
324
|
+
hg.utils.User.travel(location.id);
|
|
325
|
+
setPage('Camp');
|
|
326
|
+
},
|
|
327
|
+
appendTo: relicHunterBox,
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
movedContainer.append(relicHunterBox);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
imageContainer.append(movedContainer);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (! getSetting('better-mice.show-attraction-rates', true)) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const arWrapper = makeElement('div', 'ar-wrapper');
|
|
342
|
+
const title = makeElement('div', 'ar-header');
|
|
343
|
+
const titleText = makeElement('div', 'ar-title', 'Attraction Rates');
|
|
344
|
+
title.append(titleText);
|
|
345
|
+
|
|
346
|
+
makeTooltip({
|
|
347
|
+
appendTo: titleText,
|
|
348
|
+
text: 'The best location and bait, according to data gathered by <a href="https://mhct.win/" target="_blank" rel="noreferrer">MHCT</a>.',
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
const link = makeElement('a', 'ar-link', 'View on MHCT →');
|
|
352
|
+
link.href = `https://api.mouse.rip/mhct-redirect/${mouseId}`;
|
|
353
|
+
link.target = '_blank';
|
|
354
|
+
title.append(link);
|
|
355
|
+
|
|
356
|
+
arWrapper.append(title);
|
|
357
|
+
|
|
358
|
+
let mhctJson = await getArForMouse(mouseId, 'mouse');
|
|
359
|
+
if (! mhctJson || mhctJson === undefined || mhctJson.length === 0 || 'error' in mhctJson) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
mhctJson = mhctJson.slice(0, 15);
|
|
364
|
+
|
|
365
|
+
const miceArWrapper = makeElement('div', 'mice-ar-wrapper');
|
|
366
|
+
const hasStages = mhctJson.some((mouseAr) => mouseAr.stage);
|
|
367
|
+
if (hasStages) {
|
|
368
|
+
miceArWrapper.classList.add('has-stages');
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
const calculateWidths = (weights) => {
|
|
372
|
+
weights = {
|
|
373
|
+
average: 0.8,
|
|
374
|
+
median: 0.5,
|
|
375
|
+
max: 0.4,
|
|
376
|
+
shortest: 0.9,
|
|
377
|
+
location: 0.4,
|
|
378
|
+
stage: 0.6,
|
|
379
|
+
cheese: 0.6,
|
|
380
|
+
keyWidth: 10,
|
|
381
|
+
...weights
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const availableWidth = 450 - 50 - 10 - (10 * 3) - (hasStages ? 10 : 0);
|
|
385
|
+
|
|
386
|
+
const calculateLengths = (key) => {
|
|
387
|
+
const keyLengths = mhctJson.map((mouseAr) => mouseAr[key]?.length || 0).filter((l) => l > 0);
|
|
388
|
+
keyLengths.sort((a, b) => a - b);
|
|
389
|
+
|
|
390
|
+
const totalLength = keyLengths.reduce((a, b) => a + b, 0);
|
|
391
|
+
const avgLength = totalLength / keyLengths.length;
|
|
392
|
+
const medianLength = keyLengths.length % 2 === 0
|
|
393
|
+
? (keyLengths[(keyLengths.length / 2) - 1] + keyLengths[keyLengths.length / 2]) / 2
|
|
394
|
+
: keyLengths[Math.floor(keyLengths.length / 2)];
|
|
395
|
+
|
|
396
|
+
return {
|
|
397
|
+
avg: avgLength * weights.keyWidth,
|
|
398
|
+
median: medianLength * weights.keyWidth,
|
|
399
|
+
max: Math.max(...keyLengths) * weights.keyWidth,
|
|
400
|
+
shortest: Math.min(...keyLengths) * weights.keyWidth,
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
const lengths = {
|
|
405
|
+
location: calculateLengths('location'),
|
|
406
|
+
stage: hasStages ? calculateLengths('stage') : { avg: 1, median: 1, max: 1, shortest: 1 },
|
|
407
|
+
cheese: calculateLengths('cheese'),
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
const weightedWidths = {
|
|
411
|
+
location: (
|
|
412
|
+
(lengths.location.avg * weights.average) +
|
|
413
|
+
(lengths.location.max * weights.max) +
|
|
414
|
+
(lengths.location.median * weights.median) +
|
|
415
|
+
(lengths.location.shortest * weights.shortest)
|
|
416
|
+
) * weights.location,
|
|
417
|
+
|
|
418
|
+
stage: hasStages ? (
|
|
419
|
+
(lengths.stage.avg * weights.average) +
|
|
420
|
+
(lengths.stage.max * weights.max) +
|
|
421
|
+
(lengths.stage.median * weights.median) +
|
|
422
|
+
(lengths.stage.shortest * weights.shortest)
|
|
423
|
+
) * weights.stage : 0,
|
|
424
|
+
|
|
425
|
+
cheese: (
|
|
426
|
+
(lengths.cheese.avg * weights.average) +
|
|
427
|
+
(lengths.cheese.max * weights.max) +
|
|
428
|
+
(lengths.cheese.median * weights.median) +
|
|
429
|
+
(lengths.cheese.shortest * weights.shortest)
|
|
430
|
+
) * weights.cheese,
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
const totalWeightedWidth = weightedWidths.location + weightedWidths.stage + weightedWidths.cheese;
|
|
434
|
+
|
|
435
|
+
const calculateOptimalWidth = (key) => {
|
|
436
|
+
const optimalWidth = (weightedWidths[key] / totalWeightedWidth) * availableWidth;
|
|
437
|
+
return Math.floor(optimalWidth);
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
return {
|
|
441
|
+
locationWidth: calculateOptimalWidth('location'),
|
|
442
|
+
stageWidth: hasStages ? calculateOptimalWidth('stage') : 0,
|
|
443
|
+
cheeseWidth: calculateOptimalWidth('cheese'),
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
let locationWidth, stageWidth, cheeseWidth;
|
|
448
|
+
if (! getFlag('better-mice-no-new-ar-widths')) {
|
|
449
|
+
const widths = calculateWidths();
|
|
450
|
+
locationWidth = widths.locationWidth;
|
|
451
|
+
stageWidth = widths.stageWidth;
|
|
452
|
+
cheeseWidth = widths.cheeseWidth;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
mhctJson.forEach((mouseAr) => {
|
|
456
|
+
const mouseArWrapper = makeElement('div', 'mouse-ar-wrapper');
|
|
457
|
+
if (! getFlag('better-mice-no-new-ar-widths')) {
|
|
458
|
+
mouseArWrapper.style.gridTemplateColumns = hasStages
|
|
459
|
+
? `${locationWidth}px ${stageWidth}px ${cheeseWidth}px 50px`
|
|
460
|
+
: `${locationWidth}px ${cheeseWidth}px 50px`;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
makeElement('div', 'location', mouseAr.location, mouseArWrapper);
|
|
464
|
+
|
|
465
|
+
if (hasStages) {
|
|
466
|
+
makeElement('div', 'stage', mouseAr.stage ? mouseAr.stage.replace('/', ' / ').replace(' / ', ' / ') : '', mouseArWrapper);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
makeElement('div', 'cheese', mouseAr.cheese, mouseArWrapper);
|
|
470
|
+
makeElement('div', 'rate', `${(mouseAr.rate / 100).toFixed(2)}%`, mouseArWrapper);
|
|
471
|
+
|
|
472
|
+
miceArWrapper.append(mouseArWrapper);
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
if (mhctJson.length > 0) {
|
|
476
|
+
arWrapper.append(miceArWrapper);
|
|
477
|
+
container.append(arWrapper);
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
let _original;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Replace the showMouseImage function to show the mouse view.
|
|
485
|
+
*/
|
|
486
|
+
const replaceShowMouseImage = () => {
|
|
487
|
+
if (_original) {
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
_original = hg.views.MouseCrownsView.showMouseImage;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Show the mouse view.
|
|
495
|
+
*
|
|
496
|
+
* @param {HTMLElement} element The element that was clicked.
|
|
497
|
+
*/
|
|
498
|
+
hg.views.MouseCrownsView.showMouseImage = (element) => {
|
|
499
|
+
const type = element.getAttribute('data-mouse-type');
|
|
500
|
+
if (type) {
|
|
501
|
+
hg.views.MouseView.show(type);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
_original(element);
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
const addShowMouseToNewJournalEntries = () => {
|
|
510
|
+
const newEntries = document.querySelectorAll('.newEntry');
|
|
511
|
+
if (! newEntries.length) {
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
newEntries.forEach((entry) => {
|
|
516
|
+
const mouseType = entry.getAttribute('data-mouse-type');
|
|
517
|
+
const journalImageLink = entry.querySelector('.journalimage a');
|
|
518
|
+
|
|
519
|
+
if (! mouseType || ! journalImageLink) {
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
journalImageLink.addEventListener('click', (e) => {
|
|
524
|
+
e.preventDefault();
|
|
525
|
+
hg.views.MouseView.show(mouseType);
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
let copyListener;
|
|
531
|
+
const copyKingsCrowns = () => {
|
|
532
|
+
copyListener?.remove();
|
|
533
|
+
copyListener = document.addEventListener('copy', (e) => {
|
|
534
|
+
// eslint-disable-next-line @wordpress/no-global-get-selection
|
|
535
|
+
if (window.getSelection && window.getSelection().toString().length > 0) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
const mice = document.querySelectorAll('.mouseCrownsView-group-mouse-padding');
|
|
540
|
+
if (! mice || ! mice.length) {
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
// Define the crown types and their thresholds
|
|
545
|
+
const crowns = [
|
|
546
|
+
{ name: 'Diamond Crown', min: 2500, max: Number.POSITIVE_INFINITY },
|
|
547
|
+
{ name: 'Platinum Crown', min: 1000, max: 2499 },
|
|
548
|
+
{ name: 'Gold Crown', min: 500, max: 999 },
|
|
549
|
+
{ name: 'Silver Crown', min: 100, max: 499 },
|
|
550
|
+
{ name: 'Bronze Crown', min: 10, max: 99 },
|
|
551
|
+
{ name: 'No Crown', min: 0, max: 9 }
|
|
552
|
+
];
|
|
553
|
+
|
|
554
|
+
// Prepare a map for each crown group
|
|
555
|
+
const grouped = crowns.map((crown) => ({
|
|
556
|
+
...crown,
|
|
557
|
+
mice: []
|
|
558
|
+
}));
|
|
559
|
+
|
|
560
|
+
// Collect mouse data and group by crown
|
|
561
|
+
mice.forEach((mouse) => {
|
|
562
|
+
const catches = Number.parseInt(mouse.querySelector('.mouseCrownsView-group-mouse-catches').innerText.replaceAll(',', ''), 10);
|
|
563
|
+
const name = mouse.querySelector('.mouseCrownsView-group-mouse-name').innerText.trim();
|
|
564
|
+
|
|
565
|
+
const group = grouped.find((crown) => catches >= crown.min && catches <= crown.max);
|
|
566
|
+
if (
|
|
567
|
+
group &&
|
|
568
|
+
group.mice &&
|
|
569
|
+
! group.mice.some((m) => m.name === name && m.catches === catches)
|
|
570
|
+
) {
|
|
571
|
+
group.mice.push({ catches, name });
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
|
|
575
|
+
// Sort each group by catches descending
|
|
576
|
+
grouped.forEach((group) => {
|
|
577
|
+
group.mice.sort((a, b) => b.catches - a.catches);
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
// Output format
|
|
581
|
+
const lines = [];
|
|
582
|
+
grouped.forEach((group) => {
|
|
583
|
+
if (group.mice.length === 0) {
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
lines.push(`${group.name} (${group.mice.length})`, `Earned at ${group.min.toLocaleString()} catches`);
|
|
587
|
+
group.mice.forEach((mouse) => {
|
|
588
|
+
lines.push(`${mouse.catches}`, `${mouse.name}`);
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
if (! lines.length) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
e.clipboardData.setData('text/plain', lines.join('\n'));
|
|
597
|
+
e.preventDefault();
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Run the module.
|
|
603
|
+
*/
|
|
604
|
+
const main = async () => {
|
|
605
|
+
onOverlayChange({ mouse: { show: updateMouseView } });
|
|
606
|
+
|
|
607
|
+
minlucks = await getData('minlucks');
|
|
608
|
+
wisdoms = await getData('wisdom');
|
|
609
|
+
|
|
610
|
+
addSubmenuItem({
|
|
611
|
+
menu: 'mice',
|
|
612
|
+
label: 'Groups',
|
|
613
|
+
icon: 'https://www.mousehuntgame.com/images/ui/hud/menu/mice.png',
|
|
614
|
+
href: 'https://www.mousehuntgame.com/adversaries.php?tab=groups',
|
|
615
|
+
});
|
|
616
|
+
|
|
617
|
+
addSubmenuItem({
|
|
618
|
+
menu: 'mice',
|
|
619
|
+
label: 'Regions',
|
|
620
|
+
icon: 'https://www.mousehuntgame.com/images/ui/hud/menu/travel.png',
|
|
621
|
+
href: 'https://www.mousehuntgame.com/adversaries.php?tab=regions',
|
|
622
|
+
});
|
|
623
|
+
|
|
624
|
+
addSubmenuItem({
|
|
625
|
+
menu: 'mice',
|
|
626
|
+
label: 'Your Stats (Groups)',
|
|
627
|
+
icon: 'https://www.mousehuntgame.com/images/ui/hud/menu/mice.png',
|
|
628
|
+
href: 'https://www.mousehuntgame.com/adversaries.php?tab=your_stats&sub_tab=group',
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
addSubmenuItem({
|
|
632
|
+
menu: 'mice',
|
|
633
|
+
label: 'Your Stats (Locations)',
|
|
634
|
+
icon: 'https://www.mousehuntgame.com/images/ui/hud/menu/travel.png',
|
|
635
|
+
href: 'https://www.mousehuntgame.com/adversaries.php?tab=your_stats&sub_tab=location',
|
|
636
|
+
});
|
|
637
|
+
|
|
638
|
+
addSubmenuItem({
|
|
639
|
+
menu: 'mice',
|
|
640
|
+
label: 'King\'s Crowns',
|
|
641
|
+
icon: 'https://www.mousehuntgame.com/images/ui/crowns/crown_silver.png',
|
|
642
|
+
href: 'https://www.mousehuntgame.com/adversaries.php?tab=kings_crowns',
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
let wisdoms;
|
|
647
|
+
let minlucks;
|
|
648
|
+
/**
|
|
649
|
+
* Initialize the module.
|
|
650
|
+
*/
|
|
651
|
+
const init = () => {
|
|
652
|
+
addStyles(styles, 'better-mice');
|
|
653
|
+
main();
|
|
654
|
+
mousePage();
|
|
655
|
+
|
|
656
|
+
if (getSetting('better-mice.show-mouse-hover', true)) {
|
|
657
|
+
excludeFromStandaloneUserscript: hoverMice();
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
if (getSetting('better-mice.show-mice-sidebar', true)) {
|
|
661
|
+
excludeFromStandaloneUserscript: sidebar();
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
replaceShowMouseImage();
|
|
665
|
+
|
|
666
|
+
onNavigation(copyKingsCrowns, {
|
|
667
|
+
page: 'hunterprofile',
|
|
668
|
+
subtab: 'kings_crowns',
|
|
669
|
+
tab: 'kings_crowns'
|
|
670
|
+
});
|
|
671
|
+
|
|
672
|
+
onNavigation(copyKingsCrowns, {
|
|
673
|
+
page: 'adversaries',
|
|
674
|
+
subtab: 'kings_crowns',
|
|
675
|
+
tab: 'kings_crowns'
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
onTurn(addShowMouseToNewJournalEntries, 100);
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Initialize the module.
|
|
683
|
+
*/
|
|
684
|
+
export default {
|
|
685
|
+
id: 'better-mice',
|
|
686
|
+
name: 'Better Mice',
|
|
687
|
+
type: 'better',
|
|
688
|
+
default: true,
|
|
689
|
+
description: 'Add attraction rate stats and links to MH Wiki and MHCT to mouse dialogs. Sort the mouse stats pages and add the King\'s Crown tab to the mouse pages.',
|
|
690
|
+
load: init,
|
|
691
|
+
settings,
|
|
692
|
+
};
|