OUTDATED MOD, DO NOT USE

idk

  1. // ==UserScript==
  2. // @name OUTDATED MOD, DO NOT USE
  3. // @namespace aTMwY3BzIHN0cmF0dW1zIG1vZCAtIHdoeSBkaWQgeW91IGF0b2IgdGhpcw==
  4. // @version 1.4
  5. // @description idk
  6. // @author i30cps
  7. // @match *://stratums.io/*
  8. // @license MIT
  9. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX///8AAAD19fW7u7v5+fnm5ubx8fFfX1+2trZNTU38/Pynp6etra3r6+uEhIRvb2/Y2Njg4OBkZGQ+Pj54eHjR0dGPj4/FxcWZmZkzMzNUVFRpaWkUFBR1dXUhISHi4uJGRkYMDAwvLy+BgYEbGxuWlpYoKCgSEhJQUFAxMTFHR0fdMdvYAAAGDElEQVR4nO2d61YaQRCEaSVG8B5BoxKESDDx/R8wAcQDuzNTzVzcrpz5frOeLpfd6a7pHnq9SqVSqVQqlUrlEIZdB1CY+8WR7oOnd2UDKUT/SUSp8FgW12WDKcG1yAEKRb6XDSc/Z3KgQvlWNqDc3MnBCuWW6b30IhEK5YFH4kiiFMpD2bDycSmRCuWxbGC5OJdohTIqG1oexpKgUE7LBpeDI0lSKBdlw8vAIFHhW9nw0jmVRIVyXjbAVPqSrFD6ZUNM5DKDQtOFxoVkUKi9qhNesig0fBOPJItCsZufnmVSaHfZf8ikcFYyyBS+NAXGKpQvZQONpvUljVZ4VjbQaL5lUzgoG2g082wKpWygsbTWigSF47KhRjLOqNDmg9iOM17hj7KhRtJ+lcYrvC0baiTfMypclA01kpwKbdYXDoXKFPq8feVJ2VjjcMT5qKrXHQ+wTUPq3hHo6w2+7qvjOlFc9/lcuyKFxtLN3HmZSYU9Z6hyFbzG8dW2+y1tl4cbfgai/eERaPNN436gVtx7LrhY+q4waileeuN1e0uOZXDL9JNDV+J7pv4xcNyTpjG39/nPj16D+2X6TrPZ4uQ29OnLTgRAHAXiDvsFkWvx3MGq27YIRv2088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KoXpy/x4P1ZP793hOi9y/x8kauX+vSNa4/XtFskbu3+OhenL/Hidr5CPZOFkj9+8VR6py+/eKZI27JFQM1ZP793ionty/x3Na5P694nBxbv9ekaxx+/eKoXpu/36IkzVy/x73rJH79/ghJPfvFSsht3+vyNbIS0K8V0/u3+MRA/KWrh78MRhy/34FuIXc/v2aeVAgt3+/ITjLRO7fbwjZT+T+/TuBNnzy8++3+NvU2Y9U/cC7IHL79zv4RrbYk7Ud3K3q5P79Pq5NUfKSsEn7USTfBm3T3LIgdy1cjHfnC3l/zi7IeLSpMhYv/6e+NSfP18/c20uVSqVSqVQqFbv8BRGjP0vcrmCnAAAAAElFTkSuQmCC
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. var replacer = ['acyoepxusnACEOXKHMBDTI', 'асуоерхᴜꜱꪀАСЕОХКНМВᗪТI'];
  14. var chat;
  15. var shop;
  16. var cvs = document.querySelectorAll('canvas')[1];
  17. var updateMenuKey = false;
  18.  
  19. document.addEventListener('keydown', (e) => {
  20. if (!chat) {
  21. if (document.activeElement.placeholder.includes('Enter')) chat = document.activeElement;
  22. }
  23. else {
  24. for(let i = 0; i < replacer[0].length; i++){
  25. chat.value = chat.value.replaceAll(replacer[0].charAt(i), replacer[1].charAt(i));
  26. }
  27. }
  28. })
  29.  
  30.  
  31. // find the shop
  32. var shopFinder = setInterval(() => {
  33. if (document.querySelectorAll('span')[5].innerText == 'Giraffe Cap') {
  34. shop = document.querySelectorAll('span')[5].parentElement.parentElement;
  35. document.shop = shop;
  36. clearInterval(shopFinder);
  37. }
  38. }, 500);
  39.  
  40. /* Edit Start */
  41.  
  42. cvs.style.cursor = 'url(http://cur.cursors-4u.net/user/use-1/use153.cur), default';
  43.  
  44.  
  45. /* Edit End */
  46.  
  47. var menuChange = document.createElement("div");
  48. menuChange.className = "menuCard";
  49. menuChange.id = "mainSettings";
  50. menuChange.innerHTML = `
  51. <div id="simpleModal" class="modal">
  52. <div class="modal-content">
  53. <div class="modal-header">
  54. <span class="closeBtn">&times;</span>
  55. <h2 style="font-size: 17px;">Settings</h2>
  56. </div>
  57. <div class="modal-body" style="font-size: 17px;">
  58. <div class="modal-content" style="font-size:14px">
  59. <p>Info</p>
  60. </div>
  61. <div class="flexControl">
  62. <a id="menuchanger">Menu Key: Backquote - Click this text and press a key to change it!</a>
  63. <h3 style="font-size: 17px;"> Settings </h3>
  64. <label class="container">Bigger shop?
  65. <input type="checkbox" id="bigShop">
  66. <span class="checkmark"></span>
  67. </label>
  68. <label class="container">Aim Cursor?
  69. <input type="checkbox" id="aimCursor" checked="true">
  70. <span class="checkmark"></span>
  71. </label><br>
  72. </div>
  73. </div>
  74. </div>
  75. </div>`
  76. document.body.appendChild(menuChange)
  77.  
  78. setTimeout(() => { // buffer for modal to load
  79. // future: set the values to the localStorage i30cps binds
  80. setTimeout(() => { // buffer for modal to update
  81. setInterval(() => {
  82. // future: set the localStorage i30cps binds to their values
  83. }, 500);
  84. }, 1000);
  85. }, 500);
  86.  
  87. var styleItem = document.createElement("style");
  88. styleItem.type = "text/css";
  89. styleItem.appendChild(document.createTextNode(`
  90. .keyPressLow {
  91. margin-left: 8px;
  92. font-size: 16px;
  93. margin-right: 8px;
  94. height: 25px;
  95. width: 50px;
  96. background-color: #fcfcfc;
  97. border-radius: 3.5px;
  98. border: none;
  99. text-align: center;
  100. color: #4A4A4A;
  101. border: 0.5px solid #f2f2f2;
  102. }
  103. .menuPrompt {
  104. font-size: 17px;
  105. font-family: 'Hammersmith One';
  106. color: #4A4A4A;
  107. flex: 0.2;
  108. text-align: center;
  109. margin-top: 10px;
  110. display: inline-block;
  111. }
  112.  
  113. .modal {
  114. display: none;
  115. position: fixed;
  116. z-index: 1;
  117. left: 0;
  118. top: 0;
  119. overflow: auto;
  120. height: 100%;
  121. width: 100%;
  122. }
  123.  
  124. .modal-content {
  125. margin: 10% auto;
  126. width: 40%;
  127. box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  128. font-size: 14px;
  129. line-height: 1.6;
  130. }
  131.  
  132. .modal-header h2,
  133. .modal-footer h3 {
  134. margin: 0;
  135. }
  136.  
  137. .modal-header {
  138. background: #4287f5;
  139. padding: 15px;
  140. color: #fff;
  141. border-top-left-radius: 5px;
  142. border-top-right-radius: 5px;
  143. }
  144.  
  145. .modal-body {
  146. padding: 10px 20px;
  147. background: #fff;
  148. }
  149.  
  150. .modal-footer {
  151. background: #cf2727;
  152. padding: 10px;
  153. color: #fff;
  154. text-align: center;
  155. border-bottom-left-radius: 5px;
  156. border-bottom-right-radius: 5px;
  157. }
  158.  
  159. .closeBtn {
  160. color: #ccc;
  161. float: right;
  162. font-size: 30px;
  163. color: #fff;
  164. }
  165.  
  166. .closeBtn:hover,
  167. .closeBtn:focus {
  168. color: #000;
  169. text-decoration: none;
  170. cursor: pointer;
  171. }
  172.  
  173. /* Customize the label (the container) */
  174. .container {
  175. display: block;
  176. position: relative;
  177. padding-left: 35px;
  178. margin-bottom: 12px;
  179. cursor: pointer;
  180. font-size: 16px;
  181. -webkit-user-select: none;
  182. -moz-user-select: none;
  183. -ms-user-select: none;
  184. user-select: none;
  185. }
  186.  
  187. /* Hide the browser's default checkbox */
  188. .container input {
  189. position: absolute;
  190. opacity: 0;
  191. cursor: pointer;
  192. height: 0;
  193. width: 0;
  194. }
  195.  
  196. /* Create a custom checkbox */
  197. .checkmark {
  198. position: absolute;
  199. top: 0;
  200. left: 0;
  201. height: 25px;
  202. width: 25px;
  203. background-color: #eee;
  204. }
  205.  
  206. /* On mouse-over, add a grey background color */
  207. .container:hover input ~ .checkmark {
  208. background-color: #ccc;
  209. }
  210.  
  211. /* When the checkbox is checked, add a red background */
  212. .container input:checked ~ .checkmark {
  213. background-color: #cf2727;
  214. }
  215.  
  216. /* Create the checkmark/indicator (hidden when not checked) */
  217. .checkmark:after {
  218. content: "";
  219. position: absolute;
  220. display: none;
  221. }
  222.  
  223. /* Show the checkmark when checked */
  224. .container input:checked ~ .checkmark:after {
  225. display: block;
  226. }
  227.  
  228. /* Style the checkmark/indicator */
  229. .container .checkmark:after {
  230. left: 9px;
  231. top: 5px;
  232. width: 5px;
  233. height: 10px;
  234. border: solid white;
  235. border-width: 0 3px 3px 0;
  236. -webkit-transform: rotate(45deg);
  237. -ms-transform: rotate(45deg);
  238. transform: rotate(45deg);
  239. }
  240.  
  241. `))
  242. document.head.appendChild(styleItem);
  243.  
  244. var interv = setInterval(() => {
  245. if(!(localStorage.i30cps_MENU==undefined)){document.querySelector("#menuchanger").innerText = "Menu Key: "+localStorage.i30cps_MENU+" - Click this text and press a key to change it!";}
  246. if (document.querySelector("#menuchanger").innerText == "Menu Key: "+localStorage.i30cps_MENU+" - Click this text and press a key to change it!") {
  247. clearInterval(interv);
  248. }
  249. }, 500);
  250.  
  251. if (!(localStorage.i30cps=='true')) {
  252. localStorage.i30cps = !0;
  253. localStorage.i30cps_MENU = 'j';
  254. localStorage.i30cps_SPIKE = 'v';
  255. localStorage.i30cps_BOOST = 'f';
  256. localStorage.i30cps_MILL = 'z';
  257. localStorage.i30cps_TURRET = 'g';
  258. localStorage.i30cps_WALL = 't';
  259. localStorage.i30cps_SPAWNPAD = 'b';
  260. }
  261.  
  262. document.addEventListener('keydown', (e)=>{
  263. if (updateMenuKey) {
  264. updateMenuKey = false;
  265. localStorage.i30cps_MENU = e.code;
  266. document.querySelector("#menuchanger").innerText = "Menu Key: "+e.code+" - Click this text and press a key to change it!";
  267. }
  268. });
  269.  
  270. var modal = document.getElementById('simpleModal');
  271. var closeBtn = document.getElementsByClassName('closeBtn')[0];
  272.  
  273. window.addEventListener('keydown', function(e) {
  274. if (e.code == localStorage.i30cps_MENU){
  275. if (modal.style.display == "none") {
  276. modal.style.display = "block";
  277. } else {
  278. modal.style.display = "none";
  279. }
  280. }
  281. })
  282.  
  283. // Events
  284. closeBtn.addEventListener('click', closeModal);
  285. window.addEventListener('click', outsideClick);
  286.  
  287. // Close
  288. function closeModal() {
  289. modal.style.display = 'none';
  290. }
  291.  
  292. // Close If Outside Click
  293. function outsideClick(e) {
  294. if (e.target == modal) {
  295. modal.style.display = 'none';
  296. }
  297. }
  298.  
  299. document.querySelector("#menuchanger").onclick = (e) => {updateMenuKey = true}
  300.  
  301. document.querySelector("#aimCursor").addEventListener('change', function() {
  302. if (this.checked) {
  303. cvs.style.cursor = 'url(http://cur.cursors-4u.net/user/use-1/use153.cur), default';
  304. } else {
  305. cvs.style.cursor = 'default';
  306. }
  307. })
  308.  
  309. document.querySelector("#bigShop").addEventListener('change', function() {
  310. if (this.checked) {
  311. shop.style = 'height: 1250px; width: 400px';
  312. } else {
  313. shop.style = '';
  314. }
  315. })