venge mod menu

CheatWare a mod menu for many games but at the moment only venge.io also works with school laptops/computers

目前为 2022-08-28 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name venge mod menu
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6
  5. // @description CheatWare a mod menu for many games but at the moment only venge.io also works with school laptops/computers
  6. // @author Zaidbaidadekalb
  7. // @match https://venge.io/
  8. // @match https://venge.io/#
  9. // @icon https://www.google.com/s2/favicons?domain=venge.io
  10. // @grant none
  11. // @license GNU General Public License v3.0
  12. // @run-at document-end
  13. // ==/UserScript==
  14.  
  15. alert("Thank you for using CheatWare Make sure the script is up to date or there will be a hight risk of ban");
  16.  
  17.  
  18. var vengelink = "https://venge.io/"
  19. var customFov = 103;
  20.  
  21. var key = "Zaid"
  22. var link2 = "https://www.codegrepper.com/code-examples/javascript/how+to+position+a+button+in+javascript"
  23.  
  24. if (confirm("do you want to get key if not click cancel ")) {
  25. txt = alert("OK");
  26. document.write('<!DOCTYPE html>');
  27. document.write('<html>');
  28. document.write('<head>');
  29. document.write('<meta name="viewport" content="width=device-width, initial-scale=1">');
  30. document.write('<style>');
  31. document.write('.tooltip {');
  32. document.write(' position: relative;');
  33. document.write(' display: inline-block;');
  34. document.write('}');
  35. document.write('');
  36. document.write('.tooltip .tooltiptext {');
  37. document.write(' visibility: hidden;');
  38. document.write(' width: 140px;');
  39. document.write(' background-color: #555;');
  40. document.write(' color: #fff;');
  41. document.write(' text-align: center;');
  42. document.write(' border-radius: 6px;');
  43. document.write(' padding: 5px;');
  44. document.write(' position: absolute;');
  45. document.write(' z-index: 1;');
  46. document.write(' bottom: 150%;');
  47. document.write(' left: 50%;');
  48. document.write(' margin-left: -75px;');
  49. document.write(' opacity: 0;');
  50. document.write(' transition: opacity 0.3s;');
  51. document.write('}');
  52. document.write('');
  53. document.write('.tooltip .tooltiptext::after {');
  54. document.write(' content: "";');
  55. document.write(' position: absolute;');
  56. document.write(' top: 100%;');
  57. document.write(' left: 50%;');
  58. document.write(' margin-left: -5px;');
  59. document.write(' border-width: 5px;');
  60. document.write(' border-style: solid;');
  61. document.write(' border-color: #555 transparent transparent transparent;');
  62. document.write('}');
  63. document.write('');
  64. document.write('.tooltip:hover .tooltiptext {');
  65. document.write(' visibility: visible;');
  66. document.write(' opacity: 1;');
  67. document.write('}');
  68. document.write('</style>');
  69. document.write('</head>');
  70. document.write('<body>');
  71. document.write('');
  72. document.write('<p>Just go to the pastebin then get key then Refreash page then put key .</p>');
  73. document.write('');
  74. document.write('<input type="text" value="https://pastebin.com/raw/RqsSfL9j" id="myInput">');
  75. document.write('');
  76. document.write('<div class="tooltip">');
  77. document.write('<button onclick="myFunction()" onmouseout="outFunc()">');
  78. document.write(' <span class="tooltiptext" id="myTooltip">Copy to clipboard</span>');
  79. document.write(' Copy text');
  80. document.write(' </button>');
  81. document.write('</div>');
  82. document.write('');
  83. document.write('<script>');
  84. document.write('function myFunction() {');
  85. document.write(' var copyText = document.getElementById("myInput");');
  86. document.write(' copyText.select();');
  87. document.write(' copyText.setSelectionRange(0, 99999);');
  88. document.write(' navigator.clipboard.writeText(copyText.value);');
  89. document.write(' ');
  90. document.write(' var tooltip = document.getElementById("myTooltip");');
  91. document.write(' tooltip.innerHTML = "Copied: " + copyText.value;');
  92. document.write('}');
  93. document.write('');
  94. document.write('function outFunc() {');
  95. document.write(' var tooltip = document.getElementById("myTooltip");');
  96. document.write(' tooltip.innerHTML = "Copy to clipboard";');
  97. document.write('}');
  98. document.write('</script>');
  99. document.write('</body>');
  100. document.write('</html>');
  101. document.write('');
  102.  
  103. } else {
  104. txt = alert
  105.  
  106.  
  107. }
  108.  
  109. if (confirm("Make sure you have the correct key if not click cancel here is the key: " + key)) {
  110. txt = alert
  111. } else {
  112. txt = alert("You clicked cancel");
  113. div.remove()
  114.  
  115. }
  116.  
  117. var version = "the version is 0.5"
  118.  
  119. let div = document.createElement("div");
  120. let btn = document.createElement("button");
  121. let btn2 = document.createElement("button");
  122. let vengeb = document.createElement("button");
  123. let text = document.createElement("textContent");
  124. let Cheat = document.createElement("textContent");
  125. let github = document.createElement("button");
  126.  
  127.  
  128.  
  129.  
  130. btn.innerHTML = "version";
  131. btn2.innerHTML = "Start";
  132. vengeb.innerHTML = "Venge.io!";
  133. btn.style= "display: block";
  134. btn2.style= "display: block";
  135. github.style = "display: block";
  136. vengeb.style= "display: block";
  137. vengeb.style.opacity = "0";
  138.  
  139.  
  140.  
  141. div.id = "div_id" ;
  142. div.className = "div_class";
  143. div.style= "display: inline-block";
  144. div.style = "background-color:#2c2c2c;";
  145. div.style.width = "300px";
  146. div.style.height = "350px";
  147. document.body.appendChild(div);
  148. div.style.zIndex = "10000000";
  149. div.style.position = "fixed";
  150. div.style.top = "440px"; //or whatever
  151. div.style.left = "1500px"; // or whatever
  152. div.style.borderRadius = "5px";
  153. btn.style.borderRadius = "5px";
  154. btn.style.position = "absolute";
  155. btn2.style.position = "absolute";
  156. btn.style.marginLeft = "5px";
  157. btn2.style.marginLeft = "244px";
  158. btn2.style.marginTop = "253px";
  159. btn2.style.borderRadius = "5px";
  160. btn.style.marginTop = "5px";
  161. github.style.borderRadius = "5px";
  162. github.style.position = "absolute";
  163. btn.style.marginLeft = "5px";
  164. github.style.marginTop = "-220px";
  165. vengeb.style.marginTop = '227px'
  166. vengeb.style.marginLeft = "230px";
  167. vengeb.style.borderRadius = "5px";
  168. div.innerHTML = "Settings/Things";
  169. github.innerHTML = "GitHub Page";
  170. btn.style.backgroundColor = "#282828FF";
  171. github.style.backgroundColor = "#282828FF";
  172. btn2.style.backgroundColor = "#282828FF";
  173. vengeb.style.backgroundColor = "#282828FF";
  174. btn.style.border = "2 #FFFFFFB7";
  175. btn2.style.border = "2 #FFFFFFB7";
  176. github.style.border = "2 #FFFFFFB7";
  177. vengeb.style.border = "2 #FFFFFFB7";
  178. btn.style.padding = "3px 7px 3px 7px";
  179. btn2.style.padding = "3px 7px 3px 7px";
  180. github.style.padding = "3px 7px 3px 7px";
  181. vengeb.style.padding = "3px 7px 3px 7px";
  182.  
  183.  
  184.  
  185. btn.onclick = function () {
  186. alert(version);
  187. };
  188. // key \\
  189. if (key === "Zaid") {
  190. alert("You have the correct key");
  191. }
  192. vengeb.onclick = function () {
  193. alert("Enjoy CheatWare")
  194. javascript:(function(){window.s0=document.createElement('script');window.s0.setAttribute('type','text/javascript');window.s0.setAttribute('src','https://bookmarkify.it/bookmarklets/52126/raw');document.getElementsByTagName('body')[0].appendChild(window.s0);})();
  195. if (window.location.href === vengelink){
  196. alert
  197. } else {
  198. alert("Wrong game or webise make sure ur at venge lobby or else it will not work");
  199. }
  200. }
  201.  
  202. btn2.onclick = function () {
  203.  
  204. vengeb.style.opacity = "1";
  205.  
  206. }
  207. if (key != "Zaid") {
  208. div.remove()
  209.  
  210.  
  211. alert("wrong key or it might be that you just dident type anyhting in the keybox");
  212.  
  213. }
  214. github.onclick = function () {
  215. window.open("https://github.com/Zaidbaidadekalb/Game-cheats-WIP-");
  216. }
  217.  
  218. btn.onmouseover = function() {mouseOverbtn()};
  219. btn.onmouseout = function() {mouseOutbtn()};
  220. btn2.onmouseover = function() {mouseOverbtn2()};
  221. btn2.onmouseout = function() {mouseOutbtn2()};
  222. github.onmouseover = function() {mouseOverg()};
  223. github.onmouseout = function() {mouseOutg()};
  224. vengeb.onmouseover = function() {mouseOverbtnv()};
  225. vengeb.onmouseout = function() {mouseOutbtnv()};
  226. function mouseOverbtn() {
  227. btn.style.backgroundColor = "#6D6D6DFF";
  228.  
  229. }
  230. function mouseOutbtn() {
  231. btn.style.backgroundColor = "#282828FF";
  232.  
  233. }
  234.  
  235. function mouseOverbtn2() {
  236. btn2.style.backgroundColor = "#6D6D6DFF";
  237.  
  238. }
  239.  
  240. function mouseOutbtn2() {
  241. btn2.style.backgroundColor = "#282828FF";
  242.  
  243. }
  244.  
  245. function mouseOverg() {
  246. github.style.backgroundColor = "#6D6D6DFF";
  247.  
  248. }
  249. function mouseOutg() {
  250. github.style.backgroundColor = "#282828FF";
  251.  
  252. }
  253.  
  254. function mouseOverbtnv() {
  255. vengeb.style.backgroundColor = "#6D6D6DFF";
  256.  
  257. }
  258. function mouseOutbtnv() {
  259. vengeb.style.backgroundColor = "#282828FF";
  260.  
  261. }
  262.  
  263. //End of Key \\
  264. div_id.appendChild(btn);
  265. div_id.appendChild(btn2);
  266. div_id.appendChild(vengeb);
  267. div_id.appendChild(text);
  268. div_id.appendChild(github);
  269. div_id.appendChild(Cheat)
  270. text.style.position = 'absolute';
  271. text.textContent = "Main"
  272. text.style.top = "210px";
  273. text.style.left = "250px";
  274. Cheat.style.position = 'absolute';
  275. Cheat.textContent = "CheatWare"
  276. Cheat.style.top = "310px";
  277. Cheat.style.left = "90px";
  278. Cheat.style.fontSize = "xx-large";
  279. Cheat.className = "text2_class";
  280.  
  281.  
  282.  
  283.  
  284. // The current position of mouse
  285. let x = 0;
  286. let y = 0;
  287.  
  288. // Query the element
  289. const ele = document.getElementById('div_id');
  290.  
  291. // Handle the mousedown event
  292. // that's triggered when user drags the element
  293. const mouseDownHandler = function (e) {
  294. // Get the current mouse position
  295. x = e.clientX;
  296. y = e.clientY;
  297.  
  298. // Attach the listeners to `document`
  299. document.addEventListener('mousemove', mouseMoveHandler);
  300. document.addEventListener('mouseup', mouseUpHandler);
  301. };
  302.  
  303. const mouseMoveHandler = function (e) {
  304. // How far the mouse has been moved
  305. const dx = e.clientX - x;
  306. const dy = e.clientY - y;
  307.  
  308. // Set the position of element
  309. ele.style.top = `${ele.offsetTop + dy}px`;
  310. ele.style.left = `${ele.offsetLeft + dx}px`;
  311.  
  312. // Reassign the position of mouse
  313. x = e.clientX;
  314. y = e.clientY;
  315. };
  316.  
  317. const mouseUpHandler = function () {
  318. // Remove the handlers of `mousemove` and `mouseup`
  319. document.removeEventListener('mousemove', mouseMoveHandler);
  320. document.removeEventListener('mouseup', mouseUpHandler);
  321. };
  322.  
  323. ele.addEventListener('mousedown', mouseDownHandler);
  324. (function(){
  325. let textspeed = 1;
  326. let backgroundspeed = 0;
  327. let hoverspeed = 1;
  328. let hoverbackgroundspeed = 0;
  329.  
  330. let classestoberainbowed = document.getElementsByClassName('text2_class');
  331. let backgroundtoberainbowed = document.getElementsByClassName('foxrainbowbg');
  332.  
  333. let spanstoberainbowed = spanArrayContents(classestoberainbowed);
  334.  
  335. textcolorchange(spanstoberainbowed, textspeed);
  336. //Actually do the rainbow effect. Backgrounds only.
  337. let backgroundcounter = 0;
  338. setInterval(() => {
  339.  
  340. for(let i = 0; i < backgroundtoberainbowed.length; i++) {
  341. backgroundtoberainbowed[i].style.backgroundColor = 'hsl(' + (backgroundcounter + Math.floor(i * 1)) + ', 100%, 70%';
  342. }
  343. backgroundcounter = backgroundcounter + backgroundspeed;
  344. }, 15);
  345.  
  346.  
  347. //Turn the rainbow effect on only when the mouse is over the element. Use foxrainbowhover to use.
  348.  
  349. let rainbowhover = document.getElementsByClassName('foxrainbowhover');
  350. let invertedhover = document.getElementsByClassName('foxrainbowhoverinv');
  351. let rainbowelements = [];
  352. let rainbowinvelements = [];
  353. let hoverinterval = [];
  354. let hoverinvinterval = [];
  355. let hovercounters = [];
  356. let invcounters = [];
  357. let originalcolors = [];
  358. let originalinvcolors = [];
  359.  
  360. for(let i = 0; i < rainbowhover.length; i++) {
  361. rainbowelements[i] = spanElementContents(rainbowhover[i]);
  362. }
  363. for(let i = 0; i < invertedhover.length; i++) {
  364. rainbowinvelements[i] = spanElementContents(invertedhover[i]);
  365. }
  366.  
  367.  
  368.  
  369. //Set up the wavey effect with counters.
  370. for(let id = 0; id < rainbowelements.length; id++) {
  371. hovercounters[id] = [];
  372. for(let i = 0; i < rainbowelements[id].length; i++) {
  373. hovercounters[id].push(i);
  374. }
  375. }
  376.  
  377. for(let id = 0; id < rainbowinvelements.length; id++) {
  378. invcounters[id] = [];
  379. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  380. invcounters[id].push(i);
  381. }
  382. }
  383.  
  384. //Save the original color to easily return to it later.
  385. for(let i = 0; i < rainbowhover.length; i++) {
  386. originalcolors[i] = rainbowhover[i].style.color;
  387. }
  388.  
  389. // Add event listeners for every item classed foxrainbowhover. If it has a data tag called foxrainbowhover with an id inside it instead uses that to start the hover effect.
  390. for(let id = 0; id < rainbowhover.length; id++) {
  391. //Checks if the passed along id exists or not. If it doesn't, execute regularly. If it does, execute with hover on a different element.
  392. if(rainbowhover[id].dataset.foxrainbowhover) {
  393. let hoverelement = document.getElementById(rainbowhover[id].dataset.foxrainbowhover);
  394.  
  395. hoverelement.addEventListener("mouseenter", function startanimation() {
  396.  
  397. hoverinterval[id] = setInterval(() => {
  398.  
  399. for(let i = 0; i < rainbowelements[id].length; i++) {
  400. rainbowelements[id][i].style.color = 'hsl(' + (hovercounters[id][i] + Math.floor(i * hoverspeed)) + ', 100%, 70%';
  401. hovercounters[id][i]++;
  402. }
  403. }, 7);
  404. }, false);
  405.  
  406. hoverelement.addEventListener("mouseleave", function stopanimation() {
  407. console.log("gay1");
  408. clearInterval(hoverinterval[id]);
  409. for(let i = 0; i < rainbowelements[id].length; i++) {
  410. rainbowelements[id][i].style.color = originalcolors[id];
  411. }
  412. }, false);
  413.  
  414. }
  415. else {
  416. rainbowhover[id].addEventListener("mouseenter", function startanimation() {
  417.  
  418. hoverinterval[id] = setInterval(() => {
  419.  
  420. for(let i = 0; i < rainbowelements[id].length; i++) {
  421. rainbowelements[id][i].style.color = 'hsl(' + (hovercounters[id][i] + Math.floor(i * hoverspeed)) + ', 100%, 70%';
  422. hovercounters[id][i]++;
  423. }
  424. }, 7);
  425. }, false);
  426.  
  427. rainbowhover[id].addEventListener("mouseleave", function stopanimation() {
  428. clearInterval(hoverinterval[id]);
  429. for(let i = 0; i < rainbowelements[id].length; i++) {
  430. console.log("gay1");
  431. rainbowelements[id][i].style.color = originalcolors[id];
  432. }
  433. }, false);
  434. }
  435.  
  436.  
  437. }
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447. //Same code as before. Will make it way DRY-er later, but for now, this'll have to do.
  448.  
  449. for(let i = 0; i < invertedhover.length; i++) {
  450. originalinvcolors[i] = invertedhover[i].style.color;
  451. }
  452.  
  453. let startinterval = [];
  454.  
  455. // Add event listeners for every item classed foxrainbowhoverinv.
  456. for(let id = 0; id < invertedhover.length; id++) {
  457.  
  458. startinterval[id] = setInterval(() => {
  459.  
  460. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  461. rainbowinvelements[id][i].style.color = 'hsl(' + (invcounters[id][i] + Math.floor(i * hoverspeed)) + ', 100%, 70%';
  462. invcounters[id][i]++;
  463. }
  464. }, 7);
  465.  
  466. //Checks if the passed along id exists or not. If it doesn't, execute regularly. If it does, execute with hover on a different element.
  467. if(invertedhover[id].dataset.foxrainbowhover) {
  468. let hoverelement = document.getElementById(invertedhover[id].dataset.foxrainbowhover);
  469.  
  470. hoverelement.addEventListener("mouseenter", function stopanimation() {
  471. clearInterval(startinterval[id]);
  472. clearInterval(hoverinvinterval[id]);
  473. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  474. rainbowinvelements[id][i].style.color = originalinvcolors[id];
  475. }
  476.  
  477. }, false);
  478.  
  479. hoverelement.addEventListener("mouseleave", function startanimation() {
  480. hoverinvinterval[id] = setInterval(() => {
  481.  
  482. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  483. rainbowinvelements[id][i].style.color = 'hsl(' + (invcounters[id][i] + Math.floor(i * hoverspeed)) + ', 100%, 70%';
  484. invcounters[id][i]++;
  485. }
  486. }, 7);
  487. }, false);
  488.  
  489. }
  490. else {
  491. invertedhover[id].addEventListener("mouseenter", function stopanimation() {
  492.  
  493. clearInterval(startinterval[id]);
  494. clearInterval(hoverinterval[id]);
  495. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  496. rainbowinvelements[id][i].style.color = originalinvcolors[id];
  497. }
  498. }, false);
  499.  
  500. invertedhover[id].addEventListener("mouseleave", function startanimation() {
  501. hoverinterval[id] = setInterval(() => {
  502.  
  503. for(let i = 0; i < rainbowinvelements[id].length; i++) {
  504. rainbowinvelements[id][i].style.color = 'hsl(' + (invcounters[id][i] + Math.floor(i * hoverspeed)) + ', 100%, 70%';
  505. invcounters[id][i]++;
  506. }
  507. }, 7);
  508. }, false);
  509. }
  510.  
  511.  
  512. }
  513.  
  514.  
  515.  
  516. //Hover but for backgrounds.
  517.  
  518. let rainbowhoverbg = document.getElementsByClassName('foxrainbowhoverbg');
  519. let hoverbginterval = [];
  520. let hoverbgcounter = 0;
  521. let originalbgcolors = [];
  522.  
  523. //Save the original color to easily return to it later, but for backgrounds.
  524. for(let i = 0; i < rainbowhoverbg.length; i++) {
  525. originalbgcolors[i] = rainbowhoverbg[i].style.backgroundColor;
  526. }
  527.  
  528. for(let id = 0; id < rainbowhoverbg.length; id++) {
  529. rainbowhoverbg[id].addEventListener("mouseenter", function startbganimation() {
  530.  
  531. hoverbginterval[id] = setInterval(() => {
  532. rainbowhoverbg[id].style.backgroundColor = 'hsl(' + (hoverbgcounter + Math.floor(id * hoverbackgroundspeed)) + ', 100%, 70%';
  533. hoverbgcounter++;
  534. }, 15);
  535. }, false);
  536.  
  537. rainbowhoverbg[id].addEventListener("mouseleave", function stopbganimation() {
  538. clearInterval(hoverbginterval[id]);
  539. rainbowhoverbg[id].style.backgroundColor = originalbgcolors[id];
  540. }, false);
  541. }
  542. })()
  543.  
  544.  
  545. //Actually do the rainbow effect. Text only.
  546. function textcolorchange(rainbowarray, rainbowspeed) {
  547. let counterarray = [];
  548.  
  549. for(let i = 0; i < rainbowarray.length; i++) {
  550. counterarray[i] = 0 + i;
  551. }
  552. setInterval(() => {
  553.  
  554. for(let i = 0; i < rainbowarray.length; i++) {
  555. rainbowarray[i].style.color = 'hsl(' + (counterarray[i] + Math.floor(i * rainbowspeed)) + ', 100%, 70%';
  556. if(counterarray[i] == 360)
  557. {
  558. counterarray[i] = 0;
  559. }
  560. else {
  561. counterarray[i]++;
  562. }
  563. }
  564. }, 7);
  565. }
  566.  
  567.  
  568. //Prepare text for having its color changed by splicing it up into individual bits
  569. //and taking it out of the HTMLcollection.
  570.  
  571. function spanArrayContents(classes) {
  572.  
  573. let spans = [];
  574. let chars = [];
  575.  
  576. for(let i = 0; i < classes.length; i++) {
  577. chars.push(classes[i].innerText.split(""));
  578. classes[i].innerHTML = chars[i].map(function(char) {
  579. return '<span>' + char + "</span>";
  580. }).join('');
  581.  
  582. }
  583.  
  584. for(let i = 0; i < classes.length; i++) {
  585. let temphtmlcollection = [].slice.call(classes[i].children)
  586. for(let j = 0; j < temphtmlcollection.length; j++) {
  587. spans.push(temphtmlcollection[j]);
  588. }
  589. }
  590. return spans;
  591. }
  592.  
  593. //Same as above except for single elements instead of an array of elements.
  594. //Helps split them up and give them an ID before they're taken to the slaughterhouse.
  595.  
  596. function spanElementContents(element) {
  597. let spans = [];
  598. let chars = [];
  599.  
  600. chars.push(element.innerText.split(""));
  601. for(let i = 0; i < chars.length; i++){
  602. element.innerHTML = chars[i].map(function(char) {
  603. return '<span>' + char + "</span>";
  604. }).join('');
  605. }
  606.  
  607.  
  608.  
  609. let temphtmlcollection = [].slice.call(element.children)
  610. for(let j = 0; j < temphtmlcollection.length; j++) {
  611. spans.push(temphtmlcollection[j]);
  612. }
  613. return spans;
  614. }