Greasy Fork is available in English.

🐭️ MouseHunt - Taller Windows

Makes all the windows taller, so you can see more of the content without scrolling.

Встановити цей скрипт?
Скрипт запропонований Автором

Вам також може сподобатись 🐭️ MouseHunt - Minluck & Catch Rate Estimate.

Встановити цей скрипт
  1. // ==UserScript==
  2. // @name 🐭️ MouseHunt - Taller Windows
  3. // @description Makes all the windows taller, so you can see more of the content without scrolling.
  4. // @version 2.1.0
  5. // @license MIT
  6. // @author bradp
  7. // @namespace bradp
  8. // @match https://www.mousehuntgame.com/*
  9. // @icon https://i.mouse.rip/mh-improved/icon-64.png
  10. // @run-at document-end
  11. // @grant none
  12. // @require https://cdn.jsdelivr.net/npm/script-migration@1.1.1
  13. // ==/UserScript==
  14.  
  15. var mhui = (() => {
  16. var __defProp = Object.defineProperty;
  17. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  18. var __getOwnPropNames = Object.getOwnPropertyNames;
  19. var __hasOwnProp = Object.prototype.hasOwnProperty;
  20. var __export = (target, all) => {
  21. for (var name in all)
  22. __defProp(target, name, { get: all[name], enumerable: true });
  23. };
  24. var __copyProps = (to, from, except, desc) => {
  25. if (from && typeof from === "object" || typeof from === "function") {
  26. for (let key of __getOwnPropNames(from))
  27. if (!__hasOwnProp.call(to, key) && key !== except)
  28. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  29. }
  30. return to;
  31. };
  32. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  33. var __async = (__this, __arguments, generator) => {
  34. return new Promise((resolve, reject) => {
  35. var fulfilled = (value) => {
  36. try {
  37. step(generator.next(value));
  38. } catch (e) {
  39. reject(e);
  40. }
  41. };
  42. var rejected = (value) => {
  43. try {
  44. step(generator.throw(value));
  45. } catch (e) {
  46. reject(e);
  47. }
  48. };
  49. var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
  50. step((generator = generator.apply(__this, __arguments)).next());
  51. });
  52. };
  53.  
  54. // src/modules/taller-windows/index.js
  55. var taller_windows_exports = {};
  56. __export(taller_windows_exports, {
  57. default: () => taller_windows_default
  58. });
  59.  
  60. // src/utils/event-registry.js
  61. var eventsAdded = {};
  62. var onEvent = (event, callback, remove = false) => {
  63. if (!eventRegistry) {
  64. return;
  65. }
  66. const id = `${event}-${remove.toString()}-${callback.toString()}`;
  67. if (eventsAdded[id]) {
  68. return;
  69. }
  70. eventsAdded[id] = true;
  71. eventRegistry.addEventListener(event, callback, null, remove);
  72. };
  73.  
  74. // src/utils/styles.js
  75. var addModuleStyles = (styles, identifier = "mh-improved-styles", replace = false) => {
  76. const existingStyles = document.querySelector(`#${identifier}`);
  77. styles = Array.isArray(styles) ? styles.join("\n") : styles;
  78. if (existingStyles) {
  79. if (replace) {
  80. existingStyles.innerHTML = styles;
  81. } else {
  82. existingStyles.innerHTML += styles;
  83. }
  84. return existingStyles;
  85. }
  86. const style = document.createElement("style");
  87. style.id = identifier;
  88. style.innerHTML = styles;
  89. document.head.append(style);
  90. return style;
  91. };
  92. var addStyles = (styles, module = false, identifier = "mh-improved-styles") => {
  93. if (!module) {
  94. throw new Error("Module ID is required for adding module styles.", module);
  95. }
  96. const key = `${identifier}-${module}`;
  97. let stylesEl = addModuleStyles(styles, key, true);
  98. onEvent(`mh-improved-settings-changed-${module}`, (enabled) => {
  99. if (enabled) {
  100. stylesEl = addModuleStyles(styles, key, true);
  101. } else if (stylesEl) {
  102. stylesEl.remove();
  103. }
  104. });
  105. };
  106.  
  107. // src/utils/messages.js
  108. hadAddedErrorStyles = false;
  109.  
  110. // src/modules/taller-windows/styles.css
  111. var styles_default = ".springHuntHUD-popup-allEggs,.adventureBookPopup-titleContent,.convertibleOpenView-itemContainer,.marketplaceView-browse-content,.MHCheckoutAllRewardsPageView,.treasureMapListingsView-tableView,.treasureMapView-block-content.tall,.treasureMapView-blockWrapper.tall .treasureMapView-block-content,#messengerUINotification .notificationHeader,#supplytransfer .drawer .listContainer,#supplytransfer .drawer .tabContent,#supplytransfer .drawer{height:auto;max-height:75vh}#messengerUINotification .notificationMessageList,.treasureMapView-block-content,.treasureMapView-block-content.halfHeight{height:auto;max-height:55vh}#supplytransfer .drawer{padding-bottom:75px}.adventureBookPopup-titleContent{max-height:unset}.treasureMapDialogView.limitHeight .treasureMapView-block-content,.treasureMapDialogView.limitHeight .treasureMapDialogView-content{max-height:75vh}.treasureMapDialogView.wide.limitHeight{transform:translate(-50%,-100px)}.giftSelectorView-inbox-giftContainer,#overlayPopup .giftSelectorView-scroller{height:auto;min-height:300px;max-height:65vh}#overlayPopup.giftSelectorViewPopup{top:50px!important}.springHuntHUD-popup-regionContainer{display:contents}#overlayPopup .imgArray{min-height:105px;max-height:500px}.floatingIslandsWorkshop-parts-content{height:auto;background:linear-gradient(255deg,#fbf3b0 75%,#fdfcc7);border-bottom-right-radius:10px;border-bottom-left-radius:10px;outline:10px solid #fbf3ae;box-shadow:0 2px 1px 11px #b9570e,0 3px 2px 12px #985316,0 4px 1px 13px #84420f,0 5px 1px 14px #c47728,0 6px 1px 15px #cd7f2c,0 7px 1px 16px #e19439}.floatingIslandsWorkshop-stabilizer{top:325px;right:78px;left:unset;border:none;transform:rotate(90deg)}.floatingIslandsWorkshop-stabilizer label{color:#848383}.floatingIslandsWorkshop-part-name{position:absolute;top:0;right:10px;left:0}.floatingIslandsWorkshop-part-border{margin-top:18px;border-top-left-radius:0;border-top-right-radius:0}.floatingIslandsWorkshop-part-state a.mousehuntActionButton.tiny.lightBlue{font-size:9px;background:#fefad7;box-shadow:none}.floatingIslandsWorkshop-part-state a.mousehuntActionButton.tiny.lightBlue:before{background:#fff9c3;box-shadow:0 0 10px #f3ecb2 inset}.floatingIslandsWorkshop-parts-total{margin-right:15px}.floatingIslandsWorkshop-partsContainer{background-color:#fbf3ae;border-radius:5px}.floatingIslandsWorkshop-part.active .floatingIslandsWorkshop-part-border{background-color:#90cefa}.floatingIslandsWorkshop-part-state .mousehuntActionButton.tiny.selected{box-shadow:none}.floatingIslandsWorkshop-part-actions{background-color:#c48648}.floatingIslandsWorkshop-part.active .floatingIslandsWorkshop-part-border:after{border:none}.select2-results{max-height:50vh}.treasureMapDialogView.limitHeight .treasureMapDialogView-content{max-height:unset}.giftSelectorView-scroller{height:auto}.mh-gift-buttons-clone-wrapper{max-height:calc(75vh - 175px)}.mh-ui-goals-block .treasureMapView-block-content{max-height:75vh}.mh-ui-environments-block .treasureMapView-block-content{max-height:68vh}\n";
  112.  
  113. // src/modules/taller-windows/index.js
  114. var init = () => __async(void 0, null, function* () {
  115. addStyles(styles_default, "taller-windows");
  116. });
  117. var taller_windows_default = {
  118. id: "taller-windows",
  119. name: "Taller Windows",
  120. type: "feature",
  121. default: true,
  122. description: "Make popup and dialog windows taller.",
  123. load: init
  124. };
  125. return __toCommonJS(taller_windows_exports);
  126. })();
  127. mhImprovedVersion = "0.0.0-userscript;"
  128. mhImprovedPlatform = "userscript";
  129. mhui.default.load();
  130. migrateUserscript('Taller Windows', 'https://greasyfork.org/en/scripts/452235-mousehunt-taller-windows');