Powerline.io mods

Change your stats(kills,and score) (use keys 1-9 for single mods. use ctrl to change all of your stats. and use key h for help.)

当前为 2021-03-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Powerline.io mods
  3. // @namespace http://tampermonkey.net/
  4. // @version 14.1
  5. // @description Change your stats(kills,and score) (use keys 1-9 for single mods. use ctrl to change all of your stats. and use key h for help.)
  6. // @author shed_modz_
  7. // @match powerline.io
  8. // @require http://code.jquery.com/jquery-3.4.1.min.js
  9. // @grant none
  10. // ==/UserScript==
  11. //press use numbers 1-5 for mods to use the mods
  12. //|===================================================================================|
  13. //| Updates (VERSION 15.0 being made) |
  14. //| -made mod |
  15. //| -updated mod |
  16. //| -patch update |
  17. //| -mega mod update includes, new hot keys(read desc), |
  18. //| -patch hot KEYS |
  19. //| -patch hot KEYS |
  20. //| -new hot KEYS |
  21. //| -New mod features |
  22. //| -Bug fix |
  23. //| -Adblock feature(may not be working) |
  24. //| -patched game, and name |
  25. //|===================================================================================|
  26. /////////////////////////////////////////////////////////////////////
  27. ///////Hot keys are 1, 2, 4, 5, 6, ctrl, and h ////////////////////
  28. ///////////////////////////////////////////////////////////////////
  29. //script
  30. //remove stuff
  31. //alert("JOIN THE DISCORD https://discord.gg/KCrDax8M4N");
  32. console.log("https://discord.gg/KCrDax8M4N");
  33. //length mods (beta)
  34. //red canvas?
  35. document.getElementById('canvas').style.background = "red";
  36. class scoremods {
  37. constructor(score, llength) {
  38. this.score = 0;
  39. this.llength = 0;
  40. }
  41. }
  42. //js keycodes
  43. class keycodes {
  44. constructor(w, a, s, d, v) {
  45. this.w = 87;
  46. this.a = 65;
  47. this.s = 83;
  48. this.d = 68;
  49. this. v = 86;
  50. }
  51. }
  52. //change other
  53. class changeother {
  54. constructor(other) {
  55. this.other = 0;
  56. }
  57. }
  58. w = 87;
  59. a = 65;
  60. s = 83;
  61. d = 68;
  62. v = 86;
  63. $("#tips").after('<center><button id="blackSnake">Set name demogorgon</butt></center');
  64. $("#blackSnake").click(function() {
  65. localStorage.nick = "demogorgon";
  66. });
  67. window.addEventListener("keydown", mod, false);
  68. //score mods
  69. //kd mods
  70. doument.getElementById("ads").style.display = "none";
  71. function mod (i){
  72. if (i.keyCode == "49") {//key one
  73. var a = window.prompt("How much score do you want?");
  74. document.getElementById("stat-length").innerHTML = a;
  75. }
  76. if (i.keyCode == "50") {//key two
  77. var b = window.prompt("How many kills do you want?");
  78. document.getElementById("stat-ks").innerHTML = b;
  79. }
  80. if (i.keyCode == "51") {//keythree
  81. var c = window.prompt("What do you wnat to set your best score to?");
  82. document.getElementById("stat-blength").innerHTML = c;
  83. }
  84. if (i.keyCode == "52") {//key 4
  85. var d = window.prompt("What do you want you best kills to be?");
  86. document.getElementById("stat-bks").innerHTML = d;
  87. localStorage.bestLength = d;
  88. }
  89. if (i.keyCode == "53") {//key 5
  90. var txt = window.prompt("What wwould you like the chat box to say?");
  91. document.getElementById("firstRightBox").innerHTML = txt;
  92. }
  93. if (i.keyCode == "54") {//key 6
  94. var death = window.prompt("Who would you like to have eliminated you?");
  95. document.getElementById("stat-title").innerHTML = death;
  96. }
  97. if (i.keyCode == "72") {// key h
  98. var help = window.open("", "", "width=500", "height=1000");
  99. help.document.write("<h1 text-align='center'>Help</h1");
  100. help.document.write("<div id='help'></div>");
  101. help.document.write("<p text-align='center'>Use keys 1-6 to change/edit stuff.(Works if your at the death menu that displays your stats)Press key h for help");
  102. }
  103. if (i.keyCode == "55") {//key 7
  104. var des =alert("Destroying powerline, refresh to restart game.");
  105. document.write("Powerline.io Server fail");
  106. }
  107. if (i.keyCode == "17") {
  108. var z = window.prompt("What do you want all of your stats to be?");
  109. document.getElementById("stat-length").innerHTML = z;
  110. document.getElementById("stat-blength").innerHTML = z;
  111. localStorage.bestKillStreak = z;
  112. localStorage.bestLength = z;
  113. document.getElementById("stat-ks").innerHTML = z;
  114. document.getElementById("stat-bks").innerHTML = z;
  115. }
  116. if (i.keyCode == 56) {//key 8
  117. var name = window.prompt("What would you like to change your nick name to?");
  118. localStorage.nick = name;
  119. alert("NEW DISCORD https://discord.gg/KCrDax8M4N");
  120. console.log("https://discord.gg/KCrDax8M4N");
  121. }
  122. if (i.keyCode == 57) {//key 9 //remove everything
  123. $(document).ready(function(){
  124. $("img").removeAttr("src");
  125. });
  126. $(document).ready(function() {
  127. $("font").removeAttr("style");
  128. $("font").removeAttr("class");
  129. $("font").remove();
  130. });
  131. $(document).ready(function(){
  132. $("footer").removeClass("leftBottomBox");
  133. $("div").removeClass("ads");
  134. });
  135. }
  136. if (i.keyCode == "48") {//0
  137. localStorage.nick = "demogorgon";
  138. }
  139. if (i.keyCode == "189") {//minus
  140. localStorage.nick = "200bots.ga";
  141. }
  142. if (i.keyCode == "187") {//equal
  143. localStorage.nick = "Tusy Soul";
  144. }
  145. if (i.keyCode == "192") {//idk
  146. localStorage.nick = "Made By shed_modz_ FOLLOW AND DOWNLOAD ON GREASYFORK.ORG";
  147. }
  148. if (i.keyCode == "81") {//q
  149. localStorage.nick = "SOMERANDOMTXTPLEASEUSETHISASRANDOM.TXTFOLLOWSHEDMODSONGREASYFORK.ORG. THERE WILL BE DAILY UPDATES AND MORE! SO DO IT YOU KNOW YOU WANT TO!!!";
  150. }
  151. }