MRScript

MRModPack v2

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/414546-mrscript/code/MRScript.js?version=862371

// ==UserScript==
// @name MRScript
// @name:ru MRScript
// @namespace    http://tampermonkey.net/
// @version      2.1.2
// @description  MRModPack v2
// @description:ru  MRModPack v2
// @author       MRModPackTeam - Maxim_MoPeR , RussianMope[RU] , ProXY Gamer , Laziness. , Bonk_YT. Special thanks to Ahmetcan.
// @icon https://cdn.discordapp.com/attachments/743063977780838451/757994733749534880/rabbit.png
// @match        *://mope.io/*
// @match        *://beta.mope.io/*
// @match        *://m0pe.io/*
// @match        *://learninganimals.club/
// @match        *://tailbite.me/
// @grant          GM_setValue
// @grant          GM_getValue
// ==/UserScript==
/*
MIT License

Copyright (c) 2020 RussianMopeRU

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
var button = new Audio();
button.src = "audio/click.mp3";
var button1 = new Audio();
button1.src = "audio/tap.mp3";

function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays * 365 * 24 * 60 * 60 * 1000));
    var expires = "expires=" + d.toUTCString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
    console.log("Cookie was set!");
}

function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for(var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while(c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if(c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);

        }
    }
    return "";
}
var css = ""
css = `
<style>
#hud1{
border-radius: 5px;
background-color: green;
width: 30px;
height: 30px;
color: white;
float: left;
margin-Top: -9.5%;
font-family: 'Arial';
position: relative
}
#ht{
font-family: 'Arial';
color: white;
}
#hudButton{
margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);

}
#MRModPackMenu {
    border-radius: 10px;
    background-color: green;
    position: absolute;
    top: 30%;
    left: 50%;
    width: 500px;
    height: 350px;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 420;
    opacity: 0.9;
    text-align: center;
}

#mHudMenu {
    border-radius: 10px;
    background-color: green;
    position: absolute;
    top: 39%;
    left: 50%;
    width: 600px;
    height: 450px;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 420;
    opacity: 0.88;
    text-align: center;
}
#closeMHud{
    text-align: auto;
}
#mhudtxt{
    position: absolute;
    font-family: 'Muli', sans-serif;
    color: white;
    opacity: 0.6;
    z-index: 666;
}
#mHudShortcuts {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 47%;
    left: 50%;
    width: 405px;
    height: 640px;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 420;
    opacity: 0.9;
    text-align: center;
}
#ColorNameSelect {
    border-color: #1b4e1b;
    border-width: 10px;
    background: #0e5822;
    border-color: #1f9a1f;
    border-width: 2px;
    padding: 3px;
    width: 150px;

}
#SelectColor {
    background-color: #efce06;
    border-color: #919c20;
    border-width: 4px;
    color: #fff;
}

.tag {color: cyan}

#SettingsMRModPack {
  font-size: 1em;
  width: 112px;
  height: 45px;
  cursor: pointer;
  background-color: green;
  color: #fff;
  border: 3px solid #0f5209;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 5px;
}
#SettingsMRModPack:hover {
  background: #099609;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
#SettingsMRModPack:active {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  background: #1a6f1a;
}

#SHORTCUTSMRModPack {
  font-size: 1em;
  width: 112px;
  height: 45px;
  cursor: pointer;
  background-color: #00506b;
  color: #fff;
  border: 3px solid #09918b;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 5px;
}
#SHORTCUTSMRModPack:hover {
  background: #1a647d;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
#SHORTCUTSMRModPack:active {
  background: #0c6280;
}

#HELPMRModPack {
  font-size: 1em;
  width: 112px;
  height: 45px;
  cursor: pointer;
  background-color: #cc143f;
  color: #fff;
  cursor: help;
  border: 3px solid #940909;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 5px;
}
#HELPMRModPack:hover {
  background: #f72c5b;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
#HELPMRModPack:active {
  background: #a71134;
}

.affilatedLinks {
  cursor: pointer;
  /*width: 70px;*/
  /*height: 70px;*/
  margin: 5px;
}

/* Icons */
#discord_Btn {
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 5px 35px;
  border-radius: 3px;
  background: rgb(42, 113, 208);
  box-shadow: 0 -3px rgb(1, 54, 130) inset;
  transition: 0.2s;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 10px;
}
#discord_Btn:hover { background: rgb(84, 105, 175); }
#discord_Btn:active {
  background: rgb(65, 122, 185);
  box-shadow: 0 3px rgb(65, 122, 185) inset;
}

#youtube_Btn {
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 5px 35px;
  border-radius: 3px;
  background: rgb(199, 64, 64);
  box-shadow: 0 -3px rgb(138, 0, 0) inset;
  transition: 0.2s;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin: 5px;
}
#youtube_Btn:hover { background: rgb(228, 33, 33); }
#youtube_Btn:active {
  background: rgb(150, 49, 49);
  box-shadow: 0 3px rgb(150, 49, 49) inset;
}

/* New menu */
#SettingsBlock {
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  width: 250px;
  height: 380px;
  float: right;
}

.tabs { width: 100%; padding: 0px; margin: 0 auto; }
.tabs>input { display: none; }
.tabs>div {
    display: none;
    padding: 12px;
    border: 1px solid #C0C0C0;
    background: #FFFFFF;
}
.tabs>label {
    display: inline-block;
    padding: 7px;
    margin: 0 -5px -1px 0;
    text-align: center;
    color: #666666;
    border: 1px solid #C0C0C0;
    background: #E0E0E0;
    cursor: pointer;
}
.tabs>input:checked + label {
    color: #000000;
    border: 1px solid #C0C0C0;
    border-bottom: 1px solid #FFFFFF;
    background: #FFFFFF;
}
#tab_1:checked ~ #txt_1,
#tab_2:checked ~ #txt_2,
#tab_3:checked ~ #txt_3,
#tab_4:checked ~ #txt_4,
#tab_5:checked ~ #txt_websocket {
    background-color:green;
    display:block;
}
#tab_Instruction {
    overflow: auto;
    max-height: 380px;
}
/* Стиль для кнопки */
.custom-radio:focus:not(:checked)+label::before {
    background-color: orange;
}
/*
#startMenuWrapper {
    cursor: url(https://starve.io/img/cursor0.png), pointer;
} */
.texColor {color:#fff};

/*Radio for mope.io*/
#playRadio {
  background-color: gray;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: .8em 1em calc(.8em + 3px);
  border-radius: 3px;
  background: rgb(64,199,129);
  box-shadow: 0 -3px rgb(53,167,110) inset;
  transition: 0.2s;
}

#iconsMR {
    text-align: center
}
.txt_7 {
    background: #651711;
    border-color: #4a0f0a;
    border-width: 3px;
    width: 90px;
    height: 30px;
}
.txt_8 {
    background: #4261ad;
    border-color: #142d6b;
    width: 90px;
    height: 30px;
}

.demoChatWSname {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 30%;
    left: 94%;
    width: 170px;
    height: 40px;
    margin-right: 8px;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    opacity: 0.8;
    text-align: center;
}
</style>`
var html = `<div id=mHudMenu style="display:none;">
<button id="closeMHud" type="submit" class="button" style="background-color:transparent; border-color:transparent;" onclick=mHudToggle()>
<img src="https://mope.io/img/x.png" width="35" height="35">
</button>

<div class="tabs">
    <input type="radio" name="inset" value="" id="tab_1" checked>
    <label id="tab_1_style" class='chat_hotkeys_txt' style="background-color: #0d541c;border-radius: 6px;color: #fff" for="tab_1">Chat-Hotkeys</label>

    <input type="radio" name="inset" value="" id="tab_2">
    <label id="tab_2_style" class='settings_txt' style="background-color: orange;border-radius: 6px;color: #fff;" for="tab_2">Settings</label>

    <input type="radio" name="inset" value="" id="tab_4">
    <label id="tab_4_style" class='audio_txt' style="background-color:pink;border-radius:6px;color:#fff" for="tab_4">Audio</label>

    <input type="radio" name="inset" value="" id="tab_5">
    <label id="tab_5_style" class='websocketChat_txt' style="background-color: #114acf;border-radius: 6px;color: #fff" for="tab_5">Global Chat</label>

    <input type="radio" name="inset" value="" id="tab_3">
    <label id="tab_3_style" class='instruction_txt' style="background-color: red;border-radius: 6px;color: #fff" for="tab_3">Instruction</label>

    <div id="txt_1">
<div id=allMXoptions>
<input id="function10" type="checkbox" onchange="fun10()" checked/><label for="function10"><span><strong style="color:#fff" class='txt_checkChat'>Enable hotkey chat (1-9 buttons)</strong></span></label><br />
<h3 id=ht class='txt_5'>Set text for hotkey</h3>
<form>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="1 hotkey text" maxlength=35 id=ti1>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="2 hotkey text" maxlength=35 id=ti2>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="3 hotkey text" maxlength=35 id=ti3>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="4 hotkey text" maxlength=35 id=ti4>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="5 hotkey text" maxlength=35 id=ti5>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="6 hotkey text" maxlength=35 id=ti6>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="7 hotkey text" maxlength=35 id=ti7>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="8 hotkey text" maxlength=35 id=ti8>
<input style="text-align: center;padding: 3px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="9 hotkey text" maxlength=35 id=ti9><br />
</form>
<h3 class='txt_6' style="color:red">Automatic message output to chat</h3>
<input style="text-align: center;padding: 4px;border: solid 3px #1a6720;font-size: 15px" type="text" placeholder="AUTO SPAM (INTERVAL)" maxlength=35 id=AutoSpam>
<!-- <input id="AutoSpamHack" type="checkbox" onchange="HackSpam()"><label for="AutoSpamHack"  class="texColor"><strong>AutoSpam (INTERVAL): </strong></label></input> -->
<button id="ON_SPAM" class='txt_7' onclick="SPAM_ON()">ON SPAM</button>
<button id="OFF_SPAM" class='txt_8' onclick="SPAM_OFF()">OFF SPAM</button>
<br />
<span class='txt_9' style="color:#fff">Spam every </span>
<button class='txt_10' onclick="sec1()">1s</button>
<button class='txt_11' onclick="sec2()">2s</button>
<button class='txt_12' onclick="sec5()">5s</button>
<button class='txt_13' onclick="sec10()">10s</button>
<button class='txt_14' onclick="sec30()">30s</button>
</div>
    </div>
    <div id="txt_2">
      <span><strong style="color:#fff" class='txt_15'>RESET ZOOM press "HOME" or click "MOUSEWHEEL"</strong></span><br />
      <span><strong style="color:#fff" class='txt_16'>AFK Mode press "ESC"</strong></span><br />
      <input id="function2" type="checkbox" onchange="fun2()" checked/><label for="function2"><span><strong style="color:#fff" class='txt_17'>Transparent hills (X KEY)</strong></span></label><br />
      <input id="function3" type="checkbox" onchange="fun3()" checked/><label for="function3"><span><strong style="color:#fff" class='txt_18'>Show diving animals (V KEY)</strong></span></label><br />
      <input id="function4" type="checkbox" onchange="fun4()"/><label for="function4"><span><strong style="color:#fff" class='txt_19'>Auto Upgrade (A KEY)</strong></span></label><br />
      <!-- <input id="function5" type="checkbox" onchange="fun5()"/><label for="function5"><span><strong style="color:#fff" class='txt_20'>Auto Spawn (N KEY)</strong></span></label><br /> -->
      <input id="function6" type="checkbox" onchange="fun6()"/><label for="function6"><span><strong style="color:#fff" class='txt_21'>Auto-Play-Bot (Q KEY)</strong></span></label><br />
      <input id="function7" type="checkbox" onchange="fun7()"/><label for="function7"><span><strong style="color:#fff" class='txt_22'>1v1-Auto-Tail-Bite (M KEY)</strong></span></label><br />
      <input id="function8" type="checkbox" onchange="fun8()" checked/><label for="function8"><span><strong style="color:#fff" class='txt_23'>Auto enable trackerts when health 40% or less</strong></span></label><br />
      <!-- <input id="function9" type="checkbox" onchange="fun9()" checked/><label for="function9"><span><strong style="color:#fff" >Show FPS/Ping in the game</strong></span></label><br /> -->
      <!-- <input id="function10" type="checkbox" onchange="fun10()" checked/><label for="function10"><span><strong style="color:#fff" >Show 1v1 arena wins</strong></span></label><br /> -->
<h5 style="color:#fff" class='txt_24'>Change color name ( USE TAGS <span class="tag">[MR] (MR) {MR}</span> ) and click "OK"</h5>
<form>
   <p><select id="ColorNameSelect" name="hero">
   <option style="color:white">Select color:</option>
   <option value="Cyan" style="color:cyan">Cyan</option>
   <option value="Yellow" style="color:yellow">Yellow</option>
   <option value="Blue" style="color:blue">Blue</option>
   <option value="Green"  style="color:green">Green</option>
   <option value="Orange" style="color:orange">Orange</option>
   <option value="Pink" style="color:pink">Pink</option>
   <option value="Purple" style="color:purple">Purple</option>
   <option value="Red" style="color:red">Red</option>
   <option value="Brown" style="color:brown">Brown</option>
   <option value="Black" style="color:black">Black</option>
   </optgroup>
   </select>
   <input id="SelectColor" type="button" value="OK" onClick="dataSelect(this.form)"></p>
</form>
   <h4 style="color:#fff" class='txt_25'>Change your mouse cursor in mope.io:</h4>
   <button class="cursors" onclick="cursor1()"><img src="https://cdn.discordapp.com/attachments/736975202843361300/741605549623345182/12.png" width="30px" height="30px" /></button>
   <button class="cursors" onclick="cursor2()"><img src="https://starve.io/img/cursor0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor3()"><img src="https://flyordie.io/images/cursor.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor4()"><img src="https://cdn.discordapp.com/attachments/736975202843361300/741715542456401990/Arrow9.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor5()"><img src="https://cdn.discordapp.com/attachments/736975202843361300/741643368970453002/image_1_1.png" width="25px" height="33px" /></button>
   <button class="cursors" onclick="cursor6()"><img src="https://cdn.discordapp.com/attachments/736975202843361300/741681132399231037/Arrow2.png" /></button>
   <button class="cursors" onclick="cursor7()"><img src="https://cdn.discordapp.com/attachments/736975202843361300/741716600167596072/Hand12.png" /></button>
   <button class="cursors" onclick="cursor8()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743477919703236688/arrow.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor9()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743482611275530330/Stat_-_AO_-Normal-Select-v3.0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor10()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743714937398100018/31155_c2bcf4596817f9924026c610059b47ce2d7af429a5580787472926dab787462d-0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor11()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743715067928903720/30095_e03f1086537ad6b768db8e1ec276869fec06058ba4d9ccbf8a45b25d81e5a1d7-0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor13()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743715124329840641/1261_b1294b1c73c0f01e6810f5560baf949f84e725bf0bca5ba7b934bb97a8538014-0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor14()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743715175860797470/7174_88eede2dd6332381916ea6190bc7f26cedc13146424cf86f5caa06dd6b3abaea-0.png" width="25px" height="30px" /></button>
   <button class="cursors" onclick="cursor15()"><img src="https://cdn.discordapp.com/attachments/743063977780838451/743715238003605514/20878_2336cf5cca14f4824e5bc9e67d089847ef8a9d030f2afce30d609289dcf8846f-0.png" width="25px" height="30px" /></button>
         <hr>
      <strong style="color:#fff" class='txt_26'>Hardcore mode mode in MRModPack learn more in <span style="color:red">Instruction</span></strong><br />
      <form>
      <input id="tabGameMode_hardcore" type="radio" name="inset" onchange="HardcoreMode()" /><big><label for="tabGameMode_hardcore">Hardcore mode</label></big>
      </formm>
      <hr>
    </div>
    <div id="txt_3">
        <div id="tab_Instruction">
        <h2 style="color:red" class='txt_30'>MRModPack instruction</h2>
        <h3 class='txt_31'>SHORTCUTS - PRESS "F2"</h3>
        <h3 class='txt_32'>What hacks are in MRModPack?</h3>
        <p class='txt_33'>So, after installing MRModPack, you will have new mods in the game. These are color nick, zoom, AFK mode, auto-chat, 1v1-auto-tail-bite in the arena, auto-upgrade auto-spawn, auto-play-bot, player vision under water, transparent hills, coloring when there is little health, the ability to listen to music and no video ads. You can also choose a cursor in the game.</p>
        <li class="texColor"><h3 class='txt_34'>Colored nickname - (how to make a colored nickname?): Use tags <span class="tag">[MR] (MR) {MR}</span>, and your nickname will become cyan (nickname will be visible only to those who have this extension), you can change the color using the selector in Settings.</h3></li>
        <img src="https://cdn.discordapp.com/attachments/650641019355922433/736916755456458823/nickupdate.png" />
        <li class="texColor"><h3 class='txt_35'>Zoom - (can zoom out and also zoom in on the viewing range): you can Adjust the zoom using the mouse wheel, or by pressing the + and - buttons (if you want to return to standard zoom, press "HOME" or click "MOUSEWHEEL").</h3></li>
        <img src="https://cdn.discordapp.com/attachments/650641019355922433/742333052495200276/bfb0eaef3458d66a.png" />
        <li class="texColor"><h3 class='txt_36'>Transparent hills - (Thanks to them, you can see players under the hills): You can ON/OFF them by clicking the "X" button or in Settings</h3></li>
    <img src="https://cdn.discordapp.com/attachments/650641019355922433/742335884023693322/transparenthills.png" alt="Transparent hills">
    <li class="texColor"><h3 class='txt_37'>Seeing players underwater - (You can see who is diving underwater, as well as his nickname): You can ON/OFF the function by pressing "V"</h3></li>
    <img src="https://cdn.discordapp.com/attachments/650641019355922433/742337849940246528/underwater.png" alt="UnderWater">
    <li class="texColor"><h3 class='txt_38'>AFK mode - (Makes you motionless, for example you need to go somewhere, you went into the hole and turned on AFK mode, and you are now motionless now you can not worry that you accidentally come out of the hole): You can ON/OFF it using the "ESC" button.</h3></li>
    <img src="https://cdn.discordapp.com/attachments/650641019355922433/742339629805469796/d3fd0f4eb35af901.png" alt="AFK Mode..">
    <li class="texColor"><h3 class='txt_39'>Auto-chat - (Sends the specified messages directly to the chat immediately by clicking on the buttons): You can send messages by simply pressing the buttons from "1" to "9". How to replace my messages? Click on the mouse icon in the menu to the left of the Play button, or press "F1". Then you can write messages that you like, press Enter and the messages are saved, now you can send your messages to buttons 1-9.</h3></li>
    <img src="https://cdn.discordapp.com/attachments/736975202843361300/742348042853679206/autochat.png" alt="Auto-chat">
    <li class="texColor"><h3 class='txt_40'>No video ads - (of course, this is not exactly what you would call a hack, but you will immediately notice that the video ads are missing): This is the same as using AdBlock, but you will be given coins.</h3></li>
    <li class="texColor"><h3>Cursors - (You can change your cursor in MRModPack): This can be done in the "Settings" menu.</h3></li>
    <img src="https://cdn.discordapp.com/attachments/736975202843361300/742367952405528606/cursors.png" />
    <li class="texColor">
    <h3 class='txt_41'>There is also a "Hardcore" mode that is enabled in the settings. What is hardcore mode?<br />When you activate this mode, you will have a difficulty level.<br />First: if WATER / LAVA / ENERGY / AIR reaches 20%, then you die.<br />Second: if you are in the arena for more than 5 minutes, you will die. But if you stay in the arena for up to 5 minutes the first time, you will no longer die from time in the arena.<br/>Third: in hardcore mode, you can't see the map and the point on it, that is, where you are.<br/>Fourth: you are given one life, if you lose, you can no longer be reborn, so you will only have to reload the page.</h3><img src="https://cdn.discordapp.com/attachments/736975202843361300/742364561193304084/hardcore.png" /></li>
</ul>
    </div>
    </div>
    <div id='txt_4'>
        <h2 class='txt_27'>↓↓↓Listen to music in the game online🎵🎵🎵</h2>
        <audio controls>
<source src="http://178.32.107.151/proxy/curveradio?mp=/stream" type="audio/mpeg">
</audio><br/>
<strong class='txt_28'><i>There is no music in the game and you are a little bored? Then listen to the radio in mope.io online right now! </i>🎧</strong><br/><br/>
<b class='txt_29'>If the music doesn't work, try turning it on in the (right-hand panel)</b><br/>
</div>
   <div id="txt_websocket">
<div>
<div class="demoChatWSnameMENU"><iframe src="https://quixotic-abalone-mushroom.glitch.me/" allowfullscreen="true" width="650px" height="400px" border="0" frameborder="0" scrolling="no"></iframe></div>
</div>
    </div>
</div>
</div>
<div id=mHudShortcuts style="display:none;">
<h2 style="color:#fff" class='chrt_1'>MRModPack - SHORTCUTS</h2>
<h4 style="color:#fff" class='chrt_3'>SuperColorName: ( USE TAG <span class="tag">[MR] (MR) {MR}</span> )</h4>
<h4 style="color:#fff" class='chrt_4'>Zoom: (+ and - KEY) or Mousewheel</h4>
<h4 style="color:#fff" class='chrt_5'>Auto-spam-chat: (1 - 9)</h4>
<h4 style="color:#fff" class='chrt_6'>SHOW MENU: (F1)</h4>
<h4 style="color:#fff" class='chrt_7'>Transparent hills: (X)</h4>
<h4 style="color:#fff" class='chrt_8'>Auto Upgrade: (A)</h4>
<h4 style="color:#fff" class='chrt_9'>Auto Spawn: (N)</h4>
<h4 style="color:#fff" class='chrt_10'>Movement lock: (ESC)</h4>
<h4 style="color:#fff" class='chrt_11'>Hide Interface: (I)</h4>
<h4 style="color:#fff" class='chrt_12'>Show diving animals: (V)</h4>
<h4 style="color:#fff" class='chrt_13'>1v1 Auto-tail-bite: (M)</h4>
<h4 style="color:#fff" class='chrt_14'>HD/LOW GRAPHICS: (PageUp) / (PageDOWN)</h4>
<h4 style="color:#fff" class='chrt_15'>AUTO-PLAY-BOT: (Q)</h4>
<h6 class="texColor">MRModPack v1.2.1</h6>
</div>`
var wsChat = "<div class='demoChatWSname' style='display:block'><strong id='panelGraphics_fps2' style='color:#fff';>FPS: (...)</strong><br/><strong id='panelGraphics_ms2' style='color:#fff';>Ping: (...)ms</strong></div>";
var hint_MRnickName = `<div style="display: block; color: #ffc638; font-size: 20px; text-align: center; text-shadow: rgb(0, 0, 0) 1px 1px;"><span class='txt_colorName'>Hint: use the <span onclick="document.getElementById('nickInput').value = '[MR] ' + document.getElementById('nickInput').value;" style="color: cyan; text-decoration: underline; cursor: pointer;">[MR]</span> or <span onclick="document.getElementById('nickInput').value = '(MR) ' + document.getElementById('nickInput').value;" style="color: cyan; text-decoration: underline; cursor: pointer;">(MR)</span> or <span onclick="document.getElementById('nickInput').value = '{MR} ' + document.getElementById('nickInput').value;" style="color: cyan; text-decoration: underline; cursor: pointer;">{MR}</span> tags to color your nickname and outline.</span></div>`
var buttonImage = "<div id=hud1><button id=hudButton class=button input=submit onclick=mHudToggle()><img src='https://media.discordapp.net/attachments/690487942459817984/723163027356254218/mouse.png' width=32px height=32px></button></div>"
var NewMenu = `<div id="SettingsBlock" align="left" style="display:block">
  <center><img src="https://media.discordapp.net/attachments/743063977780838451/759058105471598612/MrModPack-1.png?width=400&height=120" width="225px" height="65px" alt=""></center>
    <button id="SettingsMRModPack" onclick="mHudToggle()" class='panelTxt_1'>MENU</button>
    <button id="SHORTCUTSMRModPack" onclick="mHudShortcuts2()" class='panelTxt_2'>Shortcuts</button>
    <center><a href="https://mrmodpack.glitch.me" target="_blank"><button id="HELPMRModPack" class='panelTxt_3'>HELP</button></a></center>
    <center><strong id="panelGraphics_fps" style="color:#fff";>FPS: (...)</strong></center>
    <center><strong id="panelGraphics_ms" style="color:#fff";>Ping: (...)ms</strong></center>
<div align="center">
    <button id="playRadio" class='panelTxt_4'>🔴 Play 🔴</button>
    <button id="pauseRadio" class='panelTxt_5'>⛔️ Pause ⛔️</button>
    <span id="duration" style="color:#fff"></span>
</div>
 <div style="color:#fff" class='panelTxt_6'>Sound music:<input id="volume" type="range" min="0" max="10" value="5" /></div>
    <div id="iconsMR">
    <button id="languange" style="border-radius: 30px" onclick="buttonEN('languange')"><img src="https://cdn.discordapp.com/attachments/743063977780838451/745897604398842017/england.png" width="45px" height="45px" alt=""></button>
    <button style="border-radius: 30px" onclick="buttonRU('languange')"><img src="https://cdn.discordapp.com/attachments/743063977780838451/745897598035951728/5d3ff86a2bc0d0b4e4f16bae_RU_lippu.png" width="45px" height="45px" alt=""></button>
    </div>
    <center style="color:#fff;margin-top:10px;">Version: 2.1.1</center>
</div>`;
$('head').append(css);
$(wsChat).appendTo("#gameAreaWrapper");
$(buttonImage).appendTo("#onPlayReadyWrap");
$(NewMenu).appendTo("#appsDiv");
//$(hint_MRnickName).appendTo("#onconnectDiv");
$('body').append(html);
window.addEventListener('keydown', (event) => {
    if(event.key === 'F1') {
        event.preventDefault()
        mHudToggle();
    }
});
window.addEventListener('keydown', (event) => {
    if(event.key === 'F2') {
        event.preventDefault()
        mHudShortcuts2()
    }
});
// LocalStorage
 document.querySelectorAll(".check").forEach(el => {
  el.onchange = () => localStorage.setItem(el.id, el.checked);
  el.checked = localStorage.getItem(el.id) === "true";
})
function mHudToggle() {
    var togglemenu = document.getElementById("mHudMenu")
    console.log("Toggling the MRModPack Settings")
    if(togglemenu.style.display == "none") {
        togglemenu.style.display = "block";
    } else {
        togglemenu.style.display = "none";
    }
};
function mHudShortcuts2() {
    var toggleshortcuts = document.getElementById("mHudShortcuts");
    console.log("Toggling the MRModPack SHORTCUTS");
    if(toggleshortcuts.style.display == "none") {
        toggleshortcuts.style.display = "block";
    } else {
        toggleshortcuts.style.display = "none";
    }
};
$('#ti1').on('change', function() {
    setCookie('t1', document.querySelector('#ti1').value, 69)
    t1 = document.querySelector('#ti1').value
});
$('#ti2').on('change', function() {
    setCookie('t2', document.querySelector('#ti2').value, 69)
    t2 = document.querySelector('#ti2').value
});
$('#ti3').on('change', function() {
    setCookie('t3', document.querySelector('#ti3').value, 69)
    t3 = document.querySelector('#ti3').value
});
$('#ti4').on('change', function() {
    setCookie('t4', document.querySelector('#ti4').value, 69)
    t4 = document.querySelector('#ti4').value
});
$('#ti5').on('change', function() {
    setCookie('t5', document.querySelector('#ti5').value, 69)
    t5 = document.querySelector('#ti5').value
});
$('#ti6').on('change', function() {
    setCookie('t6', document.querySelector('#ti6').value, 69)
    t6 = document.querySelector('#ti6').value
});
$('#ti7').on('change', function() {
    setCookie('t7', document.querySelector('#ti7').value, 69)
    t7 = document.querySelector('#ti7').value
});
$('#ti8').on('change', function() {
    setCookie('t8', document.querySelector('#ti8').value, 69)
    t8 = document.querySelector('#ti8').value
});
$('#ti9').on('change', function() {
    setCookie('t9', document.querySelector('#ti9').value, 69)
    t9 = document.querySelector('#ti9').value
});
$('#ti0').on('change', function() {
    setCookie('t9', document.querySelector('#ti0').value, 69)
    t9 = document.querySelector('#ti0').value
});
$('#AutoSpam').on('change', function() {
    setCookie('HackerSpam', document.querySelector('#AutoSpam').value, 69)
    HackerSpam = document.querySelector('#AutoSpam').value
});
/*
function readCookie() {
    document.querySelector('#ti1').value = getCookie('t1')
    document.querySelector('#ti2').value = getCookie('t2')
    document.querySelector('#ti3').value = getCookie('t3')
    document.querySelector('#ti4').value = getCookie('t4')
    document.querySelector('#ti5').value = getCookie('t5')
    document.querySelector('#ti6').value = getCookie('t6')
    document.querySelector('#ti7').value = getCookie('t7')
    document.querySelector('#ti8').value = getCookie('t8')
    document.querySelector('#ti9').value = getCookie('t9')
    document.querySelector('#ti0').value = getCookie('t0')
    document.querySelector('#AutoSpam').value = getCookie('HackerSpam')
    t1 = document.querySelector('#ti1').value
    t2 = document.querySelector('#ti2').value
    t3 = document.querySelector('#ti3').value
    t4 = document.querySelector('#ti4').value
    t5 = document.querySelector('#ti5').value
    t6 = document.querySelector('#ti6').value
    t7 = document.querySelector('#ti7').value
    t8 = document.querySelector('#ti8').value
    t9 = document.querySelector('#ti9').value
    t0 = document.querySelector('#ti0').value
    HackerSpam = document.querySelector('#AutoSpam').value
    textb1 = document.getElementById('ti1').value
    textb2 = document.getElementById('ti2').value
    textb3 = document.getElementById('ti3').value
    textb4 = document.getElementById('ti4').value
    textb5 = document.getElementById('ti5').value
    textb6 = document.getElementById('ti6').value
    textb7 = document.getElementById('ti7').value
    textb8 = document.getElementById('ti8').value
    textb9 = document.getElementById('ti9').value
    textb0 = document.getElementById('ti0').value
    textb10 = document.getElementById('AutoSpam').value

    if(textb1 === "") {
        t1 = '1v1.'
    }
    if(textb2 === "") {
        t2 = 'Substribe to Maxim_MoPeR'
    }
    if(textb3 === "") {
        t3 = 'MRModPack by Maxim_MoPeR'
    }
    if(textb4 === "") {
        t4 = 'MRModPack --- http://mope2.io/'
    }
    if(textb5 === "") {
        t5 = 'https://discord.com/invite/vA8SAEz'
    }
    if(textb6 === "") {
        t6 = 'Hey you man and i\'m a hacker'
    }
    if(textb7 === "") {
        t7 = "I love killing losers :D"
    }
    if(textb8 === "") {
        t8 = "(づ ◕‿◕ )づ"
    }
    if(textb9 === "") {
        t9 = '( ͡° ͜ʖ ͡°)'
    }
    if(textb0 === "") {
        t9 = 'ด้้้ฏ๎๎๎ปี้้ด้้้ ฏ๎๎๎ฏ๎๎๎ฏ๎๎๎ฏ๎๎๎ ̳̳̿|̳̳̿l̳̳̿'
    }
}
*/
  var tex1 = document.querySelector('.chat_hotkeys_txt'),
  tex2 = document.querySelector('.settings_txt');
  tex3 = document.querySelector('.audio_txt');
  tex4 = document.querySelector('.instruction_txt');
  tex5 = document.querySelector('.txt_5');
  tex6 = document.querySelector('.txt_6');
  tex7 = document.querySelector('.txt_7');
  tex8 = document.querySelector('.txt_8');
  tex9 = document.querySelector('.txt_9');
  tex10 = document.querySelector('.txt_10');
  tex11 = document.querySelector('.txt_11');
  tex12 = document.querySelector('.txt_12');
  tex13 = document.querySelector('.txt_13');
  tex14 = document.querySelector('.txt_14');
  tex15 = document.querySelector('.txt_15');
  tex16 = document.querySelector('.txt_16');
  tex17 = document.querySelector('.txt_17');
  tex18 = document.querySelector('.txt_18');
  tex19 = document.querySelector('.txt_19');
  tex20 = document.querySelector('.txt_20');
  tex21 = document.querySelector('.txt_21');
  tex22 = document.querySelector('.txt_22');
  tex23 = document.querySelector('.txt_23');
  tex24 = document.querySelector('.txt_24');
  tex25 = document.querySelector('.txt_25');
  tex26 = document.querySelector('.txt_26');
  tex27 = document.querySelector('.txt_27');
  tex28 = document.querySelector('.txt_28');
  tex29 = document.querySelector('.txt_29');
  tex30 = document.querySelector('.txt_30');
  tex31 = document.querySelector('.txt_31');
  tex32 = document.querySelector('.txt_32');
  tex33 = document.querySelector('.txt_33');
  tex34 = document.querySelector('.txt_34');
  tex35 = document.querySelector('.txt_35');
  tex36 = document.querySelector('.txt_36');
  tex37 = document.querySelector('.txt_37');
  tex38 = document.querySelector('.txt_38');
  tex39 = document.querySelector('.txt_39');
  tex40 = document.querySelector('.txt_40');
  tex41 = document.querySelector('.txt_41');
  chrt1 = document.querySelector('.chrt_1');
  chrt3 = document.querySelector('.chrt_3');
  chrt4 = document.querySelector('.chrt_4');
  chrt5 = document.querySelector('.chrt_5');
  chrt6 = document.querySelector('.chrt_6');
  chrt7 = document.querySelector('.chrt_7');
  chrt8 = document.querySelector('.chrt_8');
  chrt9 = document.querySelector('.chrt_9');
  chrt10 = document.querySelector('.chrt_10');
  chrt11 = document.querySelector('.chrt_11');
  chrt12 = document.querySelector('.chrt_12');
  chrt13 = document.querySelector('.chrt_13');
  chrt14 = document.querySelector('.chrt_14');
  chrt15 = document.querySelector('.chrt_15');
  panelTxt1 = document.querySelector('.panelTxt_1');
  panelTxt2 = document.querySelector('.panelTxt_2');
  panelTxt3 = document.querySelector('.panelTxt_3');
  panelTxt4 = document.querySelector('.panelTxt_4');
  panelTxt5 = document.querySelector('.panelTxt_5');
  panelTxt_6 = document.querySelector('.panelTxt_6');
  texcolorName = document.querySelector(".txt_colorName");
  texcheckChat = document.querySelector(".txt_checkChat");


$(window).bind('mousewheel DOMMouseScroll', function(event) {
    if(event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) {
        _0xa0e053("ZOOMING DOWN NOW (+)", 2500);
        camzoom = camzoom - 0.20;
    } else {

        _0xa0e053("ZOOMING UP NOW (-)", 2500);
        camzoom = camzoom + 0.20;
    }
});
document.onmousedown = click;
/*
$(window).bind('mousewheel DOMMouseScroll', function(event) {
    if(event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) {
        _0x56bd07("ZOOMING DOWN NOW (+)", 2500);
        camzoom = camzoom - 0.20;
    } else {

        _0x56bd07("ZOOMING UP NOW (-)", 2500);
        camzoom = camzoom + 0.20;
    }
});
*/
document.onmousedown = click;

function click(e) {
    //console.log(e)
    if(event.button === 1) {
        _0xa0e053("RESET ZOOM (CLICK MOUSEWHEEL)", 2500);
        camzoom = 26
    }

}

// MRModPack Settings checkbox
// TRANSPARENT HILLS
function fun2() {
    var chhboxTransparentHills = document.getElementById("function2");
        if (chhboxTransparentHills.checked) {
            mrModPack.Transparent_hills = !0;
        }
        else {
            mrModPack.Transparent_hills = !1;
        }
};
// UNDER WATER
function fun3() {
    var chkboxUnverWater = document.getElementById("function3");
        if (chkboxUnverWater.checked) {
            mrModPack.UnderWater = !0;
        }
        else {
            mrModPack.UnderWater = !1;
        }
};
// AUTO UPGRADE
function fun4() {
    var chkboxAutoUpgrade = document.getElementById("function4");
    if (chkboxAutoUpgrade.checked) {
        mrModPack.AutoUpgrade = !0;
    }
    else {
        mrModPack.AutoUpgrade = !1;
    }
};
// AUTO SPAWN
function fun5() {
    var chkboxAutoSpawn = document.getElementById("function5");
    if (chkboxAutoSpawn.checked) mrModPack.tf_auto_spawn = !0;
    else mrModPack.tf_auto_spawn = !1;
};
// AUTO-PLAY-BOT
function fun6() {
    var chkboxMOPEBOT = document.getElementById("function6");
    if (chkboxMOPEBOT.checked) {
        mrModPack.MOPEBOT = !0;
    }
    else {
        mrModPack.MOPEBOT = !1;
    }
};
// 1v1 AUTO-TAIL-BITE
/*
function fun7() {
    var chkboxAutoPVP = document.getElementById("function7");
    if (chkboxAutoPVP.checked) {
        mrModPack.AutoPVP = !0;
    }
    else {
        mrModPack.AutoPVP = !1;
    }
};
*/
// TRACKERTS-HEALTH
function fun8() {
    var chkboxtracketsHealth = document.getElementById("function8");
    if (chkboxtracketsHealth.checked) {
        mrModPack.tracketsHealth = !0;

    }
    else mrModPack.tracketsHealth = !1;
};
/*
function fun9() {
    var chkboxFPS_PING = document.getElementById("function9");
    if (chkboxFPS_PING.checked) {
        var fps_ping = document.querySelector(".demoChatWSname");
        fps_ping.style.display = "block";
    }
    else {
        var fps_ping = document.querySelector(".demoChatWSname");
        fps_ping.style.display = "none";
    }
};
*/
// ALL 1v1 WINS
function fun9() {
    var chkbox1v1wins = document.getElementById("function9");
    if (chkbox1v1wins.checked) {}
}
function fun10() {
    var chkboxChatHotkeys = document.getElementById("function10");
    if (chkboxChatHotkeys.checked) {
        mrModPack.Chat_Hotkeys = !0;
    }
    else {
        mrModPack.Chat_Hotkeys = !1;
    }
}
/*
// LOCALSTORAGE
if (localStorage.getItem("TransparentHills") == "!0") {
    document.getElementById("function2").checked = !0;
    Transparent_hills = !0;
};
if (localStorage.getItem("UnderWater") == "!0") {
    document.getElementById("function3").checked = !0;
    UnderWater = !0;
};
if (localStorage.getItem("AutoUpgrade") == "!0") {
    document.getElementById("function4").checked = !0;
    AutoUpgrade = !0;
};
*/

// PING
var PING = setTimeout('document.getElementById("panelGraphics_ms").innerHTML = "Ping: " + _0x1f3034.ping + "ms"', 6000);
//найти новую переменную на Ping
var PING2 = setTimeout('document.getElementById("panelGraphics_ms2").innerHTML = "Ping: " + _0x1f3034.ping + "ms"', 6000);
//победы в аренах под никами игроков
/* function fun9() {
    var chkbox1v1wins = document.getElementById("function9");
    if (chkbox1v1wins.checked) {}
} */ //доработать в будущем.
// FPS
var frameCount = function _fc(timeStart) {
        var now = performance.now();
        var duration = now - timeStart;
        if(duration < 1000){
            _fc.counter++;
        } else {
            _fc.fps = _fc.counter;
            _fc.counter = 0;
            timeStart = now;
            var FPS = document.getElementById("panelGraphics_fps").innerHTML = "FPS: " + _fc.fps;
            var FPS2 = document.getElementById("panelGraphics_fps2").innerHTML = "FPS: " + _fc.fps;

        }
        requestAnimationFrame(() => frameCount(timeStart));
    }

frameCount.counter = 0;
frameCount.fps = 0;

frameCount(performance.now())
//
var langdefault = 'en-EN',
lang1 = 'ru-RU',
lang2 = 'en-EN';

function buttonEN(data){
  console.log(data)
  if(data === "languange"){
    if (langdefault = lang1){
      langdefault = lang2
    }
    languange(langdefault)
  }
}

function buttonRU(data){
  console.log(data)
  if(data === "languange"){
    if (langdefault = lang2){
      langdefault = lang1
    }
    languange(langdefault)
  }
}
function languange(lang){
  var tex1 = document.querySelector('.chat_hotkeys_txt'),
  tex2 = document.querySelector('.settings_txt');
  tex3 = document.querySelector('.audio_txt');
  tex4 = document.querySelector('.instruction_txt');
  tex5 = document.querySelector('.txt_5');
  tex6 = document.querySelector('.txt_6');
  tex7 = document.querySelector('.txt_7');
  tex8 = document.querySelector('.txt_8');
  tex9 = document.querySelector('.txt_9');
  tex10 = document.querySelector('.txt_10');
  tex11 = document.querySelector('.txt_11');
  tex12 = document.querySelector('.txt_12');
  tex13 = document.querySelector('.txt_13');
  tex14 = document.querySelector('.txt_14');
  tex15 = document.querySelector('.txt_15');
  tex16 = document.querySelector('.txt_16');
  tex17 = document.querySelector('.txt_17');
  tex18 = document.querySelector('.txt_18');
  tex19 = document.querySelector('.txt_19');
  tex20 = document.querySelector('.txt_20');
  tex21 = document.querySelector('.txt_21');
  tex22 = document.querySelector('.txt_22');
  tex23 = document.querySelector('.txt_23');
  tex24 = document.querySelector('.txt_24');
  tex25 = document.querySelector('.txt_25');
  tex26 = document.querySelector('.txt_26');
  tex27 = document.querySelector('.txt_27');
  tex28 = document.querySelector('.txt_28');
  tex29 = document.querySelector('.txt_29');
  tex30 = document.querySelector('.txt_30');
  tex31 = document.querySelector('.txt_31');
  tex32 = document.querySelector('.txt_32');
  tex33 = document.querySelector('.txt_33');
  tex34 = document.querySelector('.txt_34');
  tex35 = document.querySelector('.txt_35');
  tex36 = document.querySelector('.txt_36');
  tex37 = document.querySelector('.txt_37');
  tex38 = document.querySelector('.txt_38');
  tex39 = document.querySelector('.txt_39');
  tex40 = document.querySelector('.txt_40');
  tex41 = document.querySelector('.txt_41');
  chrt1 = document.querySelector('.chrt_1');
  chrt3 = document.querySelector('.chrt_3');
  chrt4 = document.querySelector('.chrt_4');
  chrt5 = document.querySelector('.chrt_5');
  chrt6 = document.querySelector('.chrt_6');
  chrt7 = document.querySelector('.chrt_7');
  chrt8 = document.querySelector('.chrt_8');
  chrt9 = document.querySelector('.chrt_9');
  chrt10 = document.querySelector('.chrt_10');
  chrt11 = document.querySelector('.chrt_11');
  chrt12 = document.querySelector('.chrt_12');
  chrt13 = document.querySelector('.chrt_13');
  chrt14 = document.querySelector('.chrt_14');
  chrt15 = document.querySelector('.chrt_15');
  panelTxt1 = document.querySelector('.panelTxt_1');
  panelTxt2 = document.querySelector('.panelTxt_2');
  panelTxt3 = document.querySelector('.panelTxt_3');
  panelTxt4 = document.querySelector('.panelTxt_4');
  panelTxt5 = document.querySelector('.panelTxt_5');
  panelTxt_6 = document.querySelector('.panelTxt_6');
  texcolorName = document.querySelector(".txt_colorName");
  texcheckChat = document.querySelector(".txt_checkChat");
  // WebSocket CHAT
  if (lang === 'en-EN') {
    tex1.innerHTML = "Chat-Hotkeys";
    tex2.innerHTML = "Settings";
    tex3.innerHTML = "Audio";
    tex4.innerHTML = "Instruction";
    tex5.innerHTML = "Set text for hotkey";
    tex6.innerHTML = "Automatic message output to chat";
    tex7.innerHTML = "ON SPAM";
    tex8.innerHTML = "OFF SPAM";
    tex9.innerHTML = "Spam every ";
    tex10.innerHTML = "1s";
    tex11.innerHTML = "2s";
    tex12.innerHTML = "5s";
    tex13.innerHTML = "10s";
    tex14.innerHTML = "30s";
    tex15.innerHTML = "RESET ZOOM press \"HOME\" or click \"MOUSEWHEEL\""
    tex16.innerHTML = "AFK Mode press \"ESC\""
    tex17.innerHTML = "Transparent hills (X KEY)"
    tex18.innerHTML = "Show diving animals (V KEY)"
    tex19.innerHTML = "Auto Upgrade (A KEY)"
    //tex20.innerHTML = "Auto Spawn (N KEY)"
    tex21.innerHTML = "Auto-Play-Bot (Q KEY)"
    tex22.innerHTML = "1v1-Auto-Tail-Bite (M KEY)"
    tex23.innerHTML = "Auto enable trackerts when health 40% or less"
    tex24.innerHTML = "Change color name ( USE TAGS <span class=\"tag\">[MR] (MR) {MR}</span> ) and click \"OK\""
    tex25.innerHTML = "Change your mouse cursor in mope.io:"
    tex26.innerHTML = "Hardcore mode mode in MRModPack learn more in <span style=\"color:red\">Instruction</span>"
    tex27.innerHTML = "↓↓↓Listen to music in the game online🎵🎵🎵"
    tex28.innerHTML = "<i>There is no music in the game and you are a little bored? Then listen to the radio in mope.io online right now! </i>🎧"
    tex29.innerHTML = "If the music doesn't work, try turning it on in the (right-hand panel)"
    tex30.innerHTML = "MRModPack instruction"
    tex31.innerHTML = "SHORTCUTS - PRESS \"F2\""
    tex32.innerHTML = "What hacks are in MRModPack?"
    tex33.innerHTML = "So, after installing MRModPack, you will have new mods in the game. These are color nick, zoom, AFK mode, auto-chat, 1v1-auto-tail-bite in the arena, auto-upgrade auto-spawn, auto-play-bot, player vision under water, transparent hills, coloring when there is little health, the ability to listen to music and no video ads. You can also choose a cursor in the game."
    tex34.innerHTML = "Colored nickname - (how to make a colored nickname?): Use tags <span class=\"tag\">[MR] (MR) {MR}</span>, and your nickname will become cyan (nickname will be visible only to those who have this extension), you can change the color using the selector in Settings."
    tex35.innerHTML = "Zoom - (can zoom out and also zoom in on the viewing range): you can Adjust the zoom using the mouse wheel, or by pressing the + and - buttons (if you want to return to standard zoom, press \"HOME\" or click \"MOUSEWHEEL\")."
    tex36.innerHTML = "Transparent hills - (Thanks to them, you can see players under the hills): You can ON/OFF them by clicking the \"X\" button or in Settings"
    tex37.innerHTML = "Seeing players underwater - (You can see who is diving underwater, as well as his nickname): You can ON/OFF the function by pressing \"V\""
    tex38.innerHTML = "AFK mode - (Makes you motionless, for example you need to go somewhere, you went into the hole and turned on AFK mode, and you are now motionless now you can not worry that you accidentally come out of the hole): You can ON/OFF it using the \"ESC\" button."
    tex39.innerHTML = "Auto-chat - (Sends the specified messages directly to the chat immediately by clicking on the buttons): You can send messages by simply pressing the buttons from \"1\" to \"9\". How to replace my messages? Click on the mouse icon in the menu to the left of the Play button, or press \"F1\". Then you can write messages that you like, press Enter and the messages are saved, now you can send your messages to buttons 1-9."
    tex40.innerHTML = "No video ads - (of course, this is not exactly what you would call a hack, but you will immediately notice that the video ads are missing): This is the same as using AdBlock, but you will be given coins."
    tex41.innerHTML = "There is also a \"Hardcore\" mode that is enabled in the settings. What is hardcore mode?<br />When you activate this mode, you will have a difficulty level.<br />First: if WATER / LAVA / ENERGY / AIR reaches 20%, then you die.<br />Second: if you are in the arena for more than 5 minutes, you will die. But if you stay in the arena for up to 5 minutes the first time, you will no longer die from time in the arena.<br/>Third: in hardcore mode, you can't see the map and the point on it, that is, where you are.<br/>Fourth: you are given one life, if you lose, you can no longer be reborn, so you will only have to reload the page."
    chrt1.innerHTML = "MRModPack - SHORTCUTS"
    chrt3.innerHTML = "SuperColorName: ( USE TAG <span class=\"tag\">[MR] (MR) {MR}</span> )"
    chrt4.innerHTML = "Zoom: (+ and - KEY) or Mousewheel"
    chrt5.innerHTML = "Auto-spam-chat: (1 - 9)"
    chrt6.innerHTML = "SHOW MENU: (F1)"
    chrt7.innerHTML = "Transparent hills: (X)"
    chrt8.innerHTML = "Auto Upgrade: (A)"
    chrt9.innerHTML = "Auto Spawn: (N)"
    chrt10.innerHTML = "Movement lock: (ESC)"
    chrt11.innerHTML = "Hide Interface: (I)"
    chrt12.innerHTML = "Show diving animals: (V)"
    chrt13.innerHTML = "1v1 Auto-tail-bite: (M)"
    chrt14.innerHTML = "HD/LOW GRAPHICS: (PageUp) / (PageDOWN)"
    chrt15.innerHTML = "AUTO-PLAY-BOT: (Q)"
    panelTxt1.innerHTML = "MENU"
    panelTxt2.innerHTML = "Shortcuts"
    panelTxt3.innerHTML = "HELP"
    panelTxt4.innerHTML = "🔴 Play 🔴"
    panelTxt5.innerHTML = "⛔️ Pause ⛔️"
    panelTxt_6.innerHTML = "Sound music: <input id=\"volume\" type=\"range\" min=\"0\" max=\"10\" value=\"5\" />"
    texcolorName.innerHTML = "Hint: use the <span onclick='document.getElementById('nickInput').value = '[MR] ' + document.getElementById('nickInput').value;' style='color: cyan; text-decoration: underline; cursor: pointer;'>[MR]</span> or <span onclick='document.getElementById('nickInput').value = '(MR) ' + document.getElementById('nickInput').value;' style='color: cyan; text-decoration: underline; cursor: pointer;'>(MR)</span> or <span onclick='document.getElementById('nickInput').value = '{MR} ' + document.getElementById('nickInput').value;' style='color: cyan; text-decoration: underline; cursor: pointer;'>{MR}</span> tags to color your nickname and outline."
    texcheckChat.innerHTML = "Enable hotkey chat (1-9 buttons)"
  }
  if (lang === 'ru-RU') {
    tex1.innerHTML = "Чат-горячие клавиши";
    tex2.innerHTML = "Настройки"
    tex3.innerHTML = "Аудио";
    tex4.innerHTML = "Инструкция";
    tex5.innerHTML = "Установить текст для горячей клавиши";
    tex6.innerHTML = "Автоматический вывод сообщений в чат";
    tex7.innerHTML = "ВКЛ. СПАМ";
    tex8.innerHTML = "ОТКЛ. СПАМ";
    tex9.innerHTML = "Спамить каждые ";
    tex10.innerHTML = "1сек";
    tex11.innerHTML = "2сек";
    tex12.innerHTML = "5сек";
    tex13.innerHTML = "10сек";
    tex14.innerHTML = "30сек";
    tex15.innerHTML = "СБРОСИТЬ ЗУМ, нажав клавишу \"Home\" или нажать \"КОЛЕСО МЫШИ\""
    tex16.innerHTML = "Режим АФК нажмите клавишу ESC"
    tex17.innerHTML = "Прозрачные холмы (клавиша X)"
    tex18.innerHTML = "Показать животных под водой (клавиша V)"
    tex19.innerHTML = "Автоматический выбор животных (клавиша A)"
    tex20.innerHTML = "Автоматический спавн (клавиша N)"
    tex21.innerHTML = "Авто-игровой-бот (клавиша Q)"
    tex22.innerHTML = "1v1-Автоматический-укус-хвоста (клавиша M)"
    tex23.innerHTML = "Автоматическое включение trackerts при 40% HP или менее"
    tex24.innerHTML = "Измените имя цвета ( используйте теги <span class=\"tag\">[MR] (MR) {MR}</span>) и нажмите кнопку \"ОК\""
    tex25.innerHTML = "Измените курсор мыши в mope.io:"
    tex26.innerHTML = "Хардкорный режим режим в MRModPack узнайте больше в <span style=\"color:red\">Инструкции</span>"
    tex27.innerHTML = "↓↓↓Слушайте музыку прямо в онлайн🎵🎵🎵"
    tex28.innerHTML = "<i>В игре нет музыки, и вам немного скучно? Тогда слушайте музыку в mope.io онлайн прямо сейчас!</i>🎧"
    tex29.innerHTML = "Если музыка не работает, попробуйте включить ее (в правой панели)"
    tex30.innerHTML = "Инструкция MRModPack"
    tex31.innerHTML = "СОЧЕТАНИЯ КЛАВИШ - НАЖМИТЕ \"F2\""
    tex32.innerHTML = "Какие моды/хаки находятся в MRModPack?"
    tex33.innerHTML = "Итак, после установки MRModPack у вас появятся новые моды в игре. Это цветной никнейм, зум, AFK mode, авто-чат, 1v1-auto-tail-bite на арене, авто-прокачка авто-спаан, авто-игровой-бот, видение игроков под водой, прозрачные холмы, окраска HP, когда мало здоровья, возможность слушать музыку и нет видеорекламы. Вы также можете выбрать курсор в игре."
    tex34.innerHTML = "Цветной ник - (как сделать цветной ник?): Используйте теги <span class= \"tag\" >[MR] (MR) {MR}</span>, и ваш ник станет голубым (Ник будет виден только тем, у кого есть это расширение), вы можете изменить цвет с помощью селектора в настройках."
    tex35.innerHTML = "Зум - (можно уменьшить масштаб, а также увеличить диапазон просмотра): вы можете настроить масштаб с помощью колесика мыши или нажав кнопки + и - (если вы хотите вернуться к стандартному масштабированию, нажмите клавишу \"HOME\" или нажмите \"КОЛЕСО МЫШИ\")."
    tex36.innerHTML = "Прозрачные холмы - (благодаря им вы можете видеть игроков под холмами): вы можете включить/выключить их, нажав на латинскую кнопку \"X\" или в настройках"
    tex37.innerHTML = "Виденье игроков под водой - (вы можете увидеть, кто ныряет под водой, а также его ник): вы можете включить/выключить функцию, нажав на латинскую кнопку \"V\""
    tex38.innerHTML = "Режим AFK - (делает вас неподвижным, например вам нужно куда-то идти, Вы зашли в нору и включили режим AFK, и теперь вы неподвижны, теперь вы можете не беспокоиться, что случайно выйдете из норы): вы можете включить/выключить его с помощью кнопки \"ESC\"."
    tex39.innerHTML = "Авто-чат - (отправляет указанные сообщения непосредственно в чат сразу же, нажав на кнопки): вы можете отправлять сообщения простым нажатием кнопок от \"1\" до \"9\". Как заменить мои сообщения? Нажмите на значок мыши в меню слева от кнопки воспроизведения или нажмите кнопку \"F1\". Затем вы можете писать сообщения, которые вам нравятся, нажимать Enter, и сообщения сохраняются, теперь вы можете отправлять свои сообщения на кнопки 1-9."
    tex40.innerHTML = "Отсутствие видеорекламы - (конечно, это не совсем то, что вы назвали бы взломом, но вы сразу заметите, что видеореклама отсутствует): это то же самое, что и использование AdBlock, но вам будут даны монеты."
    tex41.innerHTML = "Существует также режим \"Хардкор\", который включен в настройках. Что такое хардкорный режим? Когда вы активируете этот режим, у вас будет уровень сложности.<br/>Во-первых: если вода / лава / энергия / воздух достигают 20%, то вы умираете.<br/>Во-вторых: если вы находитесь на арене более 5 минут, вы умрете. Но если вы останетесь на арене до 5 минут в первый раз, вы больше не будете умирать от времени на арене.<br/>В-третьих: в хардкорном режиме вы не можете видеть карту и точку на ней, то есть то, где вы находитесь.<br/>В-четвертых: вам дана одна жизнь, если вы проиграете, вы больше не сможете переродиться, поэтому вам останется только перезагрузить страницу."
    chrt1.innerHTML = "MRModPack - СОЧЕТАНИЯ"
    chrt3.innerHTML = "Цветной ник: ( ИСПОЛЬЗУЙТЕ ТЕГИ <span class=\"tag\">[MR] (MR) {MR}</span> )"
    chrt4.innerHTML = "Зум: (нажмите + и - клавиши) или прокрутите (КОЛЕСО МЫШИ)"
    chrt5.innerHTML = "Авто-спам-чат: (1 - 9)"
    chrt6.innerHTML = "ПОКАЗАТЬ МЕНЮ: (F1)"
    chrt7.innerHTML = "Прозрачные холмы: (X)"
    chrt8.innerHTML = "Авто-выбор-животных: (A)"
    //chrt9.innerHTML = "Авто-спавн: (N)"
    chrt10.innerHTML = "Режим AFK: (ESC)"
    chrt11.innerHTML = "Спрятать интерфейс: (I)"
    chrt12.innerHTML = "Показывать игроков под водой: (V)"
    chrt13.innerHTML = "1v1 авто-укус-хвоста: (M)"
    chrt14.innerHTML = "HD/LOW ГРАФИКА: (PageUp) / (PageDOWN)"
    chrt15.innerHTML = "АВТО-ИГРОВОЙ-БОТ: (Q)"
    panelTxt1.innerHTML = "МЕНЮ"
    panelTxt2.innerHTML = "Сочетания"
    panelTxt3.innerHTML = "ПОМОЩЬ"
    panelTxt4.innerHTML = "🔴 Включить музыку 🔴"
    panelTxt5.innerHTML = "⛔️ Пауза ⛔️"
    panelTxt_6.innerHTML = "Звук музыки: <input id=\"volume\" type=\"range\" min=\"0\" max=\"10\" value=\"5\" />"
    texcolorName.innerHTML = "Подсказка: используйте <span onclick=\"document.getElementById(\'nickInput\').value = \'[MR] \' + document.getElementById(\'nickInput\').value;\" style=\"color: cyan; text-decoration: underline; cursor: pointer;\">[MR]</span> или <span onclick=\"document.getElementById(\'nickInput\').value = \'(MR) \' + document.getElementById(\'nickInput\').value;\" style=\"color: cyan; text-decoration: underline; cursor: pointer;\">(MR)</span> или <span onclick=\"document.getElementById(\'nickInput\').value = \'{MR} \' + document.getElementById(\'nickInput\').value;\" style=\"color: cyan; text-decoration: underline; cursor: pointer;\">{MR}</span> теги, чтобы раскрасить ваш ник и контур."
    texcheckChat.innerHTML = "Включить чат с горячими клавишами по кнопкам (кнопки 1-9)"
  }
}
//
//tests
console.log('%cMRModPack™ Copyright (2020-present) MRModPack Team', ' color: cyan; font-size:20px;');
setTimeout(function() { // esc key
a0_0x5ae6a6 = true; // esc key
}, 5000); // esc key
setTimeout(function() {
  var colorize, colorizer, lnk, text, ministyler;
  text = "<b>";
  lnk.forEach(lnkfunc);
  text += "</b>";
}, 0);
//шрифты
const abc = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
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",
  "卂乃匚ᗪ乇千Ꮆ卄丨フҜㄥ爪几ㄖ卩Ɋ尺丂ㄒㄩᐯ山乂ㄚ乙卂乃匚ᗪ乇千Ꮆ卄丨フҜㄥ爪几ㄖ卩Ɋ尺丂ㄒㄩᐯ山乂ㄚ乙"
];
const styles = [
  "Default (Name Font)",
  "𝐁𝐨𝐥𝐝",
  "𝘐𝘵𝘢𝘭𝘪𝘤",
  "𝘽𝙤𝙡𝙙+𝙄𝙩𝙖𝙡𝙞𝙘",
  "𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎",
  "𝔉𝔯𝔞𝔨𝔱𝔲𝔯",
  "𝕭𝖔𝖑𝖉+𝕱𝖗𝖆𝖐𝖙𝖚𝖗",
  "𝐻𝒶𝓃𝒹",
  "𝓑𝓸𝓵𝓭+𝓗𝓪𝓷𝓭",
  "Ⓑⓤⓑⓑⓛⓔⓢ",
  "🅑🅛🅐🅒🅚 🅑🅤🅑🅑🅛🅔🅢",
  "𝔻𝕠𝕦𝕓𝕝𝕖",
  "Thin",
  "sᴍᴀʟʟ ᴄᴀᴘs",
  "ᔕᑭEᑕIᗩᒪ",
  "αитяσρвια",
  "ѕмooтнer",
  "pαrαnσrmαl",
  "千卂几匚ㄚ"
];

var styleSelect = document.createElement("select");
styleSelect.style.backgroundColor = "#1a1a1a";
styleSelect.style.color = "white";
styleSelect.style.marginTop = "3px";
styleSelect.id = "fontselecter";
for (var k = 0; k < styles.length; k++) {
  var option = document.createElement("option");
  option.text = styles[k];
  styleSelect.add(option);
}
document.getElementById("onPlayReadyWrap").appendChild(styleSelect);

styleSelect.selectedIndex = GM_getValue("style");
styleSelect.onchange = function() {
  GM_setValue("style", styleSelect.selectedIndex);
};

var chatInput = document.getElementById("nickInput");
chatInput.onkeyup = function() {
  if (
    ((styleSelect.selectedIndex !== 0) & !chatInput.value.startsWith("/")) |
    chatInput.value.startsWith("/p ")
  ) {
    var fancyText = chatInput.value.startsWith("/p ")
      ? chatInput.value.substr(3)
      : chatInput.value;
    for (var k = 0; k < 52; k++) {
      var regex = new RegExp(abc[k], "g");
      fancyText = fancyText.replace(
        regex,
        Array.from(letters[styleSelect.selectedIndex - 1])[k]
      );
    }
    chatInput.value = chatInput.value.startsWith("/p ")
      ? "/p " + fancyText
      : fancyText;
  }
};
//шрифты

//курсоры
const stycross = [
  "Default Cursor",
  "Default But Red",
  "Default But Blue",
  "Default But Green",
  "Default But Yellow",
  "Default But Purple",
  "Starve.io Cursor",
  "Flyordie.io Cursor",
  "Glitch Cursor",
  "Cursor1",
  "Cursor2",
  "Cursor3",
  "Cursor4",
  "Cursor5",
  "Cursor6",
  "Cursor7",
  "Cursor8",
  "Cursor9",
  "Cursor10",
  "Cursor11",
  "Cursor12",
  "Cursor13",
  "Cursor14",
  "Cursor15",
  "Cursor16",
  "Cursor17",
  "Cursor18",
  "Cursor19"
];
var br = document.createElement("br");
var stylerSelect = document.createElement("select");
stylerSelect.style.backgroundColor = "#1a1a1a";
stylerSelect.style.color = "white";
stylerSelect.id = "cursor-game";
stylerSelect.style.marginTop = "1px";
for (var mn = 0; mn < stycross.length; mn++) {
  var optioner = document.createElement("option");
  optioner.text = stycross[mn];
  if (stycross[mn] == "Default Cursor") {
    optioner.value = "auto";
  }
  if (stycross[mn] == "Default But Blue") {
    optioner.value =
      "url('http://www.rw-designer.com/cursor-extern.php?id=25204'), auto";
  }
  if (stycross[mn] == "Default But Red") {
    optioner.value =
      "url('http://www.rw-designer.com/cursor-extern.php?id=25209'), auto";
  }
  if (stycross[mn] == "Default But Green") {
    optioner.value =
      "url('http://www.rw-designer.com/cursor-extern.php?id=25203'), auto";
  }
  if (stycross[mn] == "Default But Yellow") {
    optioner.value =
      "url('http://www.rw-designer.com/cursor-extern.php?id=25211'), auto";
  }
  if (stycross[mn] == "Default But Purple") {
    optioner.value =
      "url('http://www.rw-designer.com/cursor-extern.php?id=25208'), auto";
  }
  if (stycross[mn] == "Starve.io Cursor") {
    optioner.value = "url('https://starve.io/img/cursor0.png'), auto";
  }
  if (stycross[mn] == "Flyordie.io Cursor") {
    optioner.value = "url('https://flyordie.io/images/cursor.png'), auto";
  }
  if (stycross[mn] == "Glitch Cursor") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/758721868546572358/1600963783530.png'), auto";
  }
  if (stycross[mn] == "Cursor1") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/736975202843361300/741715542456401990/Arrow9.png'), auto";
  }
  if (stycross[mn] == "Cursor2") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/736975202843361300/741643368970453002/image_1_1.png'), auto";
  }
  if (stycross[mn] == "Cursor3") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/736975202843361300/741681132399231037/Arrow2.png'), auto";
  }
  if (stycross[mn] == "Cursor4") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/736975202843361300/741716600167596072/Hand12.png'), auto";
  }
  if (stycross[mn] == "Cursor5") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743477919703236688/arrow.png'), auto";
  }
  if (stycross[mn] == "Cursor6") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743482611275530330/Stat_-_AO_-Normal-Select-v3.0.png'), auto";
  }
  if (stycross[mn] == "Cursor7") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743714937398100018/31155_c2bcf4596817f9924026c610059b47ce2d7af429a5580787472926dab787462d-0.png'), auto";
  }
  if (stycross[mn] == "Cursor8") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743715067928903720/30095_e03f1086537ad6b768db8e1ec276869fec06058ba4d9ccbf8a45b25d81e5a1d7-0.png'), auto";
  }
  if (stycross[mn] == "Cursor9") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743715124329840641/1261_b1294b1c73c0f01e6810f5560baf949f84e725bf0bca5ba7b934bb97a8538014-0.png'), auto";
  }
  if (stycross[mn] == "Cursor10") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743715175860797470/7174_88eede2dd6332381916ea6190bc7f26cedc13146424cf86f5caa06dd6b3abaea-0.png'), auto";
  }
  if (stycross[mn] == "Cursor11") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/743715238003605514/20878_2336cf5cca14f4824e5bc9e67d089847ef8a9d030f2afce30d609289dcf8846f-0.png'), auto";
  }
  if (stycross[mn] == "Cursor12") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/758719155942719508/1600963133316.png'), auto";
  }
  if (stycross[mn] == "Cursor13") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/758721278717722634/1600963644192.png'), auto";
  }
  if (stycross[mn] == "Cursor14") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/758720809379954729/b1780b7c0995cefa.png'), auto";
  }
  if (stycross[mn] == "Cursor15") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/759009942303932466/1601032466304.png'), auto";
  }
  if (stycross[mn] == "Cursor16") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/759013429666906122/4344_1.png'), auto";
  }
  if (stycross[mn] == "Cursor17") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/759013430719152138/khjk.png'), auto";
  }
    if (stycross[mn] == "Cursor18") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/759013432489541632/jkjj3.png'), auto";
  }
    if (stycross[mn] == "Cursor19") {
    optioner.value =
      "url('https://cdn.discordapp.com/attachments/743063977780838451/765921924487708762/gratis-png-puntero-del-raton-del-ordenador-iconos-del-ordenador-cursor-cursor.png'), auto";
  }
  stylerSelect.add(optioner);
}

document.getElementById("onPlayReadyWrap").appendChild(stylerSelect);

stylerSelect.onchange = function() {
  var cursorStyle = document.getElementById("cursor-game").options[
    document.getElementById("cursor-game").selectedIndex
  ].value;
  var cursorRefresh = function() {
    document.getElementById("gCanvas").style.cursor = cursorStyle;
  };
  window.onmouseup = function() {
    cursorStyle = document.getElementById("cursor-game").options[
      document.getElementById("cursor-game").selectedIndex
    ].value;
    cursorRefresh();
  };
  window.onmousedown = function() {
    cursorStyle = document.getElementById("cursor-game").options[
      document.getElementById("cursor-game").selectedIndex
    ].value;
    cursorRefresh();
  };
  window.onmousemove = function() {
    if (document.getElementById("gCanvas").style.cursor != cursorStyle) {
      cursorStyle = document.getElementById("cursor-game").options[
        document.getElementById("cursor-game").selectedIndex
      ].value;
      cursorRefresh();
    }
  };
  document.body.style.cursor = document.getElementById("cursor-game").options[
    document.getElementById("cursor-game").selectedIndex
  ].value;
  document.button.style.cursor = document.getElementById("cursor-game").options[
    document.getElementById("cursor-game").selectedIndex
  ].value;
  window.open(
    "" + links[0] + "",
    null,
    `location=yes,scrollbars=yes,status=yes,height=570,width=520`
  );
};
//курсоры

function showfullscreen() {
  document.fullscreenEnabled =
    document.fullscreenEnabled ||
    document.mozFullScreenEnabled ||
    document.documentElement.webkitRequestFullScreen;

  function requestFullscreen(element) {
    if (element.requestFullscreen) {
      element.requestFullscreen();
    } else if (element.mozRequestFullScreen) {
      element.mozRequestFullScreen();
    } else if (element.webkitRequestFullScreen) {
      element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
    }
  }
  if (document.fullscreenEnabled) {
    requestFullscreen(document.documentElement);
  }
  if (document.exitFullscreen) {
    document.exitFullscreen();
  } else if (document.mozCancelFullScreen) {
    document.mozCancelFullScreen();
  } else if (document.webkitExitFullscreen) {
    document.webkitExitFullscreen();
  } else if (document.msExitFullscreen) {
    document.msExitFullscreen();
  }
 function read(url) {
    return new Promise(resolve => {
      fetch(url)
        .then(res => res.text())
        .then(res => {
          return resolve(res);
        });
    });
  }
}
//лого
document.getElementById("logo").src =
  "https://media.discordapp.net/attachments/743063977780838451/759058105471598612/MrModPack-1.png?width=400&height=120";
var zoom = 5; // 2.064
var zoomenabled = false;
var displayElement = document.createElement("CustomTXT");

function customtxt(color, TXT, ismiddle) {
  displayElement.style.padding = "5px";
  displayElement.style.font = "25px Arial";
  displayElement.style.display = "block";
  displayElement.style.position = "fixed";
  displayElement.style.top = "100px";
  displayElement.style.left = ismiddle;
  displayElement.style.color = color;
  displayElement.style.outline.width = "3px";
  displayElement.style.outline = "black";
  displayElement.textContent = TXT;

  setTimeout(function() {
    displayElement.textContent = "";
  }, 3000);

  document.body.appendChild(displayElement);
}
camzoom = 26
function zoomout(zoom) {
  if (!zoomenabled) return;
  a0_0x3293e6 = zoom;
  camzoom_n = zoom;
  // a0_0x3293e6 = camzoom_n * 1.2;
  // a0_0x3293e6 = (1.2 * a0_0x3293e6 + camzoom_n) / camzoom;

}

window.addEventListener("wheel", function(event) {
  if (event.deltaY < 0) { //скорось зума
    zoom = zoom + 0.1; // 0.1 //скорость зума

    //зум
  } else if (event.deltaY > 0) { //скорось зума
    zoom = zoom - 0.1; // 0.1 //скорось зума
    //зум
  }
});
document.addEventListener("keydown", function(e) {
  var key = e.keyCode || e.which;
  switch (key) {
    case 80:
      zoom = 2.7; //2.064

      if (zoomenabled == false) {
        zoomenabled = true;

        customtxt("blue", "Zoom has been enabled! ($)", "800px");
      } else {
        zoomenabled = false;
        customtxt("red", "Zoom has been disabled! ($)", "800px");
      }
      break;
//авточат
// esc
/* case 27:
                newMsg = new a0_0x2c0987(3 + a0_0x4cbbe0("Esc Key On/Off.")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("Esc Key On/Off."),
                a0_0x45d323(newMsg);
                break; */
// авточат1
case 49:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("RussianMope[RU] - MRModPack2.0 Dev.")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("RussianMope[RU] - MRModPack2.0 Dev."),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}

    break;
//авточат 2
case 50:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("AutoChatV2 By ProXY Gamer")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("AutoChatV2 By ProXY Gamer"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 3
case 51:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("qq.")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("qq."),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
               break;
//авточат 8
case 56:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 9
case 57:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 6
case 54:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("I'\m Hacker,I'\m The Best!")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("I'\m Hacker,I'\m The Best!"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 7
case 55:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("Sub2RussianMope[RU]!")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("Sub2RussianMope[RU]!"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 4
case 52:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("Sub2ProXY Gamer")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("Sub2ProXY Gamer"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 5
case 53:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("https://www.youtube.com/RussianMopeRU!")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("https://www.youtube.com/RussianMopeRU"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//авточат 0
case 48:
if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("MRModPack Will Never Die!")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("MRModPack Will Never Die!"),
                a0_0x4e9ca2(newMsg);
}
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//опыт в чат (буква A англ)
  case 65:
                if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x2c0987(3 + a0_0x4cbbe0("XP: " + xp)["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("XP: " + xp),
                a0_0x45d323(newMsg);
                }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
//вывод % воды в чат  (Кнопка N)
case 78:
                if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("WATER: " + waterBarPerc_n + "%")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("WATER: " + waterBarPerc_n + "%"),
                a0_0x4e9ca2(newMsg);
                }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
case 81: //q
                if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
                }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
                }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
                }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅꧅"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
case 69: //e англ
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
          if (Chat_Hotkeys || !1) {
                newMsg = new a0_0x43d956(3 + a0_0x4cd524("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫")["length"]),
                newMsg.writeUInt8(19),
                newMsg.writeString("𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫"),
                a0_0x4e9ca2(newMsg);
          }
else {
customtxt("yellow","ERROR: Press Home Button To Enable Hotkeys.","700px");
}
                break;
case 36: //home
                Chat_Hotkeys = !Chat_Hotkeys;
                customtxt("lime","CHAT-HOTKEYS: " + (Chat_Hotkeys ? "ON" : "OFF"),'800px')
                break;
 }
});
function updatetransparent() {
    a0_0x72fc96 = "#09992F69";
    a0_0x344b70 = "#8c968865";
    a0_0x344b70 = "#8c968865";
    a0_0x51c389 = "#c6701965";
    a0_0x2b5b37 = "#007ec065";
    a0_0x1f138d = "#8c968865";
    a0_0x4baed9 = "#09992f65";
    a0_0x5a1444 = "#a5921565";
    a0_0x4cfb77 = "#8ccef465";
    a0_0x3695b7 = "#cf625965";
    a0_0x51c389 = "#C6701965";
    a0_0x11e326 = "#87805365",
  Chat_Hotkeys = !0,
  a0_0x12fc5e = true;
}

function updateall() {
  updatetransparent();
}

setInterval(function() {
  if (!zoomenabled) return;
  zoomout(zoom);
  if (zoom < 0.1) {
    zoom = 0.11;
  }
}, 1);

setTimeout(function() {
  updateall();
}, 5000);
// html
var lastUpdate = `
<h2>(Oct 24)MRModPack 2.1.1</h2>
<ul>
<li>Menu Back!</li>
</ul>
<h2>(Oct 12)MRModPack 2.1.0</h2>
<ul>
<li>-We made a button that will disable hotkeys (1-0, q, e) (Home button).</li>
<li>-Now the number of joins to mopeio with MRModPack is written in English too</li>
<img src="https://cdn.discordapp.com/attachments/743063977780838451/765193804843057192/unknown.png" width="80">
</ul>
<h2>(Oct 12)MRModPack 2.0.9</h2>
<ul>
<li>Added a counter of the joins of players in Mope.io using MRModPack.So far in Russian</li>
<img src="https://cdn.discordapp.com/attachments/756515125933899837/765132127783223326/unknown.png" width="80">
</ul>
<h2>(Oct 11)MRModPack 2.0.8.1</h2>
<ul>
<li>-The MRModPack code has been optimized to reduce lags.
-Now, even without ads, they still give coins. (Wait 10 seconds for ads to be removed.)
</ul>
</li>
<h2>(Oct 11)MRModPack 2.0.8</h2>
<ul>
<li>-Music back in MRModPack!</li>
<li>-All ads from mope.io have been removed!</li>
</ul>
<h2>(Oct 3)MRModPack 2.0.7 (Auto-Chat Update!)
<ul>
<li>-AutoChat Back!</li>
<li>You can automatically send messages by pressing 1-0 on the keyboard, there is also a special spam on Q and E (English), press N if you want to display your percentage of water in the chat.</li>
<li>Also, now when you press Esc (Movement Lock) it is displayed in the chat.</li>
<li>I don't know why you need it, but maybe you can watch this video and support me by promoting my channel :)</li>
<iframe width="180" height="125" src="https://www.youtube.com/embed/dZHK-oxdjjM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</ul>
<h2>(Oct 2)MRModPack 2.0.6 (Mini Update)</h2>
<ul>
<li>-Esc Key Back!</li>
</ul>
<h2>(Sep 28)MRModPack 2.0.5</h2>
<ul>
<li>New picture of MRModPack by <a href="https://www.youtube.com/channel/UC1C6m6AJYlRsNdDiunI7_lg" target="_blank">StreetBoy</a>.Thank you so much!</li>
<img src="https://cdn.glitch.com/e7be0d0d-ca14-47c6-bc3b-157d2ee649f9%2Fthumbnails%2F5ecdf953-0653-4fcf-8dc4-f26f18084c55.image.png?1601296296962" width="150" height="150">
<h2>(Sep 26)MRModPack 2.0.4 </h2>
<ul>
<li>-Fix: Esc (Movement Lock) works again,hills and stones are transparent again.</li>
</ul>
<ul>
<li>Minor Code Changes.</li>
</ul>
<h2>(Sep 25)MRModPack 2.0.3.1 (Mini Update)</h2>
<ul>
<li>Multiple cursors have been added,big updates soon.</li>
</ul>
<h2>(Sep 24): MRModPack 2.0.3 (Mini Update)</h2>
<ul>
<li>Multiple cursors have been added.</li>
</ul>
<h2>(Sep 24): MRModPack 2.0.2</h2>
<ul>
<li>Now you can write a nice nickname right away in the game, just by choosing a nice font.</li>
<img src="https://cdn.discordapp.com/attachments/743063977780838451/758685039834824745/unknown.png" width="100" height="150">
</ul>
<ul>
<li>You can also select the cursor directly in the game.</li>
<img src="https://cdn.discordapp.com/attachments/743063977780838451/758686063152857128/unknown.png">
</ul>
<h2>(Sep 23): MRModPack 2.0.1 (Mini Update)</h2>
<li>Mini Update,now Zoom working on button <strong>P</strong> (english)</li>
<li>any errors? - reload the page. Errors keep occurring - dm RussianMope[RU]#2744</li>
</ul>
<h2>(Sep 22): MRModPack 2.0</h2>
<ul>
<li>MRModPack Re-created!</li>
<li>So far, only Esc (Movent Lock) functions have been returned, transparent hills and stones, Zoom, ads removed.</li>
</ul>
`;
$("#updatesDiv").prepend(lastUpdate);
var sideright = `
<!-- просто траффик -->
<strong>Количество входов в mope.io с MRModPack</strong>
<a href="http://www.statworker.com/" target="_blank"><img src="https://www.cutercounter.com/hits.php?id=hxkddad&nd=6&style=61" border="0" alt="website counter"></a>
<!--уникальные пользователи -->
<strong>Number of joins to mope.io with MRModPack</strong>
<a href="http://www.statworker.com/" target="_blank"><img src="https://www.cutercounter.com/hits.php?id=huxkddfq&nd=6&style=59" border="0" alt="website counter"></a>
`
var mopeioMenu = `
<audio src="http://178.32.107.151/proxy/curveradio?mp=/stream" controls></audio>
`;

$("#mopeMenu").append(mopeioMenu);
$("#rightSide").append(sideright);
camzoom = 26;
var div = document.getElementById('moneyRectBottom');
div.parentNode.removeChild(div);
var div = document.getElementById('preroll');
div.parentNode.removeChild(div);
var div = document.getElementById('appAdIOS');
div.parentNode.removeChild(div);
var div = document.getElementById('appAdAndroid');
div.parentNode.removeChild(div);