Powerline.io mod menu

Press the mod menu button, then once you exit the menu press ctrl/control to use the

目前为 2021-03-05 提交的版本。查看 最新版本

  // ==UserScript==
  // @name         Powerline.io mod menu
  // @namespace    http://tampermonkey.net/
  // @version      15.5
  // @description  Press the mod menu button, then once you exit the menu press ctrl/control to use the
  // @require      http://code.jquery.com/jquery-3.4.1.min.js
  // @author       shed_modz_
  // @match        powerline.io
  // @grant        none
  // ==/UserScript==
  
  //window.onload = function() {
    //document.getElementById("firstRightBox").innerHTML = "Press ctrl to see the stats change!";
  //};
  
  //Make mod menu button
  $("#firstRightBox").after('<center id="mm"><button id="menubtn">MOD MENU</button></center>');
  //make rgb 
  $('#mm').after('<style>body, p, h1, h2, h3, h4, h5, h6, div, td, tr, input, footer, center, font{animation: hi 7s infinite;}@keyframes hi{0%{color: red;}15%{color: orange;}30%{color: yellow;}45%{color:green;}60%{color: blue;}75%{color: purple;}100% {color: red;}}</style>');
  $('#menubtn').click(function() {
    var menu = window.open("", "", "width=250,height=400");
    //css
    menu.document.write('<style>.opt{color:red;}.btn{width:100%;height:50px;background-color:transparent;border: none;padding: 0;margin: 0;}.btn:hover{color: red;}body, p, button, h1, a, h2, h3, h4{animation: rgb 7s infinite;}@keyframes rgb{0%{color: red;}15%{color: orange;}30%{color: yellow;}45%{color: green;}60%{color: blue;}75%{color: purple;}100% {color: red;}</style>');
    
    //js
    //make script
    menu.document.write('<script>function score() {var amnt = window.prompt("Please type in the amount of score you want");localStorage.setItem("score", amnt);}function bestscore() {var amnt = window.prompt("Please type in what you want your best score to be"); localStorage.setItem("bestscore", amnt);}function kills() {var amnt = window.prompt("Set your kills to(not in game)");localStorage.setItem("modkill", amnt);}function bkills() {var amnt = window.prompt("Please give a number for your beat kills");localStorage.setItem("bks", amnt);}function n() {var name = window.prompt("What would you like your nick name to be?");localStorage.nick = name;}</script>');
    //menu content
    
    menu.document.write('<h1>Shed Menu</h1>');
    menu.document.write('<h2 class="opt">Menu options:</h2>');
    menu.document.write('<p class="opt"></p>');
    menu.document.write('<h3 class="opt">Score hacks:</h3><br>');
    menu.document.write('<button class="btn" onclick="score()">SCORE</button>');
    menu.document.write('<button class="btn" onclick="bestscore()">BEST-SCORE</button><br>');
    
    //killstats
    menu.document.write('<h3 class="opt">Kill hacks:</h3>');
    menu.document.write('<button class="btn" onclick="kills()">KILLS</button>');
    menu.document.write('<button class="btn" onclick="bkills()">BEST-KILLS</button>');
    
    //name hack
    menu.document.write('<p class="opt">Other Hacks</p>');
    menu.document.write('<button class="btn" onclick="n()">NAME HACK</button><br>');
    //remove other stuff
    //menu.document.write('<button  class="btn">Remove other stuff</button><br>');
  
    //other info
    menu.document.write("<p class=''>once you exit the mod menu use ctrl to activate the mods! Good luck!~Shed_modz_<br>");
    menu.document.write('<a href="https://discord.gg/KCrDax8M4N">Click here to join the discrod</a><br>');
  });
  
  function o() {
    window.open("", "", "width=233,height=400");
  }
  
  window.addEventListener('keydown', mod, false);
  function mod(i) {
    if(i.keyCode === 17) {
      var score = localStorage.getItem('score');
      var bscore = localStorage.getItem('bestscore');
      var kill = localStorage.getItem('modkill');
      var d = localStorage.getItem('bks');
      var rgb = localStorage.getItem('rgb');
      var c = localStorage.getItem('nick');
      document.getElementById('stat-length').innerHTML = score;
      document.getElementById('stat-blength').innerHTML = bscore;
      document.getElementById('stat-ks').innerHTML = kill;
      document.getElementById("stat-bks").innerHTML = d;
      document.getElementById("nick").value = c;
    }
  }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址