mousehunt-improved 0.97.1 → 0.98.0
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/README.md +16 -16
- package/dist/mousehunt-improved.min.js +33 -0
- package/package.json +19 -15
- package/.editorconfig +0 -15
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -153
- package/.eslintrc.markdown.json +0 -11
- package/.gitattributes +0 -7
- package/.github/dependabot.yml +0 -18
- package/.github/workflows/ci.yml +0 -29
- package/.github/workflows/lint.yml +0 -24
- package/.github/workflows/publish.yml +0 -215
- package/.stylelintrc.json +0 -51
- package/.vscode/tasks.json +0 -37
- package/CHANGELOG.md +0 -3853
- package/CONTRIBUTING.md +0 -317
- package/bun.lock +0 -2298
- package/docs/adblock.md +0 -3
- package/docs/better-gifts.md +0 -15
- package/docs/better-inventory.md +0 -19
- package/docs/better-items.md +0 -13
- package/docs/better-journal.md +0 -26
- package/docs/better-kings-reward.md +0 -5
- package/docs/better-maps.md +0 -35
- package/docs/better-marketplace.md +0 -16
- package/docs/better-mice.md +0 -19
- package/docs/better-quests.md +0 -14
- package/docs/better-send-supplies.md +0 -15
- package/docs/better-shops.md +0 -15
- package/docs/better-tournaments.md +0 -13
- package/docs/better-travel.md +0 -20
- package/docs/better-ui.md +0 -30
- package/docs/big-timer.md +0 -3
- package/docs/catch-rate-estimator-and-minlucks.md +0 -9
- package/docs/codex-at-bottom.md +0 -3
- package/docs/copy-id-button.md +0 -7
- package/docs/custom-background.md +0 -71
- package/docs/custom-camp-background.md +0 -73
- package/docs/custom-horn.md +0 -28
- package/docs/custom-hud.md +0 -67
- package/docs/custom-shield.md +0 -77
- package/docs/custom-styles.md +0 -3
- package/docs/dark-mode-updates-and-tweaks.md +0 -3
- package/docs/dark-mode.md +0 -3
- package/docs/data-exporters.md +0 -21
- package/docs/debug-logging.md +0 -49
- package/docs/delayed-menus.md +0 -3
- package/docs/delayed-tooltips.md +0 -3
- package/docs/emotes.md +0 -111
- package/docs/experiments.md +0 -14
- package/docs/favorite-setups.md +0 -10
- package/docs/feature-flags.md +0 -90
- package/docs/fixes.md +0 -32
- package/docs/flrt-helper.md +0 -8
- package/docs/hide-codices.md +0 -3
- package/docs/hide-daily-draw.md +0 -3
- package/docs/hide-daily-reward-popup.md +0 -3
- package/docs/hide-footer.md +0 -3
- package/docs/hide-news-ticker.md +0 -3
- package/docs/hide-share-buttons.md +0 -3
- package/docs/hide-sidebar.md +0 -3
- package/docs/hover-profiles.md +0 -3
- package/docs/image-upscaling-and-transparency.md +0 -5
- package/docs/inline-wiki.md +0 -3
- package/docs/inventory-lock-and-hide.md +0 -9
- package/docs/inventory-only-open-multiple.md +0 -9
- package/docs/inventory-open-all-but-one.md +0 -8
- package/docs/inventory-open-all.md +0 -8
- package/docs/journal-privacy.md +0 -8
- package/docs/journal-theme-changer.md +0 -13
- package/docs/keyboard-shortcuts.md +0 -42
- package/docs/larger-codices.md +0 -3
- package/docs/larger-skin-images.md +0 -3
- package/docs/legacy-hud.md +0 -9
- package/docs/location-catch-stats.md +0 -3
- package/docs/location-dashboard.md +0 -89
- package/docs/lucky-golden-shield-duration-and-reminder.md +0 -8
- package/docs/metric-units.md +0 -3
- package/docs/paste-hunter-id.md +0 -5
- package/docs/prestige-base-stats.md +0 -3
- package/docs/printing-press-paper-counter.md +0 -3
- package/docs/quick-filters-and-sort.md +0 -8
- package/docs/quick-send-supplies.md +0 -8
- package/docs/replace-favicon.md +0 -3
- package/docs/scoreboard-search-on-profiles.md +0 -3
- package/docs/shield-goes-to-camp.md +0 -3
- package/docs/show-adventure-book.md +0 -7
- package/docs/show-auras.md +0 -13
- package/docs/ssdb-toothlet-counter.md +0 -3
- package/docs/taller-windows.md +0 -3
- package/docs/tem-crowns.md +0 -3
- package/docs/trap-selector-special-effects.md +0 -8
- package/docs/ultimate-checkmark.md +0 -9
- package/docs/unique-loot-count.md +0 -7
- package/docs/wisdom-in-stat-bar.md +0 -12
- package/jsconfig.json +0 -17
- package/scripts/build-extension.mjs +0 -119
- package/scripts/build-userscript.mjs +0 -73
- package/scripts/build.mjs +0 -106
- package/scripts/fetch-external-files.mjs +0 -26
- package/scripts/fix-map-groups.mjs +0 -146
- package/scripts/get-changelog.mjs +0 -10
- package/scripts/get-version.mjs +0 -2
- package/scripts/release +0 -29
- package/scripts/shared.mjs +0 -135
- package/src/data/backgrounds.json +0 -47
- package/src/data/crafting-recipe-mapping.json +0 -87
- package/src/data/cre-mice-groups.json +0 -148
- package/src/data/journal-item-colors.json +0 -110
- package/src/data/journals-environment-mapping.json +0 -24
- package/src/data/journals-events.json +0 -58
- package/src/data/magic-essence-potions.json +0 -28
- package/src/data/map-groups.json +0 -3737
- package/src/data/ultimate-checkmark.json +0 -407
- package/src/data/update-summary.json +0 -48
- package/src/extension/content.js +0 -29
- 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 +0 -55
- package/src/extension/popup.html +0 -50
- 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 +0 -266
- package/src/modules/adblock/index.js +0 -22
- package/src/modules/adblock/styles.css +0 -31
- package/src/modules/better-gifts/index.js +0 -568
- package/src/modules/better-gifts/settings/index.js +0 -80
- package/src/modules/better-gifts/styles.css +0 -593
- package/src/modules/better-inventory/index.js +0 -522
- package/src/modules/better-inventory/modules/recipes/index.js +0 -318
- package/src/modules/better-inventory/modules/recipes/styles.css +0 -30
- package/src/modules/better-inventory/settings/index.js +0 -24
- package/src/modules/better-inventory/styles/double-width-item.css +0 -21
- package/src/modules/better-inventory/styles/full-width-item.css +0 -27
- package/src/modules/better-inventory/styles/larger-images.css +0 -17
- package/src/modules/better-inventory/styles/styles.css +0 -704
- package/src/modules/better-inventory/styles/tiny-group.css +0 -83
- package/src/modules/better-item-view/index.js +0 -454
- package/src/modules/better-item-view/modules/hover-item/index.js +0 -211
- package/src/modules/better-item-view/modules/hover-item/styles.css +0 -57
- package/src/modules/better-item-view/settings/index.js +0 -19
- package/src/modules/better-item-view/styles.css +0 -406
- package/src/modules/better-journal/index.js +0 -81
- package/src/modules/better-journal/modules/journal-full-mice-images/index.js +0 -64
- package/src/modules/better-journal/modules/journal-full-mice-images/styles.css +0 -99
- package/src/modules/better-journal/modules/journal-gold-and-points/index.js +0 -57
- package/src/modules/better-journal/modules/journal-gold-and-points/styles.css +0 -21
- package/src/modules/better-journal/modules/journal-highlight-rare-mice/index.js +0 -10
- package/src/modules/better-journal/modules/journal-highlight-rare-mice/styles.css +0 -5
- package/src/modules/better-journal/modules/journal-history/index.js +0 -396
- package/src/modules/better-journal/modules/journal-history/styles.css +0 -36
- package/src/modules/better-journal/modules/journal-icons/index.js +0 -17
- package/src/modules/better-journal/modules/journal-icons/styles.css +0 -58
- package/src/modules/better-journal/modules/journal-icons-minimal/index.js +0 -10
- package/src/modules/better-journal/modules/journal-icons-minimal/styles.css +0 -78
- package/src/modules/better-journal/modules/journal-item-colors/index.js +0 -19
- package/src/modules/better-journal/modules/journal-list/index.js +0 -407
- package/src/modules/better-journal/modules/journal-list/styles.css +0 -29
- package/src/modules/better-journal/modules/journal-replacements/index.js +0 -430
- package/src/modules/better-journal/modules/journal-replacements/styles.css +0 -15
- package/src/modules/better-journal/modules/journal-styles/index.js +0 -89
- package/src/modules/better-journal/modules/journal-styles/styles/backgrounds.css +0 -71
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/aura.css +0 -15
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/badge.css +0 -85
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/alchemist-cookbook.css +0 -8
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/gem.css +0 -30
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/paper.css +0 -3
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/base/ssdb.css +0 -3
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/bonus.css +0 -22
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/catch.css +0 -4
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/failure.css +0 -6
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/lucky.css +0 -4
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/catch/prize.css +0 -8
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/gilded.css +0 -9
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/rift-vacuum.css +0 -8
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/torch.css +0 -18
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/ultimate.css +0 -21
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/charm/unstable.css +0 -28
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/draw-winner.css +0 -19
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/events.css +0 -41
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/gwh.css +0 -3
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/kga.css +0 -16
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/larry-gift.css +0 -25
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/birthday.css +0 -48
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/brift.css +0 -6
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/bwrift.css +0 -13
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/floating-islands.css +0 -12
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/folklore-forest.css +0 -57
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frift.css +0 -46
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/frox.css +0 -5
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/garden.css +0 -14
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/halloween.css +0 -7
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/harbour.css +0 -11
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/iceberg.css +0 -38
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/labyrinth.css +0 -34
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/mousoleum.css +0 -5
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/queso.css +0 -28
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/school.css +0 -18
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/toxic-spill.css +0 -13
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/vrift.css +0 -12
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/location/wwrift.css +0 -33
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/maps.css +0 -8
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/glazy.css +0 -10
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/stuck-snowball.css +0 -3
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/mouse/valentines.css +0 -10
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/other.css +0 -34
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/popup.css +0 -10
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/rank-up.css +0 -57
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/social-gift.css +0 -27
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/tournaments.css +0 -14
- package/src/modules/better-journal/modules/journal-styles/styles/custom-entries/ultimate.css +0 -7
- package/src/modules/better-journal/modules/journal-styles/styles/date-hiding.css +0 -74
- package/src/modules/better-journal/modules/journal-styles/styles/fullstop.css +0 -101
- package/src/modules/better-journal/modules/journal-styles/styles/general.css +0 -321
- package/src/modules/better-journal/modules/journal-styles/styles/progress-log.css +0 -217
- package/src/modules/better-journal/modules/journal-tags/index.js +0 -10
- package/src/modules/better-journal/modules/journal-tags/styles.css +0 -100
- package/src/modules/better-journal/settings/index.js +0 -56
- package/src/modules/better-journal/styles/list-and-icons.css +0 -3
- package/src/modules/better-journal/styles/styles.css +0 -15
- package/src/modules/better-kings-reward/index.js +0 -69
- package/src/modules/better-kings-reward/styles.css +0 -33
- package/src/modules/better-maps/index.js +0 -557
- package/src/modules/better-maps/modules/catch-dates.js +0 -78
- package/src/modules/better-maps/modules/community.js +0 -167
- package/src/modules/better-maps/modules/consolation-prizes.js +0 -30
- package/src/modules/better-maps/modules/draggable-highlight.js +0 -80
- package/src/modules/better-maps/modules/floating-islands.js +0 -209
- package/src/modules/better-maps/modules/highlighting.js +0 -277
- package/src/modules/better-maps/modules/preview.js +0 -66
- package/src/modules/better-maps/modules/scrolls.js +0 -183
- package/src/modules/better-maps/modules/shops.js +0 -170
- package/src/modules/better-maps/modules/sidebar.js +0 -203
- package/src/modules/better-maps/modules/tab-goals.js +0 -816
- package/src/modules/better-maps/modules/tab-hunters.js +0 -323
- package/src/modules/better-maps/modules/tab-invites.js +0 -66
- package/src/modules/better-maps/modules/tab-sorted.js +0 -818
- package/src/modules/better-maps/modules/toggle-ar.js +0 -237
- package/src/modules/better-maps/settings/index.js +0 -32
- package/src/modules/better-maps/styles/catch-dates.css +0 -23
- package/src/modules/better-maps/styles/draggable.css +0 -12
- package/src/modules/better-maps/styles/general.css +0 -1092
- package/src/modules/better-maps/styles/helper.css +0 -29
- package/src/modules/better-maps/styles/highlight-for-map.css +0 -19
- package/src/modules/better-maps/styles/hunters.css +0 -191
- package/src/modules/better-maps/styles/invites.css +0 -50
- package/src/modules/better-maps/styles/map-ar.css +0 -95
- package/src/modules/better-maps/styles/mhct.css +0 -145
- package/src/modules/better-maps/styles/overlays.css +0 -15
- package/src/modules/better-maps/styles/rewards.css +0 -206
- package/src/modules/better-maps/styles/scroll-shop.css +0 -241
- package/src/modules/better-maps/styles/sidebar.css +0 -105
- package/src/modules/better-maps/styles/sorted-map.css +0 -11
- package/src/modules/better-maps/styles/sorted.css +0 -351
- package/src/modules/better-maps/styles/userscripts.css +0 -70
- package/src/modules/better-maps/utils.js +0 -82
- package/src/modules/better-marketplace/index.js +0 -669
- package/src/modules/better-marketplace/settings/index.js +0 -29
- package/src/modules/better-marketplace/styles/quick-sell.css +0 -27
- package/src/modules/better-marketplace/styles/small-images.css +0 -5
- package/src/modules/better-marketplace/styles/styles.css +0 -261
- package/src/modules/better-marketplace/styles/trend-numbers.css +0 -37
- package/src/modules/better-mice/index.js +0 -692
- package/src/modules/better-mice/modules/hover-mice/index.js +0 -236
- package/src/modules/better-mice/modules/hover-mice/styles.css +0 -101
- package/src/modules/better-mice/modules/mouse-page/index.js +0 -559
- package/src/modules/better-mice/modules/sidebar/index.js +0 -110
- package/src/modules/better-mice/modules/sidebar/styles.css +0 -43
- package/src/modules/better-mice/settings/index.js +0 -24
- package/src/modules/better-mice/styles.css +0 -409
- package/src/modules/better-quests/index.js +0 -519
- package/src/modules/better-quests/modules/m400/index.js +0 -139
- package/src/modules/better-quests/settings/index.js +0 -13
- package/src/modules/better-quests/styles.css +0 -223
- package/src/modules/better-send-supplies/index.js +0 -361
- package/src/modules/better-send-supplies/settings/index.js +0 -45
- package/src/modules/better-send-supplies/styles.css +0 -316
- package/src/modules/better-shops/index.js +0 -234
- package/src/modules/better-shops/modules/hide-max-owned/styles.css +0 -10
- package/src/modules/better-shops/modules/quantity-buttons/index.js +0 -56
- package/src/modules/better-shops/modules/quantity-buttons/styles.css +0 -38
- package/src/modules/better-shops/settings/index.js +0 -19
- package/src/modules/better-shops/styles/cost.css +0 -135
- package/src/modules/better-shops/styles/general.css +0 -701
- package/src/modules/better-shops/styles/order.css +0 -21
- package/src/modules/better-shops/styles/retired.css +0 -11
- package/src/modules/better-shops/styles/riftstalker.css +0 -48
- package/src/modules/better-shops/styles/stats.css +0 -71
- package/src/modules/better-tournaments/index.js +0 -282
- package/src/modules/better-tournaments/settings/index.js +0 -12
- package/src/modules/better-tournaments/styles.css +0 -773
- package/src/modules/better-travel/index.js +0 -868
- package/src/modules/better-travel/modules/reminders/index.js +0 -169
- package/src/modules/better-travel/modules/travel-window/index.js +0 -380
- package/src/modules/better-travel/modules/travel-window/styles.css +0 -142
- package/src/modules/better-travel/settings/index.js +0 -34
- package/src/modules/better-travel/styles/explore-map.css +0 -66
- package/src/modules/better-travel/styles/styles.css +0 -421
- package/src/modules/better-travel/styles/travel-menu-hiding.css +0 -4
- package/src/modules/better-travel/utils.js +0 -28
- package/src/modules/better-ui/index.js +0 -71
- package/src/modules/better-ui/modules/adventure-book/index.js +0 -28
- package/src/modules/better-ui/modules/codex-at-bottom/index.js +0 -24
- package/src/modules/better-ui/modules/egg-master/index.js +0 -51
- package/src/modules/better-ui/modules/friends/index.js +0 -141
- package/src/modules/better-ui/modules/hud/index.js +0 -108
- package/src/modules/better-ui/modules/kings-promo/index.js +0 -15
- package/src/modules/better-ui/modules/larger-codices/index.js +0 -10
- package/src/modules/better-ui/modules/larger-codices/styles.css +0 -57
- package/src/modules/better-ui/modules/larger-skin-images/index.js +0 -148
- package/src/modules/better-ui/modules/larger-skin-images/styles.css +0 -21
- package/src/modules/better-ui/modules/legacy-styles/index.js +0 -9
- package/src/modules/better-ui/modules/legacy-styles/styles.css +0 -20
- package/src/modules/better-ui/modules/maintenance/index.js +0 -49
- package/src/modules/better-ui/modules/random-skin-button/index.js +0 -58
- package/src/modules/better-ui/modules/random-skin-button/styles.css +0 -16
- package/src/modules/better-ui/modules/show-unowned-skins/index.js +0 -109
- package/src/modules/better-ui/modules/show-unowned-skins/styles.css +0 -7
- package/src/modules/better-ui/modules/skin-preview-base/index.js +0 -24
- package/src/modules/better-ui/modules/trap-gradient-background/index.js +0 -10
- package/src/modules/better-ui/modules/trap-gradient-background/styles.css +0 -10
- package/src/modules/better-ui/modules/userscripts-styles/index.js +0 -40
- package/src/modules/better-ui/modules/userscripts-styles/styles/any-trap-any-skin.css +0 -52
- package/src/modules/better-ui/modules/userscripts-styles/styles/favorite-setups.css +0 -4
- package/src/modules/better-ui/modules/userscripts-styles/styles/journal-historian.css +0 -14
- package/src/modules/better-ui/modules/userscripts-styles/styles/lgs-reminder.css +0 -16
- package/src/modules/better-ui/modules/userscripts-styles/styles/profile-plus.css +0 -172
- package/src/modules/better-ui/modules/userscripts-styles/styles/spring-egg-hunt-helper.css +0 -5
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-autoloader.css +0 -91
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-location-catch-stats.css +0 -166
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-qol.css +0 -21
- package/src/modules/better-ui/modules/userscripts-styles/styles/tsitu-supply-search.css +0 -33
- package/src/modules/better-ui/settings/index.js +0 -50
- package/src/modules/better-ui/styles/adventure.css +0 -380
- package/src/modules/better-ui/styles/buttons.css +0 -91
- package/src/modules/better-ui/styles/corkboard.css +0 -184
- package/src/modules/better-ui/styles/daily-draw.css +0 -203
- package/src/modules/better-ui/styles/events.css +0 -233
- package/src/modules/better-ui/styles/footer.css +0 -121
- package/src/modules/better-ui/styles/friends.css +0 -232
- package/src/modules/better-ui/styles/general.css +0 -525
- package/src/modules/better-ui/styles/gifts.css +0 -108
- package/src/modules/better-ui/styles/horn.css +0 -51
- package/src/modules/better-ui/styles/hud.css +0 -131
- package/src/modules/better-ui/styles/inbox.css +0 -278
- package/src/modules/better-ui/styles/le.css +0 -28
- package/src/modules/better-ui/styles/legacy.css +0 -25
- package/src/modules/better-ui/styles/login.css +0 -51
- package/src/modules/better-ui/styles/maintence.css +0 -49
- package/src/modules/better-ui/styles/mobile-camp.css +0 -36
- package/src/modules/better-ui/styles/news.css +0 -126
- package/src/modules/better-ui/styles/overlays.css +0 -274
- package/src/modules/better-ui/styles/profile.css +0 -795
- package/src/modules/better-ui/styles/ronza.css +0 -25
- package/src/modules/better-ui/styles/scoreboards.css +0 -50
- package/src/modules/better-ui/styles/scrambles.css +0 -84
- package/src/modules/better-ui/styles/select2.css +0 -47
- package/src/modules/better-ui/styles/settings.css +0 -22
- package/src/modules/better-ui/styles/sidebar.css +0 -15
- package/src/modules/better-ui/styles/skins.css +0 -4
- package/src/modules/better-ui/styles/tabs.css +0 -235
- package/src/modules/better-ui/styles/team.css +0 -177
- package/src/modules/better-ui/styles/timer.css +0 -14
- package/src/modules/better-ui/styles/trap-selector.css +0 -124
- package/src/modules/better-ui/styles/traps.css +0 -643
- package/src/modules/better-ui/styles/tutorial.css +0 -63
- package/src/modules/better-ui/styles/ui-page.css +0 -178
- package/src/modules/big-timer/index.js +0 -42
- package/src/modules/big-timer/legacy-styles.css +0 -19
- package/src/modules/big-timer/styles.css +0 -18
- package/src/modules/catch-rate-estimate/data.js +0 -458
- package/src/modules/catch-rate-estimate/index.js +0 -413
- package/src/modules/catch-rate-estimate/settings/index.js +0 -12
- package/src/modules/catch-rate-estimate/styles.css +0 -213
- package/src/modules/copy-id/index.js +0 -91
- package/src/modules/copy-id/settings/index.js +0 -13
- package/src/modules/copy-id/styles.css +0 -26
- package/src/modules/custom-background/index.js +0 -179
- package/src/modules/custom-background/settings/index.js +0 -60
- package/src/modules/custom-background/styles.css +0 -135
- package/src/modules/custom-camp-background/index.js +0 -83
- package/src/modules/custom-camp-background/settings/index.js +0 -52
- package/src/modules/custom-camp-background/styles.css +0 -57
- package/src/modules/custom-css/index.js +0 -50
- package/src/modules/custom-css/settings/index.js +0 -16
- package/src/modules/custom-horn/index.js +0 -244
- package/src/modules/custom-horn/settings/index.js +0 -60
- package/src/modules/custom-horn/styles.css +0 -107
- package/src/modules/custom-hud/index.js +0 -130
- package/src/modules/custom-hud/settings/index.js +0 -49
- package/src/modules/custom-hud/styles/blueprint.css +0 -13
- package/src/modules/custom-hud/styles/groovy-green.css +0 -6
- package/src/modules/custom-hud/styles/midnight.css +0 -23
- package/src/modules/custom-hud/styles/suede.css +0 -10
- package/src/modules/custom-shield/cotton-candy.css +0 -38
- package/src/modules/custom-shield/index.js +0 -267
- package/src/modules/custom-shield/settings/index.js +0 -156
- package/src/modules/custom-shield/styles.css +0 -423
- package/src/modules/dark-mode-tweaks/index.js +0 -69
- package/src/modules/dark-mode-tweaks/journal-entries.css +0 -17
- package/src/modules/dark-mode-tweaks/styles.css +0 -401
- package/src/modules/data-exporters/exporters/export-favorite-setups-userscript.js +0 -78
- package/src/modules/data-exporters/exporters/export-favorite-setups.js +0 -63
- package/src/modules/data-exporters/exporters/export-inventory.js +0 -115
- package/src/modules/data-exporters/exporters/export-journal-entries.js +0 -61
- package/src/modules/data-exporters/exporters/export-kings-crowns.js +0 -71
- package/src/modules/data-exporters/exporters/export-marketplace.js +0 -112
- package/src/modules/data-exporters/exporters/export-mice.js +0 -287
- package/src/modules/data-exporters/exporters/export-rankup-forecaster.js +0 -51
- package/src/modules/data-exporters/exporters/export-scoreboards.js +0 -100
- package/src/modules/data-exporters/index.js +0 -147
- package/src/modules/data-exporters/styles.css +0 -113
- package/src/modules/data-exporters/utils.js +0 -355
- package/src/modules/debug/index.js +0 -172
- package/src/modules/debug/settings/index.js +0 -53
- package/src/modules/delayed-menus/index.js +0 -19
- package/src/modules/delayed-menus/styles.css +0 -4
- package/src/modules/delayed-tooltips/index.js +0 -36
- package/src/modules/delayed-tooltips/styles.css +0 -12
- package/src/modules/emotes/emotes.json +0 -107
- package/src/modules/emotes/index.js +0 -53
- package/src/modules/emotes/styles.css +0 -3
- package/src/modules/error-reporting/index.js +0 -12
- package/src/modules/experiments/index.js +0 -134
- package/src/modules/experiments/modules/fabled-custom-title/index.js +0 -143
- package/src/modules/experiments/modules/fabled-max-title-progress-bar/index.js +0 -18
- package/src/modules/experiments/modules/fabled-max-title-progress-bar/styles.css +0 -8
- package/src/modules/experiments/modules/fabled-random-title/index.js +0 -814
- package/src/modules/experiments/modules/fabled-random-title/styles.css +0 -9
- package/src/modules/experiments/modules/full-mice-images-no-border/index.js +0 -22
- package/src/modules/experiments/modules/full-mice-images-no-border/styles.css +0 -26
- package/src/modules/experiments/modules/gift-button-opens-gift-selector/index.js +0 -31
- package/src/modules/experiments/modules/memory-game/index.js +0 -100
- package/src/modules/experiments/modules/real-base-stats/index.js +0 -100
- package/src/modules/experiments/modules/settings-options.css +0 -31
- package/src/modules/experiments/modules/sort-daily-draw-reverse/index.js +0 -68
- package/src/modules/experiments/modules/square-profile-pics/index.js +0 -17
- package/src/modules/experiments/modules/square-profile-pics/styles.css +0 -13
- package/src/modules/favorite-setups/index.js +0 -1431
- package/src/modules/favorite-setups/settings/index.js +0 -25
- package/src/modules/favorite-setups/styles.css +0 -471
- package/src/modules/feature-flags/index.js +0 -36
- package/src/modules/feature-flags/modules/fake-fabled.js +0 -7
- package/src/modules/feature-flags/modules/rank-up-forecaster.js +0 -198
- package/src/modules/feature-flags/modules/social.js +0 -37
- package/src/modules/feature-flags/settings/index.js +0 -16
- package/src/modules/fixes/index.js +0 -33
- package/src/modules/fixes/modules/item-page.js +0 -115
- package/src/modules/fixes/modules/marketplace-buy-button.js +0 -17
- package/src/modules/fixes/modules/passing-parcel.js +0 -84
- package/src/modules/fixes/modules/rift-tooltip-quantities.js +0 -30
- package/src/modules/fixes/styles/accessibility.css +0 -20
- package/src/modules/fixes/styles/backgrounds.css +0 -89
- package/src/modules/fixes/styles/bountiful-beanstalk.css +0 -4
- package/src/modules/fixes/styles/buttons.css +0 -3
- package/src/modules/fixes/styles/claim-gift.css +0 -4
- package/src/modules/fixes/styles/colors.css +0 -69
- package/src/modules/fixes/styles/convertibles.css +0 -9
- package/src/modules/fixes/styles/discord.css +0 -4
- package/src/modules/fixes/styles/dropdown.css +0 -23
- package/src/modules/fixes/styles/events.css +0 -3
- package/src/modules/fixes/styles/fb-img-size.css +0 -10
- package/src/modules/fixes/styles/font-sizes.css +0 -8
- package/src/modules/fixes/styles/footer.css +0 -5
- package/src/modules/fixes/styles/hud-shadow.css +0 -8
- package/src/modules/fixes/styles/hunter-title.css +0 -11
- package/src/modules/fixes/styles/image.css +0 -4
- package/src/modules/fixes/styles/labyrinth.css +0 -10
- package/src/modules/fixes/styles/location-names-overflow.css +0 -14
- package/src/modules/fixes/styles/maps.css +0 -15
- package/src/modules/fixes/styles/menu.css +0 -11
- package/src/modules/fixes/styles/news-back.css +0 -17
- package/src/modules/fixes/styles/other.css +0 -14
- package/src/modules/fixes/styles/preferences.css +0 -16
- package/src/modules/fixes/styles/queso.css +0 -4
- package/src/modules/fixes/styles/ronza.css +0 -5
- package/src/modules/fixes/styles/scoreboard.css +0 -5
- package/src/modules/fixes/styles/tabs.css +0 -38
- package/src/modules/fixes/styles/tem.css +0 -10
- package/src/modules/fixes/styles/tooltips.css +0 -24
- package/src/modules/fixes/styles/tutorial-overlay.css +0 -16
- package/src/modules/flrt-helper/index.js +0 -230
- package/src/modules/flrt-helper/styles.css +0 -235
- package/src/modules/global-styles/index.js +0 -21
- package/src/modules/global-styles/styles/animations.css +0 -194
- package/src/modules/global-styles/styles/blueprint.css +0 -11
- package/src/modules/global-styles/styles/buttons.css +0 -88
- package/src/modules/global-styles/styles/favorite-button.css +0 -30
- package/src/modules/global-styles/styles/game-info-bar.css +0 -11
- package/src/modules/global-styles/styles/general.css +0 -55
- package/src/modules/global-styles/styles/horn-message.css +0 -61
- package/src/modules/global-styles/styles/messages.css +0 -49
- package/src/modules/global-styles/styles/settings.css +0 -84
- package/src/modules/global-styles/styles/tooltips.css +0 -22
- package/src/modules/global-styles/styles/trap-qty.css +0 -45
- package/src/modules/global-styles/styles/utility.css +0 -39
- package/src/modules/hide-codices/index.js +0 -22
- package/src/modules/hide-codices/styles.css +0 -4
- package/src/modules/hide-daily-draw/index.js +0 -146
- package/src/modules/hide-daily-draw/styles.css +0 -3
- package/src/modules/hide-daily-reward-popup/index.js +0 -57
- package/src/modules/hide-footer/index.js +0 -37
- package/src/modules/hide-footer/styles.css +0 -10
- package/src/modules/hide-news-ticker/index.js +0 -21
- package/src/modules/hide-news-ticker/styles.css +0 -3
- package/src/modules/hide-share/index.js +0 -26
- package/src/modules/hide-share/styles.css +0 -29
- package/src/modules/hide-sidebar/index.js +0 -106
- package/src/modules/hide-sidebar/styles.css +0 -102
- package/src/modules/hover-profiles/index.js +0 -402
- package/src/modules/hover-profiles/styles.css +0 -247
- package/src/modules/image-upscaling/index.js +0 -375
- package/src/modules/image-upscaling/styles.css +0 -265
- package/src/modules/image-upscaling/views.css +0 -270
- package/src/modules/inline-wiki/index.js +0 -111
- package/src/modules/inline-wiki/styles.css +0 -9
- package/src/modules/inventory-buttons/index.js +0 -163
- package/src/modules/inventory-buttons/settings/index.js +0 -29
- package/src/modules/inventory-buttons/styles/only-open-multiple.css +0 -20
- package/src/modules/inventory-lock-and-hide/index.js +0 -641
- package/src/modules/inventory-lock-and-hide/styles.css +0 -139
- package/src/modules/journal-changer/index.js +0 -321
- package/src/modules/journal-changer/settings/index.js +0 -19
- package/src/modules/journal-changer/styles.css +0 -21
- package/src/modules/journal-privacy/index.js +0 -219
- package/src/modules/journal-privacy/settings/index.js +0 -19
- package/src/modules/journal-privacy/styles/icon.css +0 -31
- package/src/modules/journal-privacy/styles/styles.css +0 -30
- package/src/modules/journal-privacy/styles/transparent.css +0 -30
- package/src/modules/keyboard-shortcuts/actions.js +0 -213
- package/src/modules/keyboard-shortcuts/index.js +0 -521
- package/src/modules/keyboard-shortcuts/styles.css +0 -110
- package/src/modules/legacy-hud/index.js +0 -314
- package/src/modules/legacy-hud/settings/index.js +0 -24
- package/src/modules/legacy-hud/styles/menu.css +0 -19
- package/src/modules/legacy-hud/styles/stats.css +0 -18
- package/src/modules/legacy-hud/styles/styles.css +0 -3
- package/src/modules/legacy-hud/styles/tweaks.css +0 -60
- package/src/modules/lgs-reminder/index.js +0 -229
- package/src/modules/lgs-reminder/settings/index.js +0 -17
- package/src/modules/lgs-reminder/styles.css +0 -85
- package/src/modules/links/index.js +0 -69
- package/src/modules/location-catch-stats/crown-colored-rows.css +0 -47
- package/src/modules/location-catch-stats/index.js +0 -234
- package/src/modules/location-catch-stats/settings/index.js +0 -17
- package/src/modules/location-catch-stats/styles.css +0 -125
- package/src/modules/location-dashboard/index.js +0 -536
- package/src/modules/location-dashboard/locations/afterword-acres.js +0 -18
- package/src/modules/location-dashboard/locations/ancient-city.js +0 -23
- package/src/modules/location-dashboard/locations/bountiful-beanstalk.js +0 -51
- package/src/modules/location-dashboard/locations/desert-oasis.js +0 -22
- package/src/modules/location-dashboard/locations/desert-warpath.js +0 -58
- package/src/modules/location-dashboard/locations/draconic-depths.js +0 -52
- package/src/modules/location-dashboard/locations/epilogue-falls.js +0 -40
- package/src/modules/location-dashboard/locations/floating-islands.js +0 -74
- package/src/modules/location-dashboard/locations/foreword-farm.js +0 -45
- package/src/modules/location-dashboard/locations/fort-rox.js +0 -39
- package/src/modules/location-dashboard/locations/iceberg.js +0 -16
- package/src/modules/location-dashboard/locations/labyrinth.js +0 -38
- package/src/modules/location-dashboard/locations/lost-city.js +0 -28
- package/src/modules/location-dashboard/locations/mousoleum.js +0 -20
- package/src/modules/location-dashboard/locations/moussu-picchu.js +0 -29
- package/src/modules/location-dashboard/locations/pollution-outbreak.js +0 -18
- package/src/modules/location-dashboard/locations/queso-geyser.js +0 -16
- package/src/modules/location-dashboard/locations/rift-bristle-woods.js +0 -28
- package/src/modules/location-dashboard/locations/rift-burroughs.js +0 -14
- package/src/modules/location-dashboard/locations/rift-furoma.js +0 -50
- package/src/modules/location-dashboard/locations/rift-valour.js +0 -30
- package/src/modules/location-dashboard/locations/sand-dunes.js +0 -21
- package/src/modules/location-dashboard/locations/school-of-sorcery.js +0 -29
- package/src/modules/location-dashboard/locations/seasonal-garden.js +0 -46
- package/src/modules/location-dashboard/locations/sunken-city.js +0 -25
- package/src/modules/location-dashboard/locations/table-of-contents.js +0 -20
- package/src/modules/location-dashboard/locations/whisker-woods-rift.js +0 -15
- package/src/modules/location-dashboard/locations/zugzwang-tower.js +0 -81
- package/src/modules/location-dashboard/styles.css +0 -389
- package/src/modules/location-huds/index.js +0 -261
- package/src/modules/location-huds/locations/acolyte-realm/index.js +0 -13
- package/src/modules/location-huds/locations/afterword-acres/index.js +0 -14
- package/src/modules/location-huds/locations/afterword-acres/styles.css +0 -21
- package/src/modules/location-huds/locations/ancient-city/index.js +0 -197
- package/src/modules/location-huds/locations/ancient-city/styles.css +0 -251
- package/src/modules/location-huds/locations/balacks-cove/index.js +0 -81
- package/src/modules/location-huds/locations/balacks-cove/styles.css +0 -12
- package/src/modules/location-huds/locations/bazaar/index.js +0 -8
- package/src/modules/location-huds/locations/bountiful-beanstalk/index.js +0 -309
- package/src/modules/location-huds/locations/bountiful-beanstalk/small-inv.css +0 -34
- package/src/modules/location-huds/locations/bountiful-beanstalk/styles.css +0 -608
- package/src/modules/location-huds/locations/calm-clearing/index.js +0 -8
- package/src/modules/location-huds/locations/cape-clawed/index.js +0 -12
- package/src/modules/location-huds/locations/catacombs/index.js +0 -17
- package/src/modules/location-huds/locations/claw-shot-city/index.js +0 -10
- package/src/modules/location-huds/locations/claw-shot-city/styles.css +0 -5
- package/src/modules/location-huds/locations/conclusion-cliffs/index.js +0 -14
- package/src/modules/location-huds/locations/conclusion-cliffs/styles.css +0 -114
- package/src/modules/location-huds/locations/derr-dunes/index.js +0 -8
- package/src/modules/location-huds/locations/desert-city/index.js +0 -10
- package/src/modules/location-huds/locations/desert-city/styles.css +0 -13
- package/src/modules/location-huds/locations/desert-warpath/index.js +0 -212
- package/src/modules/location-huds/locations/desert-warpath/styles.css +0 -273
- package/src/modules/location-huds/locations/dojo/index.js +0 -8
- package/src/modules/location-huds/locations/dracano/index.js +0 -8
- package/src/modules/location-huds/locations/draconic-depths/index.js +0 -143
- package/src/modules/location-huds/locations/draconic-depths/styles.css +0 -222
- package/src/modules/location-huds/locations/elub-shore/index.js +0 -8
- package/src/modules/location-huds/locations/epilogue-falls/index.js +0 -101
- package/src/modules/location-huds/locations/epilogue-falls/styles.css +0 -312
- package/src/modules/location-huds/locations/event-locations/birthday/index.js +0 -88
- package/src/modules/location-huds/locations/event-locations/birthday/styles.css +0 -341
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/global.css +0 -251
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/index.js +0 -425
- package/src/modules/location-huds/locations/event-locations/great-winter-hunt/styles.css +0 -887
- package/src/modules/location-huds/locations/event-locations/halloween/index.js +0 -45
- package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/index.js +0 -118
- package/src/modules/location-huds/locations/event-locations/halloween/spooky-shuffle-tracker/styles.css +0 -33
- package/src/modules/location-huds/locations/event-locations/halloween/styles.css +0 -605
- package/src/modules/location-huds/locations/event-locations/index.js +0 -54
- package/src/modules/location-huds/locations/event-locations/lunar-new-year/index.js +0 -176
- package/src/modules/location-huds/locations/event-locations/lunar-new-year/styles.css +0 -263
- package/src/modules/location-huds/locations/event-locations/ronza/index.js +0 -111
- package/src/modules/location-huds/locations/event-locations/ronza/styles.css +0 -144
- package/src/modules/location-huds/locations/event-locations/shared.js +0 -67
- package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/index.js +0 -128
- package/src/modules/location-huds/locations/event-locations/spring-egg-hunt/styles.css +0 -196
- package/src/modules/location-huds/locations/floating-islands/index.js +0 -552
- package/src/modules/location-huds/locations/floating-islands/styles.css +0 -792
- package/src/modules/location-huds/locations/forbidden-grove/index.js +0 -75
- package/src/modules/location-huds/locations/forbidden-grove/styles.css +0 -16
- package/src/modules/location-huds/locations/foreword-farm/index.js +0 -84
- package/src/modules/location-huds/locations/foreword-farm/styles.css +0 -376
- package/src/modules/location-huds/locations/fort-rox/index.js +0 -249
- package/src/modules/location-huds/locations/fort-rox/styles.css +0 -257
- package/src/modules/location-huds/locations/fungal-cavern/index.js +0 -10
- package/src/modules/location-huds/locations/fungal-cavern/styles.css +0 -77
- package/src/modules/location-huds/locations/great-gnarled-tree/index.js +0 -8
- package/src/modules/location-huds/locations/harbour/index.js +0 -10
- package/src/modules/location-huds/locations/harbour/styles.css +0 -32
- package/src/modules/location-huds/locations/iceberg/index.js +0 -469
- package/src/modules/location-huds/locations/iceberg/styles/bob-iceberg.css +0 -57
- package/src/modules/location-huds/locations/iceberg/styles/styles.css +0 -329
- package/src/modules/location-huds/locations/jungle-of-dread/index.js +0 -17
- package/src/modules/location-huds/locations/kings-arms/index.js +0 -8
- package/src/modules/location-huds/locations/kings-gauntlet/index.js +0 -17
- package/src/modules/location-huds/locations/laboratory/index.js +0 -10
- package/src/modules/location-huds/locations/laboratory/styles.css +0 -41
- package/src/modules/location-huds/locations/labyrinth/index.js +0 -315
- package/src/modules/location-huds/locations/labyrinth/styles.css +0 -547
- package/src/modules/location-huds/locations/lagoon/index.js +0 -8
- package/src/modules/location-huds/locations/meditation-room/index.js +0 -12
- package/src/modules/location-huds/locations/mountain/index.js +0 -10
- package/src/modules/location-huds/locations/mountain/styles.css +0 -259
- package/src/modules/location-huds/locations/mousoleum/index.js +0 -17
- package/src/modules/location-huds/locations/mousoleum/styles.css +0 -21
- package/src/modules/location-huds/locations/moussu-picchu/index.js +0 -10
- package/src/modules/location-huds/locations/moussu-picchu/styles.css +0 -243
- package/src/modules/location-huds/locations/nerg-plains/index.js +0 -8
- package/src/modules/location-huds/locations/pinnacle-chamber/index.js +0 -11
- package/src/modules/location-huds/locations/pollution-outbreak/index.js +0 -32
- package/src/modules/location-huds/locations/pollution-outbreak/styles.css +0 -516
- package/src/modules/location-huds/locations/prologue-pond/index.js +0 -64
- package/src/modules/location-huds/locations/prologue-pond/styles.css +0 -138
- package/src/modules/location-huds/locations/region-living-garden/index.js +0 -36
- package/src/modules/location-huds/locations/region-living-garden/styles.css +0 -316
- package/src/modules/location-huds/locations/region-queso/index.js +0 -10
- package/src/modules/location-huds/locations/region-queso/styles.css +0 -366
- package/src/modules/location-huds/locations/rift-bristle-woods/index.js +0 -29
- package/src/modules/location-huds/locations/rift-bristle-woods/styles.css +0 -268
- package/src/modules/location-huds/locations/rift-burroughs/index.js +0 -157
- package/src/modules/location-huds/locations/rift-burroughs/styles.css +0 -272
- package/src/modules/location-huds/locations/rift-furoma/index.js +0 -79
- package/src/modules/location-huds/locations/rift-furoma/styles.css +0 -233
- package/src/modules/location-huds/locations/rift-gnawnia/index.js +0 -10
- package/src/modules/location-huds/locations/rift-gnawnia/styles.css +0 -83
- package/src/modules/location-huds/locations/rift-valour/flipped-avatar.css +0 -15
- package/src/modules/location-huds/locations/rift-valour/index.js +0 -271
- package/src/modules/location-huds/locations/rift-valour/simulator.js +0 -559
- package/src/modules/location-huds/locations/rift-valour/styles.css +0 -644
- package/src/modules/location-huds/locations/rift-whisker-woods/index.js +0 -86
- package/src/modules/location-huds/locations/rift-whisker-woods/styles.css +0 -214
- package/src/modules/location-huds/locations/school-of-sorcery/clean-chalkboard.css +0 -11
- package/src/modules/location-huds/locations/school-of-sorcery/index.js +0 -109
- package/src/modules/location-huds/locations/school-of-sorcery/styles.css +0 -460
- package/src/modules/location-huds/locations/seasonal-garden/index.js +0 -71
- package/src/modules/location-huds/locations/seasonal-garden/styles.css +0 -132
- package/src/modules/location-huds/locations/slushy-shoreline/index.js +0 -8
- package/src/modules/location-huds/locations/ss-huntington-ii/index.js +0 -8
- package/src/modules/location-huds/locations/sunken-city/index.js +0 -177
- package/src/modules/location-huds/locations/sunken-city/styles.css +0 -196
- package/src/modules/location-huds/locations/table-of-contents/index.js +0 -389
- package/src/modules/location-huds/locations/table-of-contents/simulator-styles.css +0 -240
- package/src/modules/location-huds/locations/table-of-contents/simulator.js +0 -276
- package/src/modules/location-huds/locations/table-of-contents/styles.css +0 -403
- package/src/modules/location-huds/locations/tournament-hall/index.js +0 -8
- package/src/modules/location-huds/locations/town-of-digby/index.js +0 -8
- package/src/modules/location-huds/locations/town-of-gnawnia/index.js +0 -10
- package/src/modules/location-huds/locations/town-of-gnawnia/styles.css +0 -48
- package/src/modules/location-huds/locations/train-station/index.js +0 -10
- package/src/modules/location-huds/locations/train-station/styles.css +0 -31
- package/src/modules/location-huds/locations/windmill/index.js +0 -53
- package/src/modules/location-huds/locations/windmill/styles.css +0 -73
- package/src/modules/location-huds/locations/zugzwang-tower/index.js +0 -10
- package/src/modules/location-huds/locations/zugzwang-tower/styles.css +0 -54
- package/src/modules/location-huds/settings.js +0 -124
- package/src/modules/location-huds/shared/cheese-selectors/index.js +0 -143
- package/src/modules/location-huds/shared/crafting-buttons/index.js +0 -133
- package/src/modules/location-huds/shared/crafting-buttons/styles.css +0 -51
- package/src/modules/location-huds/shared/folklore-forest/index.js +0 -261
- package/src/modules/location-huds/shared/folklore-forest/keep-inventory-open.js +0 -77
- package/src/modules/location-huds/shared/folklore-forest/styles.css +0 -394
- package/src/modules/location-huds/styles.css +0 -61
- package/src/modules/location-huds/toggle-icon.js +0 -74
- package/src/modules/metric/index.js +0 -114
- package/src/modules/native-dark-mode/index.js +0 -79
- package/src/modules/native-dark-mode/settings/index.js +0 -15
- package/src/modules/native-dark-mode/styles/_root.css +0 -42
- package/src/modules/native-dark-mode/styles/adventure.css +0 -95
- package/src/modules/native-dark-mode/styles/camp-tabs.css +0 -113
- package/src/modules/native-dark-mode/styles/camp-trap.css +0 -420
- package/src/modules/native-dark-mode/styles/conflict-popup.css +0 -39
- package/src/modules/native-dark-mode/styles/events.css +0 -7
- package/src/modules/native-dark-mode/styles/favorite-setups.css +0 -12
- package/src/modules/native-dark-mode/styles/friends.css +0 -210
- package/src/modules/native-dark-mode/styles/general.css +0 -231
- package/src/modules/native-dark-mode/styles/gifts.css +0 -243
- package/src/modules/native-dark-mode/styles/header-dropdown.css +0 -62
- package/src/modules/native-dark-mode/styles/header.css +0 -100
- package/src/modules/native-dark-mode/styles/hover-items.css +0 -30
- package/src/modules/native-dark-mode/styles/inbox.css +0 -85
- package/src/modules/native-dark-mode/styles/inventory.css +0 -271
- package/src/modules/native-dark-mode/styles/item-view.css +0 -42
- package/src/modules/native-dark-mode/styles/journal-main.css +0 -115
- package/src/modules/native-dark-mode/styles/journal-misc-entries.css +0 -118
- package/src/modules/native-dark-mode/styles/journal-preview.css +0 -37
- package/src/modules/native-dark-mode/styles/kings-calibrator.css +0 -53
- package/src/modules/native-dark-mode/styles/loading.css +0 -58
- package/src/modules/native-dark-mode/styles/location-catch-stats.css +0 -31
- package/src/modules/native-dark-mode/styles/maps.css +0 -597
- package/src/modules/native-dark-mode/styles/markethunt.css +0 -41
- package/src/modules/native-dark-mode/styles/marketplace.css +0 -278
- package/src/modules/native-dark-mode/styles/mice-images.css +0 -10
- package/src/modules/native-dark-mode/styles/mice.css +0 -262
- package/src/modules/native-dark-mode/styles/mouse-view.css +0 -44
- package/src/modules/native-dark-mode/styles/news.css +0 -40
- package/src/modules/native-dark-mode/styles/overlays.css +0 -227
- package/src/modules/native-dark-mode/styles/page.css +0 -13
- package/src/modules/native-dark-mode/styles/premium.css +0 -7
- package/src/modules/native-dark-mode/styles/profile.css +0 -243
- package/src/modules/native-dark-mode/styles/progress-log.css +0 -25
- package/src/modules/native-dark-mode/styles/quests.css +0 -29
- package/src/modules/native-dark-mode/styles/scoreboards.css +0 -66
- package/src/modules/native-dark-mode/styles/select2.css +0 -65
- package/src/modules/native-dark-mode/styles/send-supplies.css +0 -88
- package/src/modules/native-dark-mode/styles/settings.css +0 -172
- package/src/modules/native-dark-mode/styles/shops.css +0 -114
- package/src/modules/native-dark-mode/styles/sidebar.css +0 -56
- package/src/modules/native-dark-mode/styles/tabs.css +0 -17
- package/src/modules/native-dark-mode/styles/team.css +0 -58
- package/src/modules/native-dark-mode/styles/travel.css +0 -102
- package/src/modules/native-dark-mode/styles/userscripts.css +0 -38
- package/src/modules/onboarding/index.js +0 -44
- package/src/modules/onboarding/styles.css +0 -13
- package/src/modules/paste-hunter-id/index.js +0 -82
- package/src/modules/prestige-base-stats/index.js +0 -242
- package/src/modules/printing-press-paper-counter/index.js +0 -24
- package/src/modules/quick-filters-and-sort/index.js +0 -280
- package/src/modules/quick-filters-and-sort/styles.css +0 -146
- package/src/modules/quick-send-supplies/index.js +0 -358
- package/src/modules/quick-send-supplies/settings/index.js +0 -40
- package/src/modules/quick-send-supplies/styles.css +0 -185
- package/src/modules/replace-favicon/index.js +0 -51
- package/src/modules/required/global-utils.js +0 -9
- package/src/modules/required/index.js +0 -251
- package/src/modules/scoreboard-search-on-profiles/index.js +0 -161
- package/src/modules/scoreboard-search-on-profiles/styles.css +0 -25
- package/src/modules/settings/icons.css +0 -233
- package/src/modules/settings/index.js +0 -653
- package/src/modules/settings/settings/index.js +0 -16
- package/src/modules/settings/styles.css +0 -635
- package/src/modules/shield-goes-to-camp/index.js +0 -31
- package/src/modules/show-adventure-book/index.js +0 -31
- package/src/modules/show-adventure-book/styles.css +0 -6
- package/src/modules/show-auras/index.js +0 -252
- package/src/modules/show-auras/settings/index.js +0 -19
- package/src/modules/show-auras/styles/grid.css +0 -48
- package/src/modules/show-auras/styles/icons.css +0 -22
- package/src/modules/show-auras/styles/list.css +0 -49
- package/src/modules/show-auras/styles/styles.css +0 -23
- package/src/modules/ssdb-toothlet-counter/index.js +0 -24
- package/src/modules/taller-windows/index.js +0 -22
- package/src/modules/taller-windows/styles.css +0 -137
- package/src/modules/tem-crowns/index.js +0 -127
- package/src/modules/tem-crowns/styles.css +0 -106
- package/src/modules/trap-selector-special-effects/index.js +0 -75
- package/src/modules/ultimate-checkmark/index.js +0 -391
- package/src/modules/ultimate-checkmark/settings/index.js +0 -40
- package/src/modules/ultimate-checkmark/styles.css +0 -12
- package/src/modules/unique-loot-count/index.js +0 -59
- package/src/modules/unique-loot-count/styles.css +0 -3
- package/src/modules/update-notifications/index.js +0 -95
- package/src/modules/update-notifications/styles.css +0 -181
- package/src/modules/user-highlighting/index.js +0 -130
- package/src/modules/user-highlighting/profile.css +0 -374
- package/src/modules/user-highlighting/styles.css +0 -34
- package/src/modules/wisdom-in-stat-bar/index.js +0 -170
- package/src/modules/wisdom-in-stat-bar/settings/index.js +0 -12
- package/src/modules/wisdom-in-stat-bar/styles.css +0 -3
- package/src/updates/index.js +0 -168
- package/src/updates/versions/.gitkeep +0 -0
- package/src/updates/versions/0.93.0.js +0 -39
- package/src/updates/versions/0.93.3.js +0 -8
- package/src/updates/versions/0.94.0.js +0 -8
- package/src/utils/blueprint.js +0 -74
- package/src/utils/data.js +0 -559
- package/src/utils/db.js +0 -206
- package/src/utils/debug.js +0 -72
- package/src/utils/draggable.js +0 -141
- package/src/utils/elements.js +0 -650
- package/src/utils/event-registry.js +0 -102
- package/src/utils/events.js +0 -698
- package/src/utils/flags.js +0 -39
- package/src/utils/global.js +0 -37
- package/src/utils/horn.js +0 -187
- package/src/utils/humanizer.js +0 -62
- package/src/utils/index.js +0 -28
- package/src/utils/journal.js +0 -222
- package/src/utils/json.js +0 -32
- package/src/utils/links.js +0 -343
- package/src/utils/location-current.js +0 -23
- package/src/utils/location.js +0 -70
- package/src/utils/maps.js +0 -699
- package/src/utils/messages.js +0 -255
- package/src/utils/onboarding.js +0 -102
- package/src/utils/page-current.js +0 -26
- package/src/utils/page.js +0 -155
- package/src/utils/settings-markup.js +0 -907
- package/src/utils/settings.js +0 -260
- package/src/utils/shared/fiery-warpath.js +0 -88
- package/src/utils/shared/memory-game.js +0 -231
- package/src/utils/shared/trap-quantity.js +0 -232
- package/src/utils/styles/errors.css +0 -50
- package/src/utils/styles/memory-game.css +0 -227
- package/src/utils/styles/page-error.css +0 -145
- package/src/utils/styles/page-maintenance.css +0 -150
- package/src/utils/styles.js +0 -209
- package/src/utils/templates.js +0 -170
- package/src/utils/user.js +0 -375
- package/src/utils/utils.js +0 -534
|
@@ -1,816 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addMHCTData,
|
|
3
|
-
debuglog,
|
|
4
|
-
doRequest,
|
|
5
|
-
getData,
|
|
6
|
-
getSetting,
|
|
7
|
-
isAppleOS,
|
|
8
|
-
makeElement,
|
|
9
|
-
makeLink,
|
|
10
|
-
makeMhButton,
|
|
11
|
-
sessionGet,
|
|
12
|
-
sessionSet,
|
|
13
|
-
showErrorMessage
|
|
14
|
-
} from '@utils';
|
|
15
|
-
|
|
16
|
-
import { addArToggle, removeArToggle } from './toggle-ar';
|
|
17
|
-
import addConsolationPrizes from './consolation-prizes';
|
|
18
|
-
|
|
19
|
-
let allMiceData;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Get the link markup for a mouse.
|
|
23
|
-
*
|
|
24
|
-
* @param {string} name The mouse name.
|
|
25
|
-
* @param {string} mouseType The mouse type.
|
|
26
|
-
*
|
|
27
|
-
* @return {string} The link markup.
|
|
28
|
-
*/
|
|
29
|
-
const getLinkMarkup = (name, mouseType) => {
|
|
30
|
-
if (! allMiceData) {
|
|
31
|
-
return '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const mouse = allMiceData.find((m) => m.type === mouseType);
|
|
35
|
-
if (mouse) {
|
|
36
|
-
name = mouse.name
|
|
37
|
-
.replaceAll(' ', '_')
|
|
38
|
-
.replaceAll('\'', '%27')
|
|
39
|
-
.replaceAll('"', '%22')
|
|
40
|
-
.replaceAll(/(^\w|\s\w)/g, (m) => m.toUpperCase())
|
|
41
|
-
.replaceAll(' ', '_');
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return makeLink('MHCT AR', `https://api.mouse.rip/mhct-redirect/${mouseType}`) +
|
|
45
|
-
makeLink('Wiki', `https://mhwiki.hitgrab.com/wiki/index.php/${name}`);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Get the link markup for an item.
|
|
50
|
-
*
|
|
51
|
-
* @param {string} name The item name.
|
|
52
|
-
*
|
|
53
|
-
* @return {string} The link markup.
|
|
54
|
-
*/
|
|
55
|
-
const getItemLinkMarkup = (name) => {
|
|
56
|
-
name = name.replace(' ', '_');
|
|
57
|
-
return makeLink('MHCT DR', `https://api.mouse.rip/mhct-redirect-item/${name}`, true) +
|
|
58
|
-
makeLink('Wiki', `https://mhwiki.hitgrab.com/wiki/index.php/${name.replaceAll(' ', '_')}`, true);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Add links to the mouse details on the map.
|
|
63
|
-
*/
|
|
64
|
-
const addMouseLinksToMap = async () => {
|
|
65
|
-
const overlay = document.querySelector('#overlayPopup');
|
|
66
|
-
if (! (overlay && overlay.classList.contains('treasureMapPopup'))) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const mouseIcon = document.querySelectorAll('.treasureMapView-goals-group-goal');
|
|
71
|
-
if (! (mouseIcon && mouseIcon.length > 0)) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const mapViewClasses = document.querySelector('.treasureMapView');
|
|
76
|
-
if (! mapViewClasses) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
let type = 'mouse';
|
|
81
|
-
if (mapViewClasses.classList.value.includes('scavenger_hunt')) {
|
|
82
|
-
type = 'item';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
mouseIcon.forEach((mouse) => {
|
|
86
|
-
let mouseType = mouse.classList.value
|
|
87
|
-
.replace('treasureMapView-goals-group-goal', '')
|
|
88
|
-
.replace(' mouse', '')
|
|
89
|
-
.replace(' item', '')
|
|
90
|
-
.replace(' complete', '')
|
|
91
|
-
.replace('landscape', '')
|
|
92
|
-
.replace('notAvailable', '')
|
|
93
|
-
.replaceAll(' ', '')
|
|
94
|
-
.trim();
|
|
95
|
-
|
|
96
|
-
if ('item' === type) {
|
|
97
|
-
mouseType = mouse.getAttribute('data-unique-id');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
mouse.addEventListener('click', async () => {
|
|
101
|
-
const highlight = document.querySelector('.treasureMapView-highlight.active');
|
|
102
|
-
if (! highlight) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const title = highlight.querySelector('.treasureMapView-highlight-name');
|
|
107
|
-
if (! title) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
title.classList.add('mh-ui-mouse-links-map-name');
|
|
112
|
-
|
|
113
|
-
title.addEventListener('click', () => {
|
|
114
|
-
if (type === 'item') {
|
|
115
|
-
hg.views.ItemView.show(mouseType);
|
|
116
|
-
} else if (type === 'mouse') {
|
|
117
|
-
hg.views.MouseView.show(mouseType);
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
title.setAttribute('data-mouse-id', mouseType);
|
|
122
|
-
|
|
123
|
-
const existing = document.querySelector(`#mh-ui-mouse-links-map-${mouseType}-${type}`);
|
|
124
|
-
if (existing) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if ('mouse' === type) {
|
|
129
|
-
const div = makeElement('div', 'mh-ui-mouse-links-map');
|
|
130
|
-
div.id = `mh-ui-mouse-links-map-${mouseType}-${type}`;
|
|
131
|
-
div.innerHTML = getLinkMarkup(title.innerText, mouseType);
|
|
132
|
-
|
|
133
|
-
const envs = document.querySelector('.treasureMapView-highlight-environments');
|
|
134
|
-
if (envs) {
|
|
135
|
-
envs.parentNode.insertBefore(div, envs.nextSibling);
|
|
136
|
-
}
|
|
137
|
-
} else if ('item' === type) {
|
|
138
|
-
const div = makeElement('div', 'mh-ui-mouse-links-map');
|
|
139
|
-
div.id = `mh-ui-mouse-links-map-${mouseType}-${type}`;
|
|
140
|
-
div.innerHTML = getItemLinkMarkup(mouseType);
|
|
141
|
-
|
|
142
|
-
const desc = document.querySelector('.treasureMapView-highlight-description');
|
|
143
|
-
if (desc) {
|
|
144
|
-
desc.prepend(div);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
let appendMHCTto = document.querySelector('.treasureMapView-highlight-weaknessContainer');
|
|
149
|
-
if (! appendMHCTto) {
|
|
150
|
-
appendMHCTto = document.querySelector('.mh-ui-mouse-links-map');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
const existingArs = document.querySelectorAll('.mh-ui-mouse-links-map-ars');
|
|
154
|
-
if (existingArs && existingArs.length > 0) {
|
|
155
|
-
existingArs.forEach((ar) => ar.remove());
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const arsEl = makeElement('div', 'mh-ui-mouse-links-map-ars');
|
|
159
|
-
arsEl.id = `mh-ui-mouse-links-map-ars-${mouseType}-${type}`;
|
|
160
|
-
await addMHCTData({ unique_id: mouseType }, arsEl, type);
|
|
161
|
-
|
|
162
|
-
// if there wasn't a change to theArsEl div, then don't add it.
|
|
163
|
-
if (arsEl.innerHTML === '') {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
highlight.classList.add('has-mhct-ars');
|
|
168
|
-
|
|
169
|
-
highlight.append(arsEl);
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Add classes to the groups based on completion status.
|
|
176
|
-
*
|
|
177
|
-
* @param {Object} mapData The map data.
|
|
178
|
-
*/
|
|
179
|
-
const addClassesToGroups = (mapData) => {
|
|
180
|
-
const groups = document.querySelectorAll('.treasureMapView-goals-groups');
|
|
181
|
-
groups.forEach((group) => {
|
|
182
|
-
const title = group.querySelector('.treasureMapView-block-content-heading');
|
|
183
|
-
if (! title) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (title.classList.contains('mh-ui-goals-group-completed-title')) {
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const completed = title.innerText.includes(' found these mice:') || title.innerText.includes(' found this mouse:');
|
|
192
|
-
group.classList.add('mh-ui-goals-group', completed ? 'completed' : 'incomplete');
|
|
193
|
-
|
|
194
|
-
let countText = '';
|
|
195
|
-
const count = group.querySelector('.treasureMapView-block-content-heading-count');
|
|
196
|
-
if (count) {
|
|
197
|
-
group.setAttribute('data-mouse-count', count.innerText.replace('(', '').replace(')', ''));
|
|
198
|
-
countText = count.innerText;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
if (! completed) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
// get the hunter name by removing the count and the 'found these mice' text
|
|
205
|
-
const hunterName = title.innerText
|
|
206
|
-
.replace(countText, '')
|
|
207
|
-
.replace(' found these mice:', '')
|
|
208
|
-
.replace(' found this mouse:', '')
|
|
209
|
-
.trim();
|
|
210
|
-
|
|
211
|
-
// find the hunter in the list of hunters but looking at mapData.hunters and finding the matching name
|
|
212
|
-
let hunter = mapData.hunters.find((h) => h.name.trim() === hunterName);
|
|
213
|
-
if (! hunter) {
|
|
214
|
-
// match the hunter using the image url
|
|
215
|
-
const image = group.querySelector('.treasureMapView-block-content-heading-image');
|
|
216
|
-
if (! image) {
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// get the style property of the image and get the url from it
|
|
221
|
-
const url = image.getAttribute('style')
|
|
222
|
-
.replace('background-image:url(', '')
|
|
223
|
-
.replace('background-image: url(', '')
|
|
224
|
-
.replace(');', '');
|
|
225
|
-
|
|
226
|
-
hunter = mapData.hunters.find((h) => h.profile_pic === url);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// Finally, fallback to trying to match the hunter name to the user's name in case of weirdness idk.
|
|
230
|
-
if (! hunter && (hunterName === `${user.firstname} ${user.lastname}` || hunterName === `${user.firstname}${user.lastname}`)) {
|
|
231
|
-
hunter = {
|
|
232
|
-
name: `${user.firstname} ${user.lastname}`,
|
|
233
|
-
sn_user_id: user.sn_user_id,
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
if (! hunter) {
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
const image = group.querySelector('.treasureMapView-block-content-heading-image');
|
|
242
|
-
if (! image) {
|
|
243
|
-
image.title = `Go to ${hunter.name}'s profile`;
|
|
244
|
-
image.classList.add('mh-ui-goals-group-completed-image');
|
|
245
|
-
|
|
246
|
-
image.addEventListener('click', () => {
|
|
247
|
-
hg.utils.PageUtil.showHunterProfile(hunter.sn_user_id);
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
const replacementTitle = makeElement('div', 'treasureMapView-block-content-heading');
|
|
252
|
-
|
|
253
|
-
if (image) {
|
|
254
|
-
replacementTitle.append(image);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
const nameLink = makeElement('a', 'mh-ui-goals-group-completed-title', hunter.name);
|
|
258
|
-
nameLink.setAttribute('data-snuid', hunter.sn_user_id);
|
|
259
|
-
nameLink.addEventListener('click', (e) => {
|
|
260
|
-
e.preventDefault();
|
|
261
|
-
if (hg?.utils?.PageUtil?.showHunterProfile) {
|
|
262
|
-
hg.utils.PageUtil.showHunterProfile(hunter.sn_user_id);
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
replacementTitle.append(nameLink);
|
|
266
|
-
|
|
267
|
-
makeElement('span', 'mh-ui-goals-group-completed-text', ' found these mice:', replacementTitle);
|
|
268
|
-
if (count) {
|
|
269
|
-
replacementTitle.append(count);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const toggleGroup = makeElement('div', 'mh-ui-goals-group-toggle');
|
|
273
|
-
const isStartingToggled = sessionGet('better-maps-groups-toggled', []);
|
|
274
|
-
|
|
275
|
-
const expand = () => {
|
|
276
|
-
toggleGroup.setAttribute('data-toggled', 'false');
|
|
277
|
-
toggleGroup.setAttribute('title', `Collapse (Hold ${isAppleOS() ? '⌘ Command' : 'Ctrl'} to toggle all)`);
|
|
278
|
-
toggleGroup.classList.remove('collapsed');
|
|
279
|
-
toggleGroup.classList.add('expanded');
|
|
280
|
-
group.classList.remove('mh-ui-goals-group-collapsed');
|
|
281
|
-
group.classList.add('mh-ui-goals-group-expanded');
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
const collapse = () => {
|
|
285
|
-
toggleGroup.setAttribute('data-toggled', 'true');
|
|
286
|
-
toggleGroup.setAttribute('title', `Expand (Hold ${isAppleOS() ? '⌘ Command' : 'Ctrl'} to toggle all)`);
|
|
287
|
-
toggleGroup.classList.remove('expanded');
|
|
288
|
-
toggleGroup.classList.add('collapsed');
|
|
289
|
-
group.classList.remove('mh-ui-goals-group-expanded');
|
|
290
|
-
group.classList.add('mh-ui-goals-group-collapsed');
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
if (isStartingToggled.includes(hunter.sn_user_id)) {
|
|
294
|
-
collapse();
|
|
295
|
-
} else {
|
|
296
|
-
expand();
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
toggleGroup.addEventListener('click', (event) => {
|
|
300
|
-
const toggled = toggleGroup.getAttribute('data-toggled');
|
|
301
|
-
const currentSessionToggled = sessionGet('better-maps-groups-toggled', []);
|
|
302
|
-
if (currentSessionToggled.includes(hunter.sn_user_id)) {
|
|
303
|
-
currentSessionToggled.splice(currentSessionToggled.indexOf(hunter.sn_user_id), 1);
|
|
304
|
-
} else {
|
|
305
|
-
currentSessionToggled.push(hunter.sn_user_id);
|
|
306
|
-
}
|
|
307
|
-
sessionSet('better-maps-groups-toggled', currentSessionToggled);
|
|
308
|
-
|
|
309
|
-
if ('true' === toggled) {
|
|
310
|
-
expand();
|
|
311
|
-
} else {
|
|
312
|
-
collapse();
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
// if the user is holding down command/ctrl, toggle all groups.
|
|
316
|
-
if (event.ctrlKey || event.metaKey) {
|
|
317
|
-
const allGroups = document.querySelectorAll('.treasureMapView-goals-groups');
|
|
318
|
-
allGroups.forEach((g) => {
|
|
319
|
-
// find the toggle and if its not the same as the current one, click it.
|
|
320
|
-
const toggle = g.querySelector('.mh-ui-goals-group-toggle');
|
|
321
|
-
if (toggle && toggle !== toggleGroup) {
|
|
322
|
-
const isThisOneToggled = toggle.getAttribute('data-toggled');
|
|
323
|
-
if (isThisOneToggled === toggled) {
|
|
324
|
-
toggle.click();
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
replacementTitle.append(toggleGroup);
|
|
332
|
-
|
|
333
|
-
if (title) {
|
|
334
|
-
title.replaceWith(replacementTitle);
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Move the leave map button to the actions group.
|
|
341
|
-
*/
|
|
342
|
-
const moveLeaveButton = async () => {
|
|
343
|
-
const leaveButton = document.querySelector('.treasureMapView-mapLeaveContainer .treasureMapView-leaveMapButton');
|
|
344
|
-
if (! leaveButton) {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
const actions = document.querySelector('.treasureMapView-mapMenu-group-actions');
|
|
349
|
-
if (! actions) {
|
|
350
|
-
return;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
const existing = document.querySelector('.mh-ui-leave-map-button');
|
|
354
|
-
if (existing) {
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
const clone = leaveButton.cloneNode(true);
|
|
359
|
-
clone.classList.add('mh-ui-leave-map-button');
|
|
360
|
-
clone.classList.remove('lightBlue');
|
|
361
|
-
|
|
362
|
-
clone.addEventListener('click', () => {
|
|
363
|
-
// click the original button.
|
|
364
|
-
leaveButton.click();
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
actions.insertBefore(clone, actions.firstChild);
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Add a quick invite field to the map sidebar.
|
|
372
|
-
*
|
|
373
|
-
* @param {Object} mapData The map data.
|
|
374
|
-
*/
|
|
375
|
-
const addQuickInvite = async (mapData) => {
|
|
376
|
-
const sidebar = document.querySelector('.treasureMapView-rightBlock.treasureMapView-goalSidebar');
|
|
377
|
-
if (! sidebar) {
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
const existing = document.querySelector('.mh-ui-quick-invite');
|
|
382
|
-
if (existing) {
|
|
383
|
-
existing.remove();
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// Check if we're the current map owner.
|
|
387
|
-
if (! mapData?.is_owner) {
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
const mapId = mapData?.map_id;
|
|
392
|
-
if (! mapId) {
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
const inviteWrapper = makeElement('div', 'mh-ui-quick-invite-wrapper');
|
|
397
|
-
|
|
398
|
-
const inviteInput = makeElement('input', 'mh-ui-quick-invite-input');
|
|
399
|
-
inviteInput.type = 'number';
|
|
400
|
-
inviteInput.placeholder = 'Hunter ID';
|
|
401
|
-
inviteWrapper.append(inviteInput);
|
|
402
|
-
|
|
403
|
-
const indicators = makeElement('div', 'mh-ui-quick-invite-indicators');
|
|
404
|
-
const spinner = makeElement('div', ['mh-ui-quick-invite-indicator', 'mh-ui-quick-invite-spinner', 'hidden']);
|
|
405
|
-
const success = makeElement('div', ['mh-ui-quick-invite-indicator', 'mh-ui-quick-invite-success', 'hidden']);
|
|
406
|
-
|
|
407
|
-
indicators.append(spinner);
|
|
408
|
-
indicators.append(success);
|
|
409
|
-
|
|
410
|
-
inviteWrapper.append(indicators);
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Handle an error when inviting a hunter.
|
|
414
|
-
*
|
|
415
|
-
* @param {string} message The error message.
|
|
416
|
-
*
|
|
417
|
-
* @return {boolean} False.
|
|
418
|
-
*/
|
|
419
|
-
const inviteError = (message) => {
|
|
420
|
-
debuglog('better-maps', `Invite error: ${message}`);
|
|
421
|
-
|
|
422
|
-
inviteInput.disabled = false;
|
|
423
|
-
|
|
424
|
-
inviteButton.classList.remove('disabled');
|
|
425
|
-
spinner.classList.add('hidden');
|
|
426
|
-
|
|
427
|
-
showErrorMessage({
|
|
428
|
-
message,
|
|
429
|
-
append: inviteWrapper
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
return false;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Handle the invite action.
|
|
437
|
-
*
|
|
438
|
-
* @return {boolean} False.
|
|
439
|
-
*/
|
|
440
|
-
const inviteAction = async () => {
|
|
441
|
-
if (inviteButton.classList.contains('disabled')) {
|
|
442
|
-
return;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
// Set the input to disabled, add a disabled class to the button, and and add a loading spinner.
|
|
446
|
-
inviteInput.disabled = true;
|
|
447
|
-
inviteButton.classList.add('disabled');
|
|
448
|
-
spinner.classList.remove('hidden');
|
|
449
|
-
|
|
450
|
-
const hunterId = Number.parseInt(inviteInput.value, 10);
|
|
451
|
-
|
|
452
|
-
if (! hunterId) {
|
|
453
|
-
return inviteError('Invalid hunter ID');
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
debuglog('better-maps', `Inviting hunter ${hunterId} to map ${mapId}`);
|
|
457
|
-
|
|
458
|
-
let snuid;
|
|
459
|
-
|
|
460
|
-
const friendData = sessionGet('cache-maps-hunter-data', {});
|
|
461
|
-
|
|
462
|
-
if (friendData && friendData[hunterId]) {
|
|
463
|
-
debuglog('better-maps', `Using cached friend data for ${hunterId}`);
|
|
464
|
-
|
|
465
|
-
snuid = friendData[hunterId];
|
|
466
|
-
} else {
|
|
467
|
-
debuglog('better-maps', `Fetching friend data for ${hunterId}`);
|
|
468
|
-
|
|
469
|
-
const getFriendData = await doRequest('managers/ajax/pages/friends.php', {
|
|
470
|
-
action: 'community_search_by_id',
|
|
471
|
-
user_id: hunterId,
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
if (getFriendData?.success && getFriendData?.friend?.sn_user_id) {
|
|
475
|
-
snuid = getFriendData?.friend?.sn_user_id;
|
|
476
|
-
const maps = getFriendData?.friend.user_interactions?.actions?.send_map_invite?.maps;
|
|
477
|
-
const canAccept = maps.length > 0 && maps[0]?.is_allowed;
|
|
478
|
-
|
|
479
|
-
friendData[hunterId] = {
|
|
480
|
-
snuid: snuid || false,
|
|
481
|
-
canAccept: canAccept || false,
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
// Only cache the data if they can accept invites, otherwise we'll want to fetch their data again.
|
|
485
|
-
if (canAccept) {
|
|
486
|
-
sessionSet('cache-maps-hunter-data', friendData);
|
|
487
|
-
}
|
|
488
|
-
} else {
|
|
489
|
-
return inviteError('Could not find hunter');
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
debuglog('better-maps', `Inviting hunter ${hunterId} with snuid ${snuid} to map ${mapId}`);
|
|
494
|
-
|
|
495
|
-
const invited = await doRequest('managers/ajax/users/treasuremap_v2.php', {
|
|
496
|
-
action: 'send_invites',
|
|
497
|
-
map_id: mapId,
|
|
498
|
-
'snuids[]': snuid,
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
if (invited && invited?.success) {
|
|
502
|
-
debuglog('better-maps', `Successfully invited hunter ${hunterId} to map ${mapId}`);
|
|
503
|
-
|
|
504
|
-
inviteInput.value = '';
|
|
505
|
-
|
|
506
|
-
inviteInput.disabled = false;
|
|
507
|
-
|
|
508
|
-
inviteButton.classList.remove('disabled');
|
|
509
|
-
spinner.classList.add('hidden');
|
|
510
|
-
success.classList.remove('hidden');
|
|
511
|
-
|
|
512
|
-
setTimeout(() => success.classList.add('hidden'), 2000);
|
|
513
|
-
} else {
|
|
514
|
-
return inviteError('Error inviting hunter');
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
debuglog('better-maps', '.');
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
const inviteButton = makeMhButton({
|
|
521
|
-
text: 'Invite',
|
|
522
|
-
className: ['mh-ui-quick-invite', 'lightBlue'],
|
|
523
|
-
callback: inviteAction,
|
|
524
|
-
appendTo: inviteWrapper,
|
|
525
|
-
});
|
|
526
|
-
|
|
527
|
-
inviteInput.addEventListener('keyup', (e) => {
|
|
528
|
-
if (e.key === 'Enter') {
|
|
529
|
-
inviteAction();
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
// append as first child
|
|
534
|
-
sidebar.insertBefore(inviteWrapper, sidebar.firstChild);
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Add a sidebar toggle.
|
|
539
|
-
*/
|
|
540
|
-
const addSidebarToggle = async () => {
|
|
541
|
-
const mapView = document.querySelector('.treasureMapView');
|
|
542
|
-
if (! mapView) {
|
|
543
|
-
return;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
const rightBlock = mapView.querySelector('.treasureMapView-rightBlock');
|
|
547
|
-
if (! rightBlock) {
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
const leftBlock = mapView.querySelector('.treasureMapView-leftBlock');
|
|
552
|
-
if (! leftBlock) {
|
|
553
|
-
return;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
const existing = mapView.querySelector('.mh-ui-goals-sidebar-toggle');
|
|
557
|
-
if (existing) {
|
|
558
|
-
return;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
const toggle = makeElement('a', 'mh-ui-goals-sidebar-toggle');
|
|
562
|
-
|
|
563
|
-
const open = () => {
|
|
564
|
-
toggle.classList.remove('closed');
|
|
565
|
-
toggle.classList.add('open');
|
|
566
|
-
toggle.setAttribute('data-state', 'open');
|
|
567
|
-
toggle.setAttribute('title', 'Hide Sidebar');
|
|
568
|
-
|
|
569
|
-
mapView.classList.remove('mh-ui-goals-sidebar-toggled');
|
|
570
|
-
rightBlock.classList.remove('hidden');
|
|
571
|
-
leftBlock.classList.remove('full-width');
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
const close = () => {
|
|
575
|
-
toggle.classList.remove('open');
|
|
576
|
-
toggle.classList.add('closed');
|
|
577
|
-
toggle.setAttribute('data-state', 'closed');
|
|
578
|
-
toggle.setAttribute('title', 'Show Sidebar');
|
|
579
|
-
|
|
580
|
-
mapView.classList.add('mh-ui-goals-sidebar-toggled');
|
|
581
|
-
rightBlock.classList.add('hidden');
|
|
582
|
-
leftBlock.classList.add('full-width');
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
const isStartingToggled = sessionGet('better-maps-sidebar-toggled', false);
|
|
586
|
-
if ('open' === isStartingToggled) {
|
|
587
|
-
close();
|
|
588
|
-
} else {
|
|
589
|
-
open();
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
toggle.addEventListener('click', () => {
|
|
593
|
-
const isToggled = toggle.getAttribute('data-state');
|
|
594
|
-
|
|
595
|
-
sessionSet('better-maps-sidebar-toggled', isToggled);
|
|
596
|
-
|
|
597
|
-
if ('open' === isToggled) {
|
|
598
|
-
close();
|
|
599
|
-
} else {
|
|
600
|
-
open();
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
leftBlock.append(toggle);
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
const addPreviewClass = async () => {
|
|
608
|
-
const mapView = document.querySelector('.treasureMapView');
|
|
609
|
-
if (! mapView) {
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
const tooltip = document.querySelector('.treasureMapTooltipView');
|
|
614
|
-
if (tooltip) {
|
|
615
|
-
tooltip.classList.remove('mh-ui-map-preview-tooltip');
|
|
616
|
-
tooltip.classList.remove('mh-ui-map-preview-previewbar-tooltip');
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
const previewClass = mapView.querySelector('.treasureMapView-previewBar');
|
|
620
|
-
if (! previewClass) {
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
mapView.classList.add('mh-ui-map-preview');
|
|
625
|
-
|
|
626
|
-
if (tooltip) {
|
|
627
|
-
tooltip.classList.add('mh-ui-map-preview-previewbar-tooltip');
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
const moveAuras = async () => {
|
|
632
|
-
const mapView = document.querySelector('.treasureMapView');
|
|
633
|
-
if (! mapView) {
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
const mapName = mapView.querySelector('.treasureMapView-mapName');
|
|
638
|
-
if (! mapName) {
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
const auras = mapView.querySelectorAll('.treasureMapView-mapMenu-auraIconContainer');
|
|
643
|
-
if (! auras) {
|
|
644
|
-
return;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
// wrap the mapname text in a span and append the auras to it inside of a different div
|
|
648
|
-
const mapNameText = mapName.innerText;
|
|
649
|
-
mapName.innerHTML = '';
|
|
650
|
-
const mapNameWrapper = makeElement('span', 'mh-ui-map-name');
|
|
651
|
-
mapNameWrapper.innerText = mapNameText;
|
|
652
|
-
mapName.append(mapNameWrapper);
|
|
653
|
-
const aurasWrapper = makeElement('div', 'mh-ui-map-name-auras');
|
|
654
|
-
for (const aura of auras) {
|
|
655
|
-
aurasWrapper.append(aura.parentNode);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
mapName.append(aurasWrapper);
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
const addMapSolverLinks = async (mapData) => {
|
|
662
|
-
const existing = document.querySelector('.mh-ui-map-solver-links-container');
|
|
663
|
-
if (existing) {
|
|
664
|
-
return;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
const mapFooter = document.querySelector('.treasureMapView-mapLeaveContainer');
|
|
668
|
-
const mice = mapData?.goals?.mouse;
|
|
669
|
-
|
|
670
|
-
if (! mapFooter || ! Array.isArray(mice) || ! mice.length) {
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
const mouseNames = mice.map((mouse) => mouse.name).join('/');
|
|
675
|
-
const newlineMouseNames = mouseNames.replaceAll('/', '\n');
|
|
676
|
-
|
|
677
|
-
const wrapper = makeElement('div', 'mh-ui-map-solver-links');
|
|
678
|
-
|
|
679
|
-
const createSolverButton = (text, className, onClick) => {
|
|
680
|
-
return makeMhButton({
|
|
681
|
-
element: 'button',
|
|
682
|
-
text,
|
|
683
|
-
className: [className, 'lightBlue'],
|
|
684
|
-
callback: (e) => {
|
|
685
|
-
e.preventDefault();
|
|
686
|
-
onClick(e);
|
|
687
|
-
},
|
|
688
|
-
appendTo: wrapper,
|
|
689
|
-
});
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
const mhctButton = createSolverButton('MHCT Map Helper', 'mh-ui-map-solver-mhct-link', () => {
|
|
693
|
-
const form = document.createElement('form');
|
|
694
|
-
form.method = 'POST';
|
|
695
|
-
form.action = 'https://mhct.win/maphelper.php';
|
|
696
|
-
form.target = '_mhct-map-solver';
|
|
697
|
-
|
|
698
|
-
const textarea = document.createElement('textarea');
|
|
699
|
-
textarea.name = 'mice';
|
|
700
|
-
textarea.value = newlineMouseNames;
|
|
701
|
-
form.append(textarea);
|
|
702
|
-
|
|
703
|
-
document.body.append(form);
|
|
704
|
-
form.submit();
|
|
705
|
-
form.remove();
|
|
706
|
-
});
|
|
707
|
-
|
|
708
|
-
const tsituButton = createSolverButton('Tsitu\'s Map Solver', 'mh-ui-map-solver-tsitu-link', () => {
|
|
709
|
-
const url = `https://tsitu.github.io/MH-Tools/map.html?mice=${encodeURIComponent(mouseNames)}`;
|
|
710
|
-
window.open(url, '_tsitu-map-solver');
|
|
711
|
-
});
|
|
712
|
-
|
|
713
|
-
wrapper.append(mhctButton, tsituButton);
|
|
714
|
-
mapFooter.append(wrapper);
|
|
715
|
-
mapFooter.classList.add('mh-ui-map-solver-links-container');
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
const addInfoToCompletedMap = async (mapData) => {
|
|
719
|
-
if (! mapData?.is_complete) {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
const mapEl = document.querySelector('.treasureMapView-mapMenu-group.allies');
|
|
724
|
-
if (! mapEl) {
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
const existing = document.querySelector('.mh-ui-completed-maptain-duster-wrapper');
|
|
729
|
-
if (existing) {
|
|
730
|
-
return;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
const maptain = mapData.hunters.find((h) => h.captain);
|
|
734
|
-
if (! maptain) {
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
let duster = false;
|
|
739
|
-
if (mapData?.is_upgraded) {
|
|
740
|
-
duster = mapData.hunters.find((h) => h.upgrader);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
const maptainIsDuster = duster && (maptain.sn_user_id === duster.sn_user_id);
|
|
744
|
-
const maptainDusterWrapper = makeElement('div', 'mh-ui-completed-maptain-duster-wrapper');
|
|
745
|
-
|
|
746
|
-
const maptainWrapper = makeElement('div', ['mh-ui-completed-info-wrapper', 'mh-ui-completed-maptain-wrapper']);
|
|
747
|
-
makeElement('div', 'mh-ui-completed-info-label', `Maptain${maptainIsDuster ? '/Duster' : ''}:`, maptainWrapper);
|
|
748
|
-
|
|
749
|
-
const maptainImage = makeElement('a', 'mh-ui-completed-info-image');
|
|
750
|
-
maptainImage.href = `https://www.mousehuntgame.com/profile.php?snuid=${maptain.sn_user_id}`;
|
|
751
|
-
maptainImage.style.backgroundImage = `url(${maptain.profile_pic})`;
|
|
752
|
-
maptainWrapper.append(maptainImage);
|
|
753
|
-
|
|
754
|
-
const maptainText = makeElement('a', 'mh-ui-completed-info-text', maptain.name);
|
|
755
|
-
maptainText.href = `https://www.mousehuntgame.com/profile.php?snuid=${maptain.sn_user_id}`;
|
|
756
|
-
maptainWrapper.append(maptainText);
|
|
757
|
-
|
|
758
|
-
maptainDusterWrapper.append(maptainWrapper);
|
|
759
|
-
|
|
760
|
-
if (duster && ! maptainIsDuster) {
|
|
761
|
-
const dusterWrapper = makeElement('div', ['mh-ui-completed-info-wrapper', 'mh-ui-completed-duster-wrapper']);
|
|
762
|
-
|
|
763
|
-
makeElement('div', 'mh-ui-completed-info-label', 'Duster:', dusterWrapper);
|
|
764
|
-
|
|
765
|
-
const dusterImage = makeElement('a', 'mh-ui-completed-info-image');
|
|
766
|
-
dusterImage.href = `https://www.mousehuntgame.com/profile.php?snuid=${duster.sn_user_id}`;
|
|
767
|
-
dusterImage.style.backgroundImage = `url(${duster.profile_pic})`;
|
|
768
|
-
dusterWrapper.append(dusterImage);
|
|
769
|
-
|
|
770
|
-
const dusterText = makeElement('a', 'mh-ui-completed-info-text', duster.name);
|
|
771
|
-
dusterText.href = `https://www.mousehuntgame.com/profile.php?snuid=${duster.sn_user_id}`;
|
|
772
|
-
dusterWrapper.append(dusterText);
|
|
773
|
-
|
|
774
|
-
maptainDusterWrapper.append(dusterWrapper);
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
mapEl.prepend(maptainDusterWrapper);
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Fire the actions when the goals tab is shown.
|
|
782
|
-
*
|
|
783
|
-
* @param {Object} mapData The map data.
|
|
784
|
-
*/
|
|
785
|
-
const showGoalsTab = async (mapData) => {
|
|
786
|
-
addArToggle();
|
|
787
|
-
addMouseLinksToMap();
|
|
788
|
-
addConsolationPrizes();
|
|
789
|
-
addClassesToGroups(mapData);
|
|
790
|
-
moveLeaveButton();
|
|
791
|
-
addQuickInvite(mapData);
|
|
792
|
-
addSidebarToggle();
|
|
793
|
-
addPreviewClass();
|
|
794
|
-
moveAuras();
|
|
795
|
-
addInfoToCompletedMap(mapData);
|
|
796
|
-
|
|
797
|
-
if (getSetting('better-maps.show-map-solver-links', true)) {
|
|
798
|
-
addMapSolverLinks(mapData);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
if (! allMiceData) {
|
|
802
|
-
allMiceData = await getData('mice');
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* Fire the actions when the goals tab is hidden.
|
|
808
|
-
*/
|
|
809
|
-
const hideGoalsTab = () => {
|
|
810
|
-
removeArToggle();
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
export {
|
|
814
|
-
showGoalsTab,
|
|
815
|
-
hideGoalsTab
|
|
816
|
-
};
|