ProutexMacro v2

Read the description in GreasyFork!

当前为 2021-05-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name ProutexMacro v2
  3. // @namespace -
  4. // @version [2.0]
  5. // @description Read the description in GreasyFork!
  6. // @author Discord: GoblinTime#2714 : Greasy Fork镜像: ♡⚠♡GoblinTime♡⚠♡
  7. // @match *://sandbox.moomoo.io/*
  8. // @match *://moomoo.io/*
  9. // @grant none
  10. // @require https://gf.qytechs.cn/scripts/368273-msgpack/code/msgpack.js?version=598723
  11. // @require http://code.jquery.com/jquery-3.3.1.min.js
  12. // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
  13. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js
  14. // @require https://cdn.jsdelivr.net/npm/msgpack-lite@0.1.26/dist/msgpack.min.js
  15. // @require https://cdn.jsdelivr.net/npm/fontfaceobserver@2.1.0/fontfaceobserver.standalone.min.js
  16. // ==/UserScript==
  17. (function() {
  18. 'use strict';
  19. window.follmoo("moofoll", 1); // Start Resource
  20. function Head() {
  21. var meta = document.createElement('meta');
  22. meta.name = "viewport";
  23. meta.content = "initial-scale=1, maximum-scale=1, user-scalable=no";
  24. document.getElementsByTagName('head')[0].appendChild(meta);
  25. }
  26. Head();
  27.  
  28. $("#errorNotification").after(`
  29. <div id="ShowMenu">
  30. </span>
  31. <div id="addtext">LeftAndRightClick: On</div>
  32. <div id="addtext1">Left-Click</div>
  33. <div id="addtext2">Right-Click</div>
  34. <style>
  35. #ShowMenu {
  36. position:absolute !important;
  37. display:block;
  38. top: 5px;
  39. left: 5px;
  40. width: auto;
  41. height: auto;
  42. text-align: center;
  43. }
  44. #addtext,#addtext1,#addtext2{
  45. display: none;
  46. color: #fff;
  47. background: linear-gradient(to right, red, orange, yellow, green, cyan, blue, violet);
  48. background-size: 400% 400%;
  49. font-size: 20px;
  50. -webkit-background-clip: text;
  51. -webkit-text-fill-color: transparent;
  52. -webkit-animation: colorR 20s ease infinite;
  53. animation: colorR 20s ease infinite;
  54. }
  55. @-webkit-keyframes colorR {
  56. 0% { background-position: 0% 50% }
  57. 50% { background-position: 100% 50% }
  58. 100% { background-position: 0% 50% }
  59. }
  60. @keyframes colorR {
  61. 0% { background-position: 0% 50% }
  62. 50% { background-position: 100% 50% }
  63. 100% { background-position: 0% 50% }
  64. }
  65. </style>
  66. <script>
  67. let tm;
  68. let t = "MooMoo";
  69.  
  70. function change(icon, text) {
  71. document.querySelector('head title').innerHTML = text;
  72. document.querySelector('link[rel="shortcut icon"]').setAttribute('href',
  73. icon);
  74. }
  75. window.onblur = () => {
  76. tm = setTimeout(() => {
  77. change("https://cdn.discordapp.com/attachments/837884067822436382/838321077775237140/w16h161372343790hearts16.png",
  78. "😓COMEBACK!😓");
  79. }, 5000);
  80. }
  81. window.onfocus = () => {
  82. change("https://sandbox.moomoo.io/img/favicon.png?v=1", t);
  83. }
  84. </script>
  85. `);
  86.  
  87. var Clicks = false;
  88. const cvs = document.getElementById("gameCanvas")
  89. cvs.addEventListener("mousedown", clicks, false);
  90. function clicks(e) {
  91. if (e.button == 0) {
  92. if (Clicks == true) {
  93. document.getElementById('addtext1').style
  94. .display = "block";
  95. window.storeEquip(0, 1);
  96. window.storeEquip(7);
  97. window.storeEquip(18, 1);
  98. setTimeout(function() {
  99. window.storeEquip(11);
  100. window.storeEquip(21, 1);
  101. }, 100);
  102. setTimeout(function() {
  103. window.storeEquip(53);
  104. window.storeEquip(21, 1);
  105. }, 180);
  106. setTimeout(function() {
  107. window.storeEquip(6);
  108. window.storeEquip(13, 1);
  109. }, 260);
  110. setTimeout(function() {
  111. document.getElementById('addtext1').style
  112. .display = "none";
  113. }, 600);
  114. }
  115. }
  116. if (e.button == 2) {
  117. if (Clicks == true) {
  118. document.getElementById('addtext2').style
  119. .display = "block";
  120. window.storeEquip(0, 1);
  121. window.storeEquip(20);
  122. window.storeEquip(19, 1);
  123. setTimeout(function() {
  124. window.storeEquip(40);
  125. window.storeEquip(19, 1);
  126. }, 120);
  127. setTimeout(function() {
  128. window.storeEquip(6);
  129. window.storeEquip(19, 1);
  130. }, 200);
  131. setTimeout(function() {
  132. document.getElementById('addtext2').style
  133. .display = "none";
  134. }, 600);
  135. }
  136. }
  137. }
  138. document.addEventListener('keydown', (e) => { // Add event
  139. switch (e.keyCode) {
  140. case 74: // [Button]- J
  141. if (Clicks == false) {
  142. document.getElementById('addtext').style
  143. .display = "block";
  144. Clicks = true;
  145. } else {
  146. document.getElementById('addtext').style
  147. .display = "none";
  148. Clicks = false;
  149. }
  150. break;
  151. case 37: // [Button]- Left Arrow
  152.  
  153. break;
  154. case 38: // [Button]- Up Arrow
  155. window.sendJoin(
  156. 0); // Send a request to the very first clan
  157. break;
  158. case 82: // [Button]- R
  159. console.log("Bull, Blood[Wings]");
  160. window.storeEquip(0, 1);
  161. window.storeBuy(7); // [Buy, Hat]- BullHelmet
  162. window.storeBuy(18, 1); // [Buy, Acc]- Blood Wings
  163. window.storeEquip(7); // [Equip, Hat]- BullHelmet
  164. window.storeEquip(21,
  165. 1); // [Equip, Acc]- Blood Wings
  166. break;
  167. case 81: // [Button]- Q
  168. console.log("Soldier, X[Wings]");
  169. window.storeEquip(0, 1);
  170. window.storeBuy(6); // [Buy, Hat]- SoldierGear
  171. window.storeBuy(21, 1); // [Buy, Acc]- X Wings
  172. window.storeEquip(6); // [Equip, Hat]- SoldierGear
  173. window.storeEquip(21, 1); // [Equip, Acc]- X Wings
  174. break;
  175. case 16: // [Button]- Shift
  176. console.log("Boost, Tail");
  177. window.storeEquip(0, 1);
  178. window.storeBuy(12); // [Buy, Hat]- Booster
  179. window.storeBuy(11, 1); // [Buy, Acc]- Tail
  180. window.storeEquip(12); // [Equip, Hat]- Booster
  181. window.storeEquip(11, 1); // [Equip, Acc]- X Wings
  182. break;
  183. case 84: // [Button]- T
  184. console.log("Soldier, X[Wings]");
  185. window.storeEquip(0, 1);
  186. window.storeBuy(6); // [Buy, Hat]- Soldier
  187. window.storeBuy(21, 1); // [Buy, Acc]- X Wings
  188. window.storeEquip(6); // [Equip, Hat]- Soldier
  189. window.storeEquip(21, 1); // [Equip, Acc]- X Wings
  190. break;
  191. case 90: // [Button]- Z
  192. console.log("Tank, Black[Wings]");
  193. window.storeEquip(0, 1);
  194. window.storeBuy(40); // [Buy, Hat]- Tank
  195. window.storeBuy(19, 1); // [Buy, Acc]- Black Wings
  196. window.storeEquip(40); // [Equip, Hat]- Tank
  197. window.storeEquip(19,
  198. 1); // [Equip, Acc]- Black Wings
  199. break;
  200. }
  201. });
  202. /* Instructions for adding items: You need to put this code in a comment here is how I commented out this text */
  203. // /*
  204. document.getElementById('gameName').innerText = 'ProutexMacro';
  205. document.getElementById("moomooio_728x90_home").style.display = "none";
  206. $("#moomooio_728x90_home").parent().css({
  207. display: "none"
  208. });
  209. document.getElementById("promoImg").remove();
  210. document.getElementById('adCard').remove();
  211. $("#youtuberOf").remove();
  212. $("#followText").remove();
  213. $("#promoImgHolder").remove();
  214. $("#twitterFollow").remove();
  215. $("#joinPartyButton").remove();
  216. $("#linksContainer2").remove();
  217. $("#partyButton").remove();
  218. $("#youtubeFollow").remove();
  219. $("#adCard").remove();
  220. $("#adBlock").remove();
  221. $("#mobileInstructions").remove();
  222. $("#downloadButtonContainer").remove();
  223. $("#mobileDownloadButtonContainer").remove();
  224. $(".downloadBadge").remove();
  225. // */
  226. setTimeout(() => {
  227. document.getElementById('ot-sdk-btn-floating').remove();
  228. document.getElementById('pre-content-container').remove();
  229. }, 1000);
  230. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址