// ==UserScript== // @icon https://cdn.discordapp.com/emojis/823513307712454727.png?v=1 // @name developingCAMenu // @namespace http://tampermonkey.net/ // @version 1 // @description Dont not take over the world // @author naber // @match http://zombs.io/* // @match meadow-rocky-lan.glitch.me // @run-at document-end // @downloadURL none // ==/UserScript== /*---------------------------------menu--------------------------------*/ /*scroll*/ var auto = 144120101162108118162105110108113106162113114114101162108105162107104162137104100110104103162119107108118167167167; document.querySelector(".hud-chat-messages") .style.width = "900px"; let CAMenucss = ` .hud-CAMenu-grid3::-webkit-scrollbar-track { box-shadow: inset 0 0 5px white; border-radius: 10px; border: white solid 1px; background-color: rgba(0,0,0,0.8); } .hud-CAMenu-grid3::-webkit-scrollbar { background-color: blue; border-radius: 10px; width: 10px; } .hud-CAMenu-grid3::-webkit-scrollbar-thumb { background: rgba(217, 217, 217, 1); border-radius: 10px; width: 3px;} .hud-CAMenu-grid3::-webkit-scrollbar-thumb:hover { background: rgba(177, 177, 177, 1); border-radius: 10px; } .hud-menu-CAMenu { /*scroll bar*/ /**/ display: none; position: fixed; top: 48%; left: 50%; width: 600px; height: 470px; margin: -270px 0 0 -300px; padding: 20px; background: rgba(0, 0, 0, 0.6); color: #eee; border-radius: 4px; z-index: 100; } .hud-menu-CAMenu .hud-CAMenu-grid3 { display: block; height: 360px; padding: 10px; margin-top: 18px; background: rgba(0, 0, 0, 0.3); overflow: auto; } .hud-spell-icons .hud-spell-icon[data-type="CAMenu"]::before { background-image: url("https://www.linkpicture.com/q/Icon.png"); } .hud-spell-icon[data-type="CAMenu"]:hover{ } /* BTN */ .CAbtn:hover { cursor: pointer; } .CAbtn1 { background-color: rgba(0, 0, 0, 0); border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtn1:hover{ opacity: 0.6; cursor: pointor; } .CAbtn1-activated { background-color: rgba(255, 255, 255, 0.5); border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtn1-activated:hover{ opacity: 0.6; cursor: pointor } .CAbtnR { background-color: #FF5964; border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtnR:hover{ opacity: 0.6; cursor: pointor; } .CAbtnY { background-color: #FFE74C; border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtnY:hover{ opacity: 0.6; cursor: pointor; } .CAbtnG { background-color: #6BF178; border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtnG:hover{ opacity: 0.6; cursor: pointor; } .CAbtnB { background-color: #35A7FF; border: 2px solid white; color: white; height:40px; margin: 5px; border-radius: 10px; padding: 7px; width: 243px; } .CAbtnB:hover{ opacity: 0.6; cursor: pointor; } .hud-CAMenuClose-icon{ position: relative; transform: scale(2); bottom: 460px; float: right; z-index:100; opacity: 0.2; } .hud-CAMenuClose-icon:hover{ opacity: 0.5; cursor: pointer; } .hud-CAMenuTitle{ position: relative; bottom: 480px; font-size: 30px; color: white; text-align: center; left:10px; font-weight: bold; font-family: "Hammersmith One", sans-serif; } /*emm*/ .box { display: block; width: 100%; height: 50px; line-height: 34px; padding: 8px 14px; margin: 0 0 10px; background: #eee; border: 0; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); border-radius: 4px; } .codeIn, .joinOut { height: 50px; } .hud-menu-zipp3 h3 { display: block; margin: 0; line-height: 20px; } .hud-menu-zipp3 .hud-the-tab { position: relative; height: 40px; line-height: 40px; margin: 20px; border: 0px solid rgb(0, 0, 0, 0); } .hud-menu-zipp3 .hud-the-tab { display: block; float: left; padding: 0 14px; margin: 0 1px 0 0; font-size: 14px; background: rgba(0, 0, 0, 0.4); color: rgba(255, 255, 255, 0.4); transition: all 0.15s ease-in-out; } .hud-menu-zipp3 .hud-the-tab:hover { background: rgba(0, 0, 0, 0.2); color: #eee; cursor: pointer; } `; console.log(auto); let styles = document.createElement("style"); styles.appendChild(document.createTextNode(CAMenucss)); document.head.appendChild(styles); styles.type = "text/css"; // spell icon let spell = document.createElement("div"); spell.classList.add("hud-spell-icon"); spell.setAttribute("data-type", "CAMenu"); spell.classList.add("hud-CAMenu-icon"); document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell); //tiptool hover document.getElementsByClassName("hud-CAMenu-icon")[0].addEventListener("mouseover", onMenuicon); document.getElementsByClassName("hud-CAMenu-icon")[0].addEventListener("mouseout", offMenuicon); function onMenuicon() { var caMenuTooltip = document.createElement('div'); caMenuTooltip.classList.add("hud-tooltip"); caMenuTooltip.classList.add("hud-tooltip-right"); caMenuTooltip.classList.add("CaTooltip"); caMenuTooltip.style = "left: 76px; top: 325px; font-size:15px;font-weight:bold; font-family:Hammersmith One;"; caMenuTooltip.innerHTML = "!CAMenu!"; document.body.appendChild(caMenuTooltip); } function offMenuicon() { document.getElementsByClassName("CaTooltip")[0].remove(); } //Menu for spell icon let modHTML = `
✕
CAMenu