Diep.io Working AUTOBUILD/Upgrader!

How to use: You should see a menu bar on the right side of the screen, hover over it and the menu will slide out! If not you may have to push [R] this will toggle the menu! When out click on the buttons shown! This should upgrade your tank automatically! If you don't know what the upgrades do, press [T] twice/once.

Fra 12.06.2022. Se den seneste versjonen.

  1. // ==UserScript==
  2. // @name Diep.io Working AUTOBUILD/Upgrader!
  3. // @namespace http://tampermonkey.net/
  4. // @version 4.11
  5. // @description How to use: You should see a menu bar on the right side of the screen, hover over it and the menu will slide out! If not you may have to push [R] this will toggle the menu! When out click on the buttons shown! This should upgrade your tank automatically! If you don't know what the upgrades do, press [T] twice/once.
  6. // @author -{Abyss⌬}-ora
  7. // @match https://diep.io/
  8. // @grant none
  9. // @license GNU GPLv3
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. "use strict";
  14. //-------------------------------------[AUTOBUILD BUTTON]------------------------------------\\
  15. var textG = document.createElement("div");
  16. document.getElementsByTagName("body")[0].appendChild(textG);
  17. textG.innerHTML = `
  18. <!DOCTYPE html>
  19. <html>
  20.  
  21. <head>
  22. <style>
  23. #myhover a {
  24. background-image: url("https://media.tenor.com/images/f3f5354b7c304bc61882dbb1183885e7/tenor.gif");
  25. background-repeat: repeat;
  26. background-attachment: fixed;
  27. background-size: 160px 100px;
  28. position: absolute;
  29. right: -200px;
  30. transition: 0.3s;
  31. padding: 15px;
  32. width: 250px;
  33. text-decoration: none;
  34. font-size: 10px;
  35. font-family: 'Monoton', cursive;
  36. text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px;
  37. src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');
  38. color: white;
  39. border-radius: 5 5px 5px 5;
  40. border-style: solid;
  41. border-width: thick;
  42. border-top-right-radius: 20px 50px;
  43. border-top-left-radius: 20px 50px;
  44. border-top-width: 20px;
  45. border-style: double;
  46. border-bottom-right-radius: 20px 50px;
  47. border-bottom-left-radius: 20px 50px;
  48. border-top-color: lightpink;
  49. border-left-color: lightgray;
  50. border-bottom-color: lightpink;
  51. border-right-color: lightgray;
  52. }
  53.  
  54. #myhover a:hover {
  55. right: 0;
  56. }
  57.  
  58. #modtab {
  59. top: 200px;
  60. background-color: #555
  61. }
  62.  
  63. .pointer {
  64. cursor: pointer;
  65. }
  66.  
  67. .button:hover {
  68. transform: translateX(-10px);
  69. }
  70.  
  71. .button {
  72. position: relative;
  73. transition-duration: 0.4s;
  74. overflow: hidden;
  75. }
  76.  
  77. .button:after {
  78. content: "";
  79. background: black;
  80. display: block;
  81. position: absolute;
  82. padding-top: 300%;
  83. padding-left: 350%;
  84. margin-left: -20px !important;
  85. margin-top: -120%;
  86. opacity: 0;
  87. transition: all 0.8s
  88. }
  89.  
  90. .button:active:after {
  91. padding: 0;
  92. margin: 0;
  93. opacity: 1;
  94. transition: 0s
  95. }
  96.  
  97. .mapdot {
  98. height: .25vmax;
  99. width: .25vmax;
  100. background-color: black;
  101. border-radius: 50%;
  102. display: block;
  103. position: absolute;
  104. right: 5.4vmax;
  105. bottom: 5.4vmax;
  106. opacity: 0.5;
  107. pointer-events: none;
  108. outline: white solid .7vmax;
  109. }
  110.  
  111. .mapbox {
  112. height: 8.78vmax;
  113. width: 8.78vmax;
  114. background-color: none;
  115. display: block;
  116. position: absolute;
  117. right: 1.2vmax;
  118. bottom: 1.2vmax;
  119. opacity: 0.5;
  120. pointer-events: none;
  121. outline: purple solid .35vmax;
  122. }
  123.  
  124. .mapbox {
  125. height: 8.78vmax;
  126. width: 8.78vmax;
  127. opacity: 0.5;
  128. border: pink solid .2vmax;
  129. }
  130. </style>
  131. </head>
  132.  
  133. <body>
  134. <div>
  135. <span class="mapdot"></span>
  136. <span class="mapbox"></span>
  137. </div>
  138. <div id="myhover" class="hover">
  139. <a id="modtab">
  140. <h1> -{Abyss⌬}-ora's modmenu</h1>
  141.  
  142. <button title="joinhoney.com/ref/o4z5ern" class="button" type="button" style="cursor: pointer; background-color:#f26c25; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:#fef9f6; width:200px; height:26px;" onclick=" window.open('http://joinhoney.com/ref/o4z5ern','_blank')">Join Honey!</button>
  143.  
  144. <br><br><button title="L3mon Factory" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 456845687456845687456845687456877')">⌬L3mon Factory</button>
  145.  
  146. <br><button title="My Factory" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 567456745678567456745678567488888')">⌬Factory</button>
  147.  
  148. <br><button title="w/less speed" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 456745674567456745674567456788888')">⌬OverLord_2.0</button>
  149.  
  150. <br><button title="w/no reload" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 555666555566664444444888888822111')">⌬OverLord</button>
  151.  
  152. <br><button title="Has speed and you run into things" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 213121312138238238883288327777777')">⌬Health/BodyDms</button>
  153.  
  154. <br><button title="A Smasher w/speed and few dms" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 7654765476547654765476547654128128128312812812812831281281283')">⌬SmasherSpeed</button>
  155.  
  156. <br><button title="3 regeneration and max speed max dmg and max health" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 7654765476547654765476547654111823823823823823823823823823823')">⌬Smasher/Dms</button>
  157.  
  158. <br><button title="Has high dms and no speed" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 456456456456456456456123123123123')">⌬Destroyer</button>
  159.  
  160. <br><button title="Fast bullets good for spraying tanks" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 456745674567456745674567456722111')">⌬Dms/speed</button>
  161.  
  162. <br><button title="slow bullets and fast speed good for spraying tanks" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 567856785678567856785678567822111')">⌬Dms/Health</button>
  163.  
  164. <br><button title="My favorite was to use Tri-angle class HAS NO SPEED" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 567567567567567567567123123123123')">⌬Tri-angle</button>
  165.  
  166. <br><button title="Trapper" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 567567485675674856756748567484848')">⌬Trapper</button>
  167.  
  168. <br><button title="Semi/Ram/Booster" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 567823567823148148567823567882314')">⌬Semi/Ram/Booster</button>
  169.  
  170. <br><button title="anti-ram" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 234234562345623456234562345623456')">⌬anti-ram</button>
  171.  
  172. <br><button title="pentrative/anti-ram" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 345345263452634526345263452634526')">⌬pentrat/anti-ram</button>
  173.  
  174. <br><button title="Anni/hybrid" class="button" type="button" style="cursor: pointer; background-color:pink; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 456845684568456845678456782345678')">⌬Anni/hybrid</button>
  175.  
  176. <br><button title="OL/overseer" class="button" type="button" style="cursor: pointer; background-color:white; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:black; width:200px; height:26px;" onclick="input.execute('game_stats_build 456845684568456845683456782345678')">⌬OL/overseer</button>
  177.  
  178. <br><button title="click here to Reset" class="button" type="button" style="cursor: pointer; background-color:purple; font-family: 'Monoton'; src: url('https://fonts.googleapis.com/css2?family=Monoton&display=swap'); color:white; width:200px; height:26px;" onclick="input.execute('game_stats_build 0')">⌬Reset</button>
  179. </a>
  180. </div>
  181. </body>
  182.  
  183. </html>
  184. `;
  185. var tgl = document.createElement("div");
  186. document.getElementsByTagName("body")[0].appendChild(tgl);
  187. tgl.style =
  188. "position:absolute; pointer-events: none; top:10px; right:200px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 20px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px";
  189. tgl.innerHTML = `</style>
  190. <p> Press &#160; &#160; (R) &#160; &#160; to &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Press &#160; &#160; (T) &#160; &#160; to &#160; </p>
  191. <p> toggle &#160; Menu &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; toggle &#160; info </p>`;
  192.  
  193. var imgfh = document.createElement("div");
  194. document.getElementsByTagName("body")[0].appendChild(imgfh);
  195. imgfh.style =
  196. "position:absolute; pointer-events: none; top:10px; left:10px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 20px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px";
  197. imgfh.innerHTML = `<div>
  198. <style>
  199. @import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');
  200.  
  201. img {
  202. background-color: lightgrey;
  203. width: 200px;
  204. border: 5px solid gray;
  205. padding: 5px;
  206. }
  207.  
  208. a.hidden {
  209. display: none;
  210. }
  211.  
  212. a.hiddentwo {
  213. display: none;
  214. }
  215.  
  216. * {
  217. box-sizing: border-box;
  218. }
  219.  
  220. .column {
  221. float: left;
  222. width: 12%;
  223. padding: 5px;
  224. vertical-align: top;
  225. display: inline-block;
  226. text-align: center;
  227. }
  228.  
  229. a.hidden::after {
  230. content: "";
  231. clear: both;
  232. display: table;
  233. }
  234.  
  235. .caption {
  236. display: block;
  237. }
  238. </style>
  239. <a id="imgdiv" class="hidden">
  240. <div class="column">
  241. <img src="https://github.com/Abyss-ora/images/blob/main/1.png?raw=true" style="width:100%">
  242. <span class="caption">⌬L3mon Factory</span>
  243. </div>
  244. <div class="column">
  245. <img src="https://github.com/Abyss-ora/images/blob/main/2.png?raw=true" style="width:100%">
  246. <span class="caption">⌬Factory</span>
  247. </div>
  248. <div class="column">
  249. <img src="https://github.com/Abyss-ora/images/blob/main/3.png?raw=true" style="width:100%">
  250. <span class="caption">⌬Over Lord 2.0</span>
  251. </div>
  252. <div class="column">
  253. <img src="https://github.com/Abyss-ora/images/blob/main/4.png?raw=true" style="width:100%">
  254. <span class="caption">⌬Over Lord</span>
  255. </div>
  256. <div class="column">
  257. <img src="https://github.com/Abyss-ora/images/blob/main/5.png?raw=true" style="width:100%">
  258. <span class="caption">⌬Health/ BodyDms</span>
  259. </div>
  260. </a>
  261. <a id="imgdivtwo" class="hiddentwo">
  262. <div class="column">
  263. <img src="https://github.com/Abyss-ora/images/blob/main/8.png?raw=true" style="width:100%">
  264. <span class="caption">⌬Destroyer</span>
  265. </div>
  266.  
  267. <div class="column">
  268. <img src="https://github.com/Abyss-ora/images/blob/main/9.png?raw=true" style="width:100%">
  269. <span class="caption">⌬Dms/ speed</span>
  270. </div>
  271.  
  272. <div class="column">
  273. <img src="https://github.com/Abyss-ora/images/blob/main/10.png?raw=true" style="width:100%">
  274. <span class="caption">⌬Dms/ Health</span>
  275. </div>
  276.  
  277. <div class="column">
  278. <img src="https://github.com/Abyss-ora/images/blob/main/11.png?raw=true" style="width:100%">
  279. <span class="caption">⌬Tri- angle</span>
  280. </div>
  281.  
  282. <div class="column">
  283. <img src="https://github.com/Abyss-ora/images/blob/main/12.png?raw=true" style="width:100%">
  284. <span class="caption">⌬Trapper</span>
  285. </div>
  286.  
  287. <div class="column">
  288. <img src="https://github.com/Abyss-ora/images/blob/main/33.png?raw=true" style="width:100%">
  289. <span class="caption">⌬anti-ram</span>
  290. </div>
  291.  
  292. <div class="column">
  293. <img src="https://github.com/Abyss-ora/images/blob/main/14.png?raw=true" style="width:100%">
  294. <span class="caption">⌬Semi/ Ram/ Booster</span>
  295. </div>
  296.  
  297. <div class="column">
  298. <img src="https://github.com/Abyss-ora/images/blob/main/6.png?raw=true" style="width:100%">
  299. <span class="caption">⌬Smasher Speed</span>
  300. </div>
  301.  
  302. <div class="column">
  303. <img src="https://github.com/Abyss-ora/images/blob/main/7.png?raw=true" style="width:100%">
  304. <span class="caption">⌬Smasher/ Dms</span>
  305. </div>
  306.  
  307. <div class="column">
  308. <img src="https://github.com/Abyss-ora/images/blob/main/34.png?raw=true" style="width:100%">
  309. <span class="caption">⌬pentrative/ anti-ram</span>
  310. </div>
  311.  
  312. <div class="column">
  313. <img src="https://github.com/Abyss-ora/images/blob/main/35.png?raw=true" style="width:100%">
  314. <span class="caption">⌬Anni/ hybrid</span>
  315. </div>
  316.  
  317. <div class="column">
  318. <img src="https://github.com/Abyss-ora/images/blob/main/36.png?raw=true" style="width:100%">
  319. <span class="caption">⌬OL/ overseer</span>
  320. </div>
  321. </a>
  322. </div>
  323. `;
  324. function isToday(dateParameter) {
  325. var today = new Date();
  326. return (
  327. dateParameter.getDate() === today.getDate() &&
  328. dateParameter.getMonth() === today.getMonth()
  329. );
  330. }
  331. if (isToday(new Date("08-14"))) {
  332. var happybirthdayinfo = document.createElement("div");
  333. document.getElementsByTagName("body")[0].appendChild(happybirthdayinfo);
  334. happybirthdayinfo.style =
  335. "position:absolute; pointer-events: none; top:30px; left:300px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 15px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px";
  336. happybirthdayinfo.innerHTML = `<p>-{Abyss⌬}-ora's &#160; &#160; birthday!</p>`;
  337. }
  338. if (isToday(new Date("11-19"))) {
  339. var happyanniversaryinfo = document.createElement("div");
  340. document.getElementsByTagName("body")[0].appendChild(happyanniversaryinfo);
  341. happyanniversaryinfo.style =
  342. "position:absolute; pointer-events: none; top:30px; left:300px; font-family: 'Monoton', cursive; color: #FFFFFF; font-size: 15px; text-shadow: black 0px 1px, purple 0px 2px, pink 0px 3px";
  343. happyanniversaryinfo.innerHTML = `<p>-{Abyss⌬}-ora's &#160; &#160; anniversary!</p>`;
  344. }
  345.  
  346. function hmm() {
  347. var xp = document.getElementById("imgdiv");
  348. if (xp.style.display === "none") {
  349. xp.style.display = "block";
  350. } else {
  351. xp.style.display = "none";
  352. }
  353. }
  354.  
  355. function mmh() {
  356. var xp = document.getElementById("imgdivtwo");
  357. if (xp.style.display === "none") {
  358. xp.style.display = "block";
  359. } else {
  360. xp.style.display = "none";
  361. }
  362. }
  363.  
  364. function keydownFunction() {
  365. var x = document.getElementById("myhover");
  366. if (x.style.display === "none") {
  367. x.style.display = "block";
  368. } else {
  369. x.style.display = "none";
  370. }
  371. }
  372. document.body.onkeyup = function (ep) {
  373. if (ep.keyCode === 84) {
  374. hmm();
  375. mmh();
  376. }
  377. if (ep.keyCode === 82) {
  378. keydownFunction();
  379. }
  380. };
  381. //-------------------------------------[TESTING AREA]----------------------------------------\\
  382. })();