Powerline.io mod menu

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

Versión del día 05/03/2021. Echa un vistazo a la versión más reciente.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

  // ==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;
    }
  }