Greasy Fork

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-01-05 提交的版本。查看 最新版本

    // ==UserScript==
    // @name         Powerline.io mods
    // @namespace    http://tampermonkey.net/
    // @version      14.0
    // @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.)
    // @author       shed_modz_
    // @match        powerline.io
    // @require      http://code.jquery.com/jquery-3.4.1.min.js
    // @grant        none
    // ==/UserScript==
    
    
    
    //press use numbers 1-5 for mods to use the mods
    //|===================================================================================|
    //|                        Updates (VERSION 15.0 being made)                         |
    //|                     -made mod                                                     |
    //|                     -updated mod                                                  |
    //|                     -patch update                                                 |
    //|                     -mega mod update includes, new hot keys(read desc),           |
    //|                     -patch hot KEYS                                               |
    //|                     -patch hot KEYS                                               |
    //|                     -new hot KEYS                                                 |
    //|                     -New mod features                                             |
    //|                     -Bug fix                                                      |
    //|                     -Adblock feature(may not be working)                          |
    //|                     -patched game, and name                                       |
    //|===================================================================================|
    
    /////////////////////////////////////////////////////////////////////
    ///////Hot keys are 1, 2, 4, 5, 6, ctrl, and h  ////////////////////
    ///////////////////////////////////////////////////////////////////
    
    //script
    //remove stuff
    
    
    
          
      alert("JOIN THE DISCORD https://discord.gg/KCrDax8M4N");
      console.log("https://discord.gg/KCrDax8M4N");
      
      //length mods (beta)
      
      //red canvas?
      document.getElementById('canvas').style.background = "red";
      
      class scoremods {
          constructor(score, llength) {
              this.score = 0;
              this.llength = 0;
          }
      }
      
      //js keycodes
      class keycodes {
          constructor(w, a, s, d, v) {
              this.w = 87;
              this.a = 65;
              this.s = 83;
              this.d = 68;
              this. v = 86;
          }
      }
      
      //change other
      class changeother {
          constructor(other) {
              this.other = 0;
          }
      }
      
      w = 87;
      a = 65;
      s = 83;
      d = 68;
      v = 86;
      
      $("#tips").after('<center><button id="blackSnake">Set name demogorgon</butt></center');
      
      $("#blackSnake").click(function() {
        localStorage.nick = "demogorgon";
      });
    
    window.addEventListener("keydown", mod, false);
    //score mods
    //kd mods
    
    
    doument.getElementById("ads").style.display = "none";
    function mod (i){
    
       if (i.keyCode == "49") {//key one
           var a = window.prompt("How much score do you want?");
           document.getElementById("stat-length").innerHTML = a;
       }
        if (i.keyCode == "50") {//key two
         var b = window.prompt("How many kills do you want?");
         document.getElementById("stat-ks").innerHTML = b;
       }
       if (i.keyCode == "51") {//keythree
         var c = window.prompt("What do you wnat to set your best score to?");
         document.getElementById("stat-blength").innerHTML = c;
       }
       if (i.keyCode == "52") {//key 4
        var d = window.prompt("What do you want you best kills to be?");
        document.getElementById("stat-bks").innerHTML = d;
        localStorage.bestLength = d;
       }
       if (i.keyCode == "53") {//key 5
         var txt = window.prompt("What wwould you like the chat box to say?");
         document.getElementById("firstRightBox").innerHTML = txt;
       }
       if (i.keyCode == "54") {//key 6
         var death = window.prompt("Who would you like to have eliminated you?");
         document.getElementById("stat-title").innerHTML = death;
       }
       if (i.keyCode == "72") {// key h
         var help = window.open("", "", "width=500", "height=1000");
         help.document.write("<h1 text-align='center'>Help</h1");
         help.document.write("<div id='help'></div>");
         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");
       }
       if (i.keyCode == "55") {//key 7
         var des =alert("Destroying powerline, refresh to restart game.");
         document.write("Powerline.io Server fail");
       }
       if (i.keyCode == "17") {
         var z = window.prompt("What do you want all of your stats to be?");
         document.getElementById("stat-length").innerHTML = z;
         document.getElementById("stat-blength").innerHTML = z;
         localStorage.bestKillStreak = z;
         localStorage.bestLength = z;
         document.getElementById("stat-ks").innerHTML = z;
         document.getElementById("stat-bks").innerHTML = z;
       }
       if (i.keyCode == 56) {//key 8
         var name = window.prompt("What would you like to change your nick name to?");
         localStorage.nick = name;
         alert("NEW DISCORD https://discord.gg/KCrDax8M4N");
         console.log("https://discord.gg/KCrDax8M4N");
       }
       if (i.keyCode == 57) {//key 9 //remove everything
          $(document).ready(function(){
          $("img").removeAttr("src");
     });
          $(document).ready(function() {
          $("font").removeAttr("style");
          $("font").removeAttr("class");
          $("font").remove();
     });
          $(document).ready(function(){
          
          $("footer").removeClass("leftBottomBox");
          $("div").removeClass("ads");
     });
            
       }
       if (i.keyCode == "48") {//0
         localStorage.nick = "demogorgon";
       }
       if (i.keyCode == "189") {//minus
         localStorage.nick = "200bots.ga";
       }
       if (i.keyCode == "187") {//equal
         localStorage.nick = "Tusy Soul";
       }
       if (i.keyCode == "192") {//idk
         localStorage.nick = "Made By shed_modz_ FOLLOW AND DOWNLOAD ON GREASYFORK.ORG";
       }
       if (i.keyCode == "81") {//q
         localStorage.nick = "SOMERANDOMTXTPLEASEUSETHISASRANDOM.TXTFOLLOWSHEDMODSONGREASYFORK.ORG. THERE WILL BE DAILY UPDATES AND MORE! SO DO IT YOU KNOW YOU WANT TO!!!";
       }
    }