Hack doomed2.io

By RESIDENT

  1. // ==UserScript==
  2. // @name Hack doomed2.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.50
  5. // @description By RESIDENT
  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.  
  17.  
  18.  
  19. if(window.location.href == "http://doomed2.io/" || window.location.href == "http://doomed2.io/index.html"){
  20. document.getElementById("banner_div").remove(); // ad
  21. document.getElementById("preroll").remove(); // ad
  22.  
  23. let canvas = document.getElementById("canvas"); // canvas
  24. document.getElementById("input_username").setAttribute('maxlength', 2222222222222); // infinity symbols for input_username
  25.  
  26. const times = [];
  27. let fps;
  28.  
  29. let HackFPS = document.createElement("div"); //FPS counter
  30. HackFPS.style = "position:absolute;top:-8px;right:0px; left:245px;display:none;";
  31. HackFPS.innerHTML = `
  32. <p>FPS = <span id="TakeFPS"></span></p>
  33. `;
  34.  
  35. document.getElementById("console_div").appendChild(HackFPS);// Paste HackFPS
  36.  
  37. function refreshLoop() {
  38. window.requestAnimationFrame(() => {
  39. const now = performance.now();
  40. while (times.length > 0 && times[0] <= now - 1000) {
  41. times.shift();
  42. }
  43. times.push(now);
  44. fps = times.length;
  45. refreshLoop();
  46. document.getElementById("TakeFPS").innerHTML = fps; // paste fps in span
  47. });
  48. }
  49. refreshLoop(); // start fps function
  50.  
  51. //Hack menu
  52.  
  53. let HackMenu = document.createElement("div");
  54. HackMenu.id = "HackMenu";
  55. HackMenu.style = "display: none;";
  56. HackMenu.innerHTML = `
  57. <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 v1.2</h3>
  58. <p class="functions" id="ShowFPS">ShowFPS</p>
  59. <p class="functions" id="Cursor">Cursor</p>
  60. <p class="functions" id="HotKeys">HotKeys</p>
  61. <p class="functions" id="ShowMyObjects">ShowMyObjects</p>
  62. <p class="functions" id="KeepMarkersOnDeath">KeepMarkersOnDeath</p>
  63. <p class="functions" id="Tracer">Tracer</p>
  64. <p class="functions" id="Boosters">Boosters</p>
  65. <p class="functions" id="IWantFap">IWantFap</p>
  66. <p class="funcrions" id="----ELITE MENU----">----ELITE MENU----<p/>
  67. <p class="functions" id="Menu Жнеца">Menu Жнеца√</p>
  68. <p class="functions" id="Menu RESIDENT">Menu RESIDENT√</p>
  69. <p class="functions" id="Menu DIMAZIK123">Menu DIMAZIK123√<p>
  70. `;
  71.  
  72. document.getElementById("game_page").appendChild(HackMenu);
  73.  
  74. document.getElementById("HotKeys").onclick = function (){
  75. if(this.style.color == ""){
  76. this.style.color = "rgb(255,219,0)";
  77. }
  78. else{
  79. this.style.color = "";
  80. }
  81. };
  82.  
  83. document.getElementById("ShowFPS").onclick = function (){
  84. if(this.style.color == "" || HackFPS.style.display == "none"){
  85. this.style.color = "rgb(34, 255, 0)";
  86. HackFPS.style.display = "block";
  87. }
  88. else{
  89. this.style.color = "";
  90. HackFPS.style.display = "none";
  91. }
  92. };
  93.  
  94. document.getElementById("Cursor").onclick = function (){
  95. if(this.style.color == ""){
  96. this.style.color = "rgb(34, 255, 0)";
  97. canvas.style = "cursor:url(https://drive.google.com/u/0/uc?id=1ima7DNPRd88iLBr6dI75BtBKl_lTqFFn&export=download), default;";
  98. }
  99. else{
  100. this.style.color = "";
  101. canvas.style = "cursor:crosshair;";
  102. }
  103. };
  104.  
  105. document.getElementById("HotKeys").onclick = function (){
  106. if(this.style.color == ""){
  107. this.style.color = "rgb(34, 255, 0)";
  108. }
  109. else{
  110. this.style.color = "";
  111. }
  112. };
  113.  
  114. document.getElementById("KeepMarkersOnDeath").onclick = function (){
  115. if(this.style.color == ""){
  116. this.style.color = "rgb(0, 34, 255)";
  117. }
  118. else{
  119. this.style.color = "";
  120. }
  121. };
  122.  
  123. document.getElementById("ShowMyObjects").onclick = function (){
  124. if(this.style.color == ""){
  125. this.style.color = "rgb(34, 255, 0)";
  126. }
  127. else{
  128. this.style.color = "";
  129. }
  130. };
  131.  
  132. document.getElementById("Tracer").onclick = function (){
  133. if(this.style.color == ""){
  134. this.style.color = "rgb(0, 34, 255)";
  135. }
  136. else{
  137. this.style.color = "";
  138. }
  139. };
  140.  
  141. document.getElementById("Boosters").onclick = function (){
  142. if(this.style.color == ""){
  143. this.style.color = "rgb(0, 34, 255)";
  144. }
  145. else{
  146. this.style.color = "";
  147. }
  148. };
  149.  
  150. document.getElementById("IWantFap").onclick = function (){
  151. if(this.style.color == ""){
  152. this.style.color = "rgb(0, 34, 255)";
  153. let inputClan = document.getElementById("input_clan_name");
  154. let createClan = document.getElementById("create_join_clan_button");
  155. let leaveClan = document.getElementById("leave_clan_button");
  156. let valueTry = prompt("Сколько раз повторить дрочку ?", 10);
  157. let valueInterval = prompt("Выберите длительность дрочки в секундах", 0.5);
  158. valueInterval = valueInterval * 1000;
  159.  
  160. if(!null){
  161. for(let i = 0, value = 0;i < valueTry;i++){
  162. value = valueInterval + value;
  163. setTimeout(function(){inputClan.value = "";}, value);
  164. setTimeout(function(){createClan.click();}, value);
  165. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  166. value = valueInterval + value;
  167. setTimeout(function(){inputClan.value = "Y";}, value);
  168. setTimeout(function(){createClan.click();}, value);
  169. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  170. value = valueInterval + value;
  171. setTimeout(function(){inputClan.value = "Yo";}, value);
  172. setTimeout(function(){createClan.click();}, value);
  173. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  174. value = valueInterval + value;
  175. setTimeout(function(){inputClan.value = "You ";}, value);
  176. setTimeout(function(){createClan.click();}, value);
  177. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  178. value = valueInterval + value;
  179. setTimeout(function(){inputClan.value = "You l";}, value);
  180. setTimeout(function(){createClan.click();}, value);
  181. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  182. value = valueInterval + value;
  183. setTimeout(function(){inputClan.value = "You los";}, value);
  184. setTimeout(function(){createClan.click();}, value);
  185. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  186. value = valueInterval + value;
  187. setTimeout(function(){inputClan.value = "You lose";}, value);
  188. setTimeout(function(){createClan.click();}, value);
  189. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  190. value = valueInterval + value;
  191. setTimeout(function(){inputClan.value = "You los";}, value);
  192. setTimeout(function(){createClan.click();}, value);
  193. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  194. setTimeout(function(){inputClan.value = "You lo";}, value);
  195. setTimeout(function(){createClan.click();}, value);
  196. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  197. value = valueInterval + value;
  198. setTimeout(function(){inputClan.value = "You l";}, value);
  199. setTimeout(function(){createClan.click();}, value);
  200. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  201. value = valueInterval + value;
  202. setTimeout(function(){inputClan.value = "You ";}, value);
  203. setTimeout(function(){createClan.click();}, value);
  204. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  205. setTimeout(function(){inputClan.value = "You";}, value);
  206. setTimeout(function(){createClan.click();}, value);
  207. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  208. value = valueInterval + value;
  209. setTimeout(function(){inputClan.value = "Yo";}, value);
  210. setTimeout(function(){createClan.click();}, value);
  211. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  212. value = valueInterval + value;
  213. setTimeout(function(){inputClan.value = "Y";}, value);
  214. setTimeout(function(){createClan.click();}, value);
  215. setTimeout(function(){leaveClan.click();}, value + valueInterval);
  216.  
  217. if(i == valueTry - 1){
  218. setTimeout(function(){document.getElementById("IWantFap").style.color = "";}, value + valueInterval);
  219. }
  220.  
  221. }
  222. }
  223. }
  224. };
  225.  
  226. document.getElementById("Menu Жнеца").onclick = function (){
  227. if(this.style.color == ""){
  228. this.style.color = "rgb(255, 0, 34)";
  229. }
  230. else{
  231. this.style.color = "";
  232. }
  233. }
  234. };
  235.  
  236. document.getElementById("Menu RESIDENT").onclick = function (){
  237. if(this.style.color == ""){
  238. this.style.color = "rgb(255, 0, 34)";
  239. }
  240. else{
  241. this.style.color = "";
  242. }
  243. };
  244.  
  245. document.getElementById("Menu DIMAZIK123").onclick = function (){
  246. if(this.style.color == ""){
  247. this.style.color = "rgb(255, 0, 34)";
  248. }
  249. else{
  250. this.style.color = "";
  251. }
  252. };
  253.  
  254. GM_addStyle(`
  255. #HackMenu{
  256. border-radius:5px;
  257. border:1px solid white;
  258. background-color:rgb(0,0,0,0.5);
  259. position:absolute;
  260. width:200px;
  261. padding:10px 10px 10px 15px;
  262. top:20%;
  263. left:20%;
  264. }
  265. .functions{
  266. font-size:19px;
  267. font-weight:900;
  268. color:rgb(255,219,0,0.2);
  269. padding-left:5px;
  270. border-left:3px solid transparent;
  271. }
  272. .functions:hover{
  273. cursor:pointer;
  274. color:rgb(255,219,0,0.7);
  275. border-left:3px solid red;
  276. }
  277. `);
  278.  
  279. document.getElementById("server_url_menu").style.visibility = "hidden";
  280.  
  281. document.getElementById("server_url_button").onclick = function(){
  282. if(HackMenu.style.display === "none"){
  283. HackMenu.style.display = "block";
  284. }
  285. else{
  286. HackMenu.style.display = "none"
  287. }
  288. };
  289. console.log("Doomed2.io");
  290.  
  291. //Name Hack
  292.  
  293. const abc = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  294. const letters = ["𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌𝐍𝐎𝐏𝐐𝐑𝐒𝐓𝐔𝐕𝐖𝐗𝐘𝐙","𝘢𝘣𝘤𝘥𝘦𝘧𝘨𝘩𝘪𝘫𝘬𝘭𝘮𝘯𝘰𝘱𝘲𝘳𝘴𝘵𝘶𝘷𝘸𝘹𝘺𝘻𝘈𝘉𝘊𝘋𝘌𝘍𝘎𝘏𝘐𝘑𝘒𝘓𝘔𝘕𝘖𝘗𝘘𝘙𝘚𝘛𝘜𝘝𝘞𝘟𝘠𝘡","𝙖𝙗𝙘𝙙𝙚𝙛𝙜𝙝𝙞𝙟𝙠𝙡𝙢𝙣𝙤𝙥𝙦𝙧𝙨𝙩𝙪𝙫𝙬𝙭𝙮𝙯𝘼𝘽𝘾𝘿𝙀𝙁𝙂𝙃𝙄𝙅𝙆𝙇𝙈𝙉𝙊𝙋𝙌𝙍𝙎𝙏𝙐𝙑𝙒𝙓𝙔𝙕","𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉","𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷𝔄𝔅ℭ𝔇𝔈𝔉𝔊ℌℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜ℨ","𝖆𝖇𝖈𝖉𝖊𝖋𝖌𝖍𝖎𝖏𝖐𝖑𝖒𝖓𝖔𝖕𝖖𝖗𝖘𝖙𝖚𝖛𝖜𝖝𝖞𝖟𝕬𝕭𝕮𝕯𝕰𝕱𝕲𝕳𝕴𝕵𝕶𝕷𝕸𝕹𝕺𝕻𝕼𝕽𝕾𝕿𝖀𝖁𝖂𝖃𝖄𝖅","𝒶𝒷𝒸𝒹𝑒𝒻𝑔𝒽𝒾𝒿𝓀𝓁𝓂𝓃𝑜𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏𝒜𝐵𝒞𝒟𝐸𝐹𝒢𝐻𝐼𝒥𝒦𝐿𝑀𝒩𝒪𝒫𝒬𝑅𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵","𝓪𝓫𝓬𝓭𝓮𝓯𝓰𝓱𝓲𝓳𝓴𝓵𝓶𝓷𝓸𝓹𝓺𝓻𝓼𝓽𝓾𝓿𝔀𝔁𝔂𝔃𝓐𝓑𝓒𝓓𝓔𝓕𝓖𝓗𝓘𝓙𝓚𝓛𝓜𝓝𝓞𝓟𝓠𝓡𝓢𝓣𝓤𝓥𝓦𝓧𝓨𝓩","ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ","🅐🅑🅒🅓🅔🅕🅖🅗🅘🅙🅚🅛🅜🅝🅞🅟🅠🅡🅢🅣🅤🅥🅦🅧🅨🅩🅐🅑🅒🅓🅔🅕🅖🅗🅘🅙🅚🅛🅜🅝🅞🅟🅠🅡🅢🅣🅤🅥🅦🅧🅨🅩","𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","ᴀʙᴄᴅᴇғɢʜɪᴊᴋʟᴍɴᴏᴘǫʀsᴛᴜᴠᴡxʏᴢᴀʙᴄᴅᴇғɢʜɪᴊᴋʟᴍɴᴏᴘǫʀsᴛᴜᴠᴡxʏᴢ","ᗩᗷᑕᗪEᖴGᕼIᒍKᒪᗰᑎOᑭᑫᖇᔕTᑌᐯᗯ᙭YᘔᗩᗷᑕᗪEᖴGᕼIᒍKᒪᗰᑎOᑭᑫᖇᔕTᑌᐯᗯ᙭Yᘔ","αв¢∂єfgнιנкℓмиσρqяѕтυνωχуzαв¢∂єfgнιנкℓмиσρqяѕтυνωχуz","αвcdeғɢнιjĸlмɴopqrѕтυvwхyzαвcdeғɢнιjĸlмɴopqrѕтυvwхyz","αвcdєfghíjklmnσpqrstuvwхчzαвcdєfghíjklmnσpqrstuvwхчz","卂乃匚ᗪ乇千Ꮆ卄丨フҜㄥ爪几ㄖ卩Ɋ尺丂ㄒㄩᐯ山乂ㄚ乙卂乃匚ᗪ乇千Ꮆ卄丨フҜㄥ爪几ㄖ卩Ɋ尺丂ㄒㄩᐯ山乂ㄚ乙"
  295. ];
  296. const styles = [
  297. "Default (Name Font)","𝐁𝐨𝐥𝐝","𝘐𝘵𝘢𝘭𝘪𝘤","𝘽𝙤𝙡𝙙+𝙄𝙩𝙖𝙡𝙞𝙘","𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎","𝔉𝔯𝔞𝔨𝔱𝔲𝔯","𝕭𝖔𝖑𝖉+𝕱𝖗𝖆𝖐𝖙𝖚𝖗","𝐻𝒶𝓃𝒹","𝓑𝓸𝓵𝓭+𝓗𝓪𝓷𝓭","Ⓑⓤⓑⓑⓛⓔⓢ","🅑🅛🅐🅒🅚 🅑🅤🅑🅑🅛🅔🅢","𝔻𝕠𝕦𝕓𝕝𝕖","Thin","sᴍᴀʟʟ ᴄᴀᴘs","ᔕᑭEᑕIᗩᒪ","αитяσρвια","ѕмooтнer","pαrαnσrmαl","千卂几匚ㄚ"
  298. ];
  299.  
  300.  
  301. (function (){
  302. var styleSelect = document.createElement("select");
  303. styleSelect.style.backgroundColor = "#1a1a1a";
  304. styleSelect.style.color = "white";
  305. styleSelect.style.marginTop = "3px";
  306. styleSelect.style.width = "300px";
  307. styleSelect.id = "fontselecter";
  308. for (var k = 0; k < styles.length; k++) {
  309. var option = document.createElement("option");
  310. option.text = styles[k];
  311. styleSelect.add(option);
  312. }
  313.  
  314. //document.querySelector("body > div:nth-child(3) > div:nth-child(5) > div:nth-child(2)").appendChild(styleSelect);
  315. document.querySelector("#social_icon_div > div:nth-child(2)").appendChild(styleSelect);
  316. document.querySelector("#fontselecter option").style.width = "300px";
  317.  
  318. styleSelect.selectedIndex = GM_getValue("style");
  319. styleSelect.onchange = function () {
  320. GM_setValue("style", styleSelect.selectedIndex);
  321. };
  322.  
  323. var chatInput = document.getElementById("input_username");
  324. chatInput.onkeyup = function () {
  325. if (
  326. ((styleSelect.selectedIndex !== 0) & !chatInput.value.startsWith("/")) |
  327. chatInput.value.startsWith("/p ")
  328. ) {
  329. var fancyText = chatInput.value.startsWith("/p ")
  330. ? chatInput.value.substr(3)
  331. : chatInput.value;
  332. for (var k = 0; k < 52; k++) {
  333. var regex = new RegExp(abc[k], "g");
  334. fancyText = fancyText.replace(
  335. regex,
  336. Array.from(letters[styleSelect.selectedIndex - 1])[k]
  337. );
  338. }
  339. chatInput.value = chatInput.value.startsWith("/p ")
  340. ? "/p " + fancyText
  341. : fancyText;
  342. }
  343. };
  344. }());
  345.  
  346.  
  347. let AAAAAAAAAAAAAAAAAAAA = true;
  348. document.getElementById("connect_button").onclick = setTimeout(function (){
  349. if(AAAAAAAAAAAAAAAAAAAA){
  350. AAAAAAAAAAAAAAAAAAAA = false;
  351. (function chatSymbolsHack(){
  352. var styleSelect = document.createElement("select");
  353. styleSelect.style = "z-index:999999999;position: absolute;cursor: pointer;left: 84px;top: 37px;color: white;width: 300px";
  354. styleSelect.style.backgroundColor = "#1a1a1a";
  355. styleSelect.id = "fontselecter1";
  356. for (var k = 0; k < styles.length; k++) {
  357. var option = document.createElement("option");
  358. option.text = styles[k];
  359. styleSelect.add(option);
  360. }
  361.  
  362. //document.querySelector("body > div:nth-child(3) > div:nth-child(5) > div:nth-child(2)").appendChild(styleSelect);
  363. document.querySelector("#game_page > div").appendChild(styleSelect);
  364. document.querySelector("#fontselecter1 option").style.width = "300px";
  365.  
  366. styleSelect.selectedIndex = GM_getValue("style");
  367. styleSelect.onchange = function () {
  368. GM_setValue("style", styleSelect.selectedIndex);
  369. };
  370.  
  371. var chatInput = document.getElementById("console_text_input");
  372. chatInput.onkeyup = function () {
  373. if (
  374. ((styleSelect.selectedIndex !== 0) & !chatInput.value.startsWith("/")) |
  375. chatInput.value.startsWith("/p ")
  376. ) {
  377. var fancyText = chatInput.value.startsWith("/p ")
  378. ? chatInput.value.substr(3)
  379. : chatInput.value;
  380. for (var k = 0; k < 52; k++) {
  381. var regex = new RegExp(abc[k], "g");
  382. fancyText = fancyText.replace(
  383. regex,
  384. Array.from(letters[styleSelect.selectedIndex - 1])[k]
  385. );
  386. }
  387. chatInput.value = chatInput.value.startsWith("/p ")
  388. ? "/p " + fancyText
  389. : fancyText;
  390. }
  391. };
  392. }());
  393.  
  394. (function clanSymbolsHack(){
  395. var styleSelect = document.createElement("select");
  396. styleSelect.style.backgroundColor = "#1a1a1a";
  397. styleSelect.style.color = "white";
  398. styleSelect.style.marginTop = "3px";
  399. styleSelect.style.width = "300px";
  400. styleSelect.id = "fontselecter2";
  401. for (var k = 0; k < styles.length; k++) {
  402. var option = document.createElement("option");
  403. option.text = styles[k];
  404. styleSelect.add(option);
  405. }
  406.  
  407. //document.querySelector("body > div:nth-child(3) > div:nth-child(5) > div:nth-child(2)").appendChild(styleSelect);
  408. document.querySelector("#clan_menu").appendChild(styleSelect);
  409. document.querySelector("#fontselecter2 option").style.width = "300px";
  410.  
  411. styleSelect.selectedIndex = GM_getValue("style");
  412. styleSelect.onchange = function () {
  413. GM_setValue("style", styleSelect.selectedIndex);
  414. };
  415.  
  416. var chatInput = document.getElementById("input_clan_name");
  417. chatInput.onkeyup = function () {
  418. if (
  419. ((styleSelect.selectedIndex !== 0) & !chatInput.value.startsWith("/")) |
  420. chatInput.value.startsWith("/p ")
  421. ) {
  422. var fancyText = chatInput.value.startsWith("/p ")
  423. ? chatInput.value.substr(3)
  424. : chatInput.value;
  425. for (var k = 0; k < 52; k++) {
  426. var regex = new RegExp(abc[k], "g");
  427. fancyText = fancyText.replace(
  428. regex,
  429. Array.from(letters[styleSelect.selectedIndex - 1])[k]
  430. );
  431. }
  432. chatInput.value = chatInput.value.startsWith("/p ")
  433. ? "/p " + fancyText
  434. : fancyText;
  435. }
  436. };
  437.  
  438. })();
  439. }
  440. },2000);
  441.  
  442. //Name Hack
  443.  
  444. //Default settings
  445.  
  446. let FPS_COUNTER = true;
  447. let CURSOR = true;
  448.  
  449. document.getElementById("connect_button").onclick = function (){
  450. if(FPS_COUNTER){
  451. HackFPS.style.display = "block";
  452. document.getElementById("ShowFPS").style.color = "rgb(255,219,0)";
  453. }
  454. if(CURSOR){
  455. setTimeout(() => {
  456. document.getElementById("Cursor").style.color = "rgb(255,219,0)";
  457. canvas.style = "cursor:url(https://drive.google.com/u/0/uc?id=1ima7DNPRd88iLBr6dI75BtBKl_lTqFFn&export=download), default;";
  458. },2000);
  459. }
  460. };
  461. //Default settings
  462.  
  463. if(window.location.href == "http://doomed2.io/leaderboard.html"){
  464. document.querySelector("body > div").style = "max-width:1300px; margin:0 auto;text-align:center;left:0;right:0";
  465. document.querySelector("body > div > div > div:nth-child(2)").style = "text-align:center;margin:10px 0";
  466. document.querySelector("body > div > div > div:nth-child(3)").style = "text-align:center;margin:10px 0";
  467.  
  468. let aTop25 = document.createElement("a");
  469. aTop25.innerText = "Top 25 players of Doomed2.io";
  470. aTop25.href = "https://krityteam.github.io/Doomed2-LeaderBoard/";
  471. aTop25.style = "font-size:20px;font-weight:700;font-family:inherit;margin:15px auto;display:block;border-radius:10px;text-decoration:none;width: 800px;height:auto;overflow:hidden;background-color:#cf0e0e;color:white;padding: 10px;";
  472. aTop25.target = "_blank";
  473.  
  474. document.querySelector("body > div > div > div:nth-child(3)").appendChild(aTop25);
  475.  
  476. console.log("LeaderBoard of Doomed2.io");
  477. }
  478.  
  479. setTimeout(function HackActivated(){
  480. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  481. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  482. console.log("Doomed2.io HACK ACTIVATED"); // Send in console message
  483. console.log("By RESIDENT"); // Send in console message
  484. },6000);