Hack doomed2.io

By Dimazik123

当前为 2020-07-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Hack doomed2.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description By Dimazik123
  6. // @author You
  7. // @grant GM_setValue
  8. // @grant GM_getValue
  9. // @grant GM_addValue
  10. // @grant GM_addStyle
  11. // @grant GM_getResourceText
  12. // @run-at document-end
  13. // @match *://doomed2.io/*
  14. // ==/UserScript==
  15.  
  16. document.getElementById("banner_div").remove(); // ad
  17. document.getElementById("preroll").remove(); // ad
  18.  
  19. let canvas = document.getElementById("canvas"); // canvas
  20. document.getElementById("input_username").setAttribute('maxlength', 2222222222222); // infinity symbols for input_username
  21.  
  22. const times = [];
  23. let fps;
  24.  
  25. let HackFPS = document.createElement("div"); //FPS counter
  26. HackFPS.style = "position:absolute;top:-8px;right:0px; left:245px;display:none;";
  27. HackFPS.innerHTML = `
  28. <p>FPS = <span id="TakeFPS"></span></p>
  29. `;
  30.  
  31. document.getElementById("console_div").appendChild(HackFPS);// Paste HackFPS
  32.  
  33. function refreshLoop() {
  34. window.requestAnimationFrame(() => {
  35. const now = performance.now();
  36. while (times.length > 0 && times[0] <= now - 1000) {
  37. times.shift();
  38. }
  39. times.push(now);
  40. fps = times.length;
  41. refreshLoop();
  42. document.getElementById("TakeFPS").innerHTML = fps; // paste fps in span
  43. });
  44. }
  45. refreshLoop(); // start fps function
  46.  
  47. //Hack menu
  48.  
  49. let HackMenu = document.createElement("div");
  50. HackMenu.id = "HackMenu";
  51. HackMenu.style = "display: none;";
  52. HackMenu.innerHTML = `
  53. <h3 style="text-align:center;font-size:23px;font-weight: 900;background: linear-gradient(to right,#ff8a00,#da1b60);-webkit-background-clip: text;-webkit-text-fill-color: transparent;">KrityHack v0.1</h3>
  54. <p class="functions" id="ShowFPS">ShowFPS</p>
  55. <p class="functions" id="Cursor">Cursor</p>
  56. <p class="functions" id="HotKeys">HotKeys</p>
  57. <p class="functions" id="ShowMyObjects">ShowMyObjects</p>
  58. <p class="functions" id="KeepMarkersOnDeath">KeepMarkersOnDeath</p>
  59. <p class="functions" id="Tracer">Tracer</p>
  60. <p class="functions" id="Boosters">Boosters</p>
  61. <p class="functions" id="IWantFap">IWantFap</p>
  62. `;
  63.  
  64. document.getElementById("game_page").appendChild(HackMenu);
  65.  
  66. document.getElementById("HotKeys").onclick = function (){
  67. if(this.style.color == ""){
  68. this.style.color = "rgb(255,219,0)";
  69. }
  70. else{
  71. this.style.color = "";
  72. }
  73. };
  74.  
  75. document.getElementById("ShowFPS").onclick = function (){
  76. if(this.style.color == ""){
  77. this.style.color = "rgb(255,219,0)";
  78. HackFPS.style.display = "block";
  79. }
  80. else{
  81. this.style.color = "";
  82. HackFPS.style.display = "none";
  83. }
  84. };
  85.  
  86. document.getElementById("Cursor").onclick = function (){
  87. if(this.style.color == ""){
  88. this.style.color = "rgb(255,219,0)";
  89. canvas.style = "cursor:url(https://drive.google.com/u/0/uc?id=1ima7DNPRd88iLBr6dI75BtBKl_lTqFFn&export=download), default;";
  90. }
  91. else{
  92. this.style.color = "";
  93. canvas.style = "cursor:crosshair;";
  94. }
  95. };
  96.  
  97. document.getElementById("HotKeys").onclick = function (){
  98. if(this.style.color == ""){
  99. this.style.color = "rgb(255,219,0)";
  100. }
  101. else{
  102. this.style.color = "";
  103. }
  104. };
  105.  
  106. document.getElementById("KeepMarkersOnDeath").onclick = function (){
  107. if(this.style.color == ""){
  108. this.style.color = "rgb(255,219,0)";
  109. }
  110. else{
  111. this.style.color = "";
  112. }
  113. };
  114.  
  115. document.getElementById("ShowMyObjects").onclick = function (){
  116. if(this.style.color == ""){
  117. this.style.color = "rgb(255,219,0)";
  118. }
  119. else{
  120. this.style.color = "";
  121. }
  122. };
  123.  
  124. document.getElementById("Tracer").onclick = function (){
  125. if(this.style.color == ""){
  126. this.style.color = "rgb(255,219,0)";
  127. }
  128. else{
  129. this.style.color = "";
  130. }
  131. };
  132.  
  133. document.getElementById("Boosters").onclick = function (){
  134. if(this.style.color == ""){
  135. this.style.color = "rgb(255,219,0)";
  136. }
  137. else{
  138. this.style.color = "";
  139. }
  140. };
  141.  
  142. document.getElementById("IWantFap").onclick = function (){
  143. if(this.style.color == ""){
  144. this.style.color = "rgb(255,219,0)";
  145. let inputClan = document.getElementById("input_clan_name");
  146. let createClan = document.getElementById("create_join_clan_button");
  147. let leaveClan = document.getElementById("leave_clan_button");
  148. let valueTry = prompt("Сколько раз повторить дрочку ?", 10);
  149. let valueInterval = prompt("Выберете интервал между дрочкой в секундах:", 0.5);
  150. let valueTrust = prompt("Выберите длительность дрочки в секундах", 0.5);
  151. valueInterval = valueInterval * 1000;
  152. valueTrust = valueTrust * 1000;
  153.  
  154. for(let i = 0, value = 0;i < valueTry;i++){
  155. value = valueInterval + value;
  156. setTimeout(function(){inputClan.value = "8✊===D";}, value);
  157. setTimeout(function(){createClan.click();}, value);
  158. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  159. value = valueInterval + value;
  160. setTimeout(function(){inputClan.value = "8=✊==D";}, value);
  161. setTimeout(function(){createClan.click();}, value);
  162. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  163. value = valueInterval + value;
  164. setTimeout(function(){inputClan.value = "8==✊=D";}, value);
  165. setTimeout(function(){createClan.click();}, value);
  166. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  167. value = valueInterval + value;
  168. setTimeout(function(){inputClan.value = "8===✊D";}, value);
  169. setTimeout(function(){createClan.click();}, value);
  170. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  171. value = valueInterval + value;
  172. setTimeout(function(){inputClan.value = "8===✊D~~";}, value);
  173. setTimeout(function(){createClan.click();}, value);
  174. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  175. value = valueInterval + value;
  176. setTimeout(function(){inputClan.value = "8===✊D";}, value);
  177. setTimeout(function(){createClan.click();}, value);
  178. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  179. value = valueInterval + value;
  180. setTimeout(function(){inputClan.value = "8==✊=D";}, value);
  181. setTimeout(function(){createClan.click();}, value);
  182. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  183. value = valueInterval + value;
  184. setTimeout(function(){inputClan.value = "8=✊==D";}, value);
  185. setTimeout(function(){createClan.click();}, value);
  186. setTimeout(function(){leaveClan.click();}, value + valueTrust);
  187.  
  188. if(i == valueTry - 1){
  189. setTimeout(function(){document.getElementById("IWantFap").style.color = "";}, value + valueTrust + 1000);
  190. }
  191.  
  192. }
  193. }
  194. };
  195.  
  196. GM_addStyle(`
  197. #HackMenu{
  198. border-radius:5px;
  199. border:1px solid white;
  200. background-color:rgb(0,0,0,0.5);
  201. position:absolute;
  202. width:200px;
  203. padding:10px 10px 10px 15px;
  204. top:20%;
  205. left:20%;
  206. }
  207. .functions{
  208. font-size:19px;
  209. font-weight:900;
  210. color:rgb(255,219,0,0.2);
  211. padding-left:5px;
  212. border-left:3px solid transparent;
  213. }
  214. .functions:hover{
  215. cursor:pointer;
  216. color:rgb(255,219,0,0.7);
  217. border-left:3px solid red;
  218. }
  219. `);
  220.  
  221. document.getElementById("server_url_menu").style.visibility = "hidden";
  222.  
  223. document.getElementById("server_url_button").onclick = function(){
  224. if(HackMenu.style.display === "none"){
  225. HackMenu.style.display = "block";
  226. }
  227. else{
  228. HackMenu.style.display = "none"
  229. }
  230. };
  231.  
  232. setTimeout(function HackActivated(){
  233. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  234. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  235. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  236. console.log("By Dimazik123"); // Send in console message
  237. },6000);