Greasy Fork is available in English.

Moomoo.io ItzF1ker1 editon

I'm trying to make dis. xd

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
  1. // ==UserScript==
  2. // @name Moomoo.io ItzF1ker1 editon
  3. // @namespace None.
  4. // @version 3.0
  5. // @description I'm trying to make dis. xd
  6. // @author ItzF1ker1
  7. // @match http://moomoo.io/*
  8. // @match https://moomoo.io/*
  9. // @match *://*.moomoo.io/*
  10. // @grant None.
  11. // @icon http://u.cubeupload.com/FikriXGamer/Crown.png
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. document.getElementById("gameName").innerHTML = "DeadGame.io";
  17. $('#leaderboard').append('Fancied by: ItzF1ker1');
  18. document.getElementById("diedText").innerHTML = "GIT GUD"
  19. $('#diedText').css({'background-color': 'rgba(0, 0, 0, 0.74)'});
  20. document.getElementById('enterGame').innerHTML = 'Press Here to Suffer';
  21. document.getElementById('loadingText').innerHTML = 'You gonna play this dead game? Ok...';
  22.  
  23. document.getElementById("pingDisplay").style.color = "#000000";
  24. const pingDisplay = $("#pingDisplay");
  25. pingDisplay.css("top", "8px");
  26. pingDisplay.css("display", "block");
  27.  
  28. $("body").append(pingDisplay);
  29.  
  30. (function() {
  31. var UPDATE_DELAY = 200;
  32.  
  33. var lastUpdate = 0;
  34. var frames = 0;
  35.  
  36. var displayElement = document.createElement("div");
  37. displayElement.style.padding = "5px";
  38. displayElement.style.font = "16px Hammersmith One";
  39. displayElement.style.display = "block";
  40. displayElement.style.position = "fixed";
  41. displayElement.style.top = "0px";
  42. displayElement.style.left = "0px";
  43. displayElement.textContent = "Calculating...";
  44. document.body.appendChild(displayElement);
  45.  
  46. function cssColorToRGB(color) {
  47. var values;
  48.  
  49. if (color.startsWith("rgba")) {
  50. values = color.substring(5, color.length - 1).split(",");
  51. } else if (color.startsWith("rgb")) {
  52. values = color.substring(4, color.length - 1).split(",");
  53. } else if (color.startsWith("#") && color.length === 4) {
  54. values = [];
  55. values[0] = "" + parseInt("0x" + color.substr(1, 1));
  56. values[1] = "" + parseInt("0x" + color.substr(2, 1));
  57. values[2] = "" + parseInt("0x" + color.substr(3, 1));
  58. } else if (color.startsWith("#") && color.length === 7) {
  59. values = [];
  60. values[0] = "" + parseInt("0x" + color.substr(1, 2));
  61. values[1] = "" + parseInt("0x" + color.substr(3, 2));
  62. values[2] = "" + parseInt("0x" + color.substr(5, 2));
  63. } else {
  64. return {r : 255, g : 255, b : 255};
  65. }
  66.  
  67. return {
  68. r : Number(values[0]),
  69. g : Number(values[1]),
  70. b : Number(values[2])
  71. };
  72. }
  73.  
  74. function getInvertedRGB(values) {
  75. return "rgb(" + (255 - values.r) + "," + (9 - values.g) + ","
  76. + (9 - values.b) + ")";
  77. }
  78.  
  79. function getOpaqueRGB(values) {
  80. return "rgba(" + values.r + "," + values.g + "," + values.b + ",0.7)";
  81. }
  82.  
  83. function updateCounter() {
  84. var bgColor = getComputedStyle(document.body, null).getPropertyValue(
  85. "background-color");
  86. var bgColorValues = cssColorToRGB(bgColor);
  87. var textColor = getInvertedRGB(bgColorValues);
  88. var displayBg = getOpaqueRGB(bgColorValues);
  89. displayElement.style.color = textColor;
  90. displayElement.style.background = displayBg;
  91.  
  92. var now = Date.now();
  93. var elapsed = now - lastUpdate;
  94. if (elapsed < UPDATE_DELAY) {
  95. ++frames;
  96. } else {
  97. var fps = Math.round(frames / (elapsed / 1000));
  98. displayElement.textContent = fps + " FPS";
  99. frames = 0;
  100. lastUpdate = now;
  101. }
  102.  
  103. requestAnimationFrame(updateCounter);
  104. }
  105.  
  106. lastUpdate = Date.now();
  107. requestAnimationFrame(updateCounter);
  108. })();
  109.  
  110. document.getElementById("scoreDisplay").style.color = "#C2B17A";
  111. document.getElementById("woodDisplay").style.color = "#758F58";
  112. document.getElementById("stoneDisplay").style.color = "#818198";
  113. document.getElementById("killCounter").style.color = "#B90000";
  114. document.getElementById("foodDisplay").style.color = "#AE4D54";
  115. document.getElementById("allianceButton").style.color = "#00F4FF";
  116. document.getElementById("chatButton").style.color = "#FFFFFF";
  117. document.getElementById("storeButton").style.color = "#FF7300";
  118. document.getElementById("ageText").style.color = "#3DFF00";
  119.  
  120. document.title="Moo Moo"
  121. setInterval(() => {
  122. setTimeout( () => {
  123. document.title="~oo Moo"
  124. setTimeout( () => {
  125. document.title="M~o Moo"
  126. setTimeout( () => {
  127. document.title="Mo~ Moo"
  128. setTimeout( () => {
  129. document.title="Moo~Moo"
  130. setTimeout( () => {
  131. document.title="Moo ~oo"
  132. setTimeout( () => {
  133. document.title="Moo M~o"
  134. setTimeout( () => {
  135. document.title="Moo Mo~"
  136. setTimeout( () => {
  137. }, 580);
  138. }, 580);
  139. }, 580);
  140. }, 580);
  141. }, 580);
  142. }, 580);
  143. }, 580);
  144. }, 580);}
  145. , 2000);
  146.  
  147. document.getElementById('nameInput').placeholder = "Your Cringe Name";
  148. $("#mapDisplay").css("background", "url('https://cdn.discordapp.com/attachments/654989610203742228/715081693655990353/20200527_125843.png')");
  149. $('#ageBar').css({'-webkit-border-radius': '0px',
  150. '-moz-border-radius': '0px',
  151. 'border-radius': '50px',
  152. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  153.  
  154. $('#ageBarBody').css({'-webkit-border-radius': '0px',
  155. '-moz-border-radius': '0px',
  156. 'border-radius': '50px',
  157. 'background-color': '#3DFF00'});
  158. $('#leaderboard').css({'-webkit-border-radius': '0px',
  159. '-moz-border-radius': '0px',
  160. 'border-radius': '50px',
  161. 'background-color': 'rgba(0, 0, 0, 0.4)',
  162. 'text-align': 'center'});
  163. $('.storeTab').css({'-webkit-border-radius': '0px',
  164. '-moz-border-radius': '0px',
  165. 'border-radius': '30px',
  166. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  167. $('#storeHolder').css({'-webkit-border-radius': '0px',
  168. '-moz-border-radius': '0px',
  169. 'border-radius': '0px',
  170. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  171. $('#allianceHolder').css({'-webkit-border-radius': '0px',
  172. '-moz-border-radius': '0px',
  173. 'border-radius': '30px',
  174. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  175. $('.actionBarItem').css({'-webkit-border-radius': '0px',
  176. 'border-radius': '30px',
  177. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  178. $('#chatBox').css({'-webkit-border-radius': '0px',
  179. '-moz-border-radius': '0px',
  180. 'border-radius': '30px',
  181. 'background-color': 'rgba(0, 0, 0, 0.4)',
  182. 'text-align': 'center'});
  183. $('.uiElement, .resourceDisplay').css({'-webkit-border-radius': '0px',
  184. '-moz-border-radius': '0px',
  185. 'border-radius': '20px',
  186. 'background-color': 'rgba(0, 0, 0, 0.4)'});
  187. $('#menuContainer').css({'white-space': 'normal'});
  188. $('#nativeResolution').css({'cursor': 'pointer'});
  189. $('#guideCard').css({'margin-top': 'auto',
  190. 'margin-bottom': '30px'});
  191. $('#serverSelect').css({'margin-bottom': '30.75px'});
  192. $('#skinColorHolder').css({'margin-bottom': '30.75px'});
  193. $('#gameName').css({'text-shadow': '0 1px 0 rgba(255, 255, 255, 0), 0 2px 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 0), 0 4px 0 rgba(255, 255, 255, 0), 0 5px 0 rgba(255, 255, 255, 0), 0 6px 0 rgba(255, 255, 255, 0), 0 7px 0 rgba(255, 255, 255, 0), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255, 0)',
  194. 'text-align': 'center',
  195. 'font-size': '156px',
  196. 'margin-bottom': '-30px'});
  197. $('#loadingText').css({'padding': '8px',
  198. 'right': '150%',
  199. 'left': '150%',
  200. 'margin-top': '40px'});
  201. $('.ytLink').css({'color': '#144db4',
  202. 'padding': '8px',});
  203. $('#nameInput').css({'border-radius': '0px',
  204. '-moz-border-radius': '0px',
  205. '-webkit-border-radius': '0px',
  206. 'border': 'hidden'});
  207. $('#serverSelect').css({'cursor': 'pointer',
  208. 'border': 'hidden',
  209. 'font-size': '20px'});
  210. $('.menuButton').css({'border-radius': '50px',
  211. '-moz-border-radius': '0px',
  212. '-webkit-border-radius': '0px'});
  213. })();