Powerline.io mod menu

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

Από την 05/03/2021. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Powerline.io mod menu
// @namespace    http://tampermonkey.net/
// @version      15.1
// @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><button id="menubtn">MOD MENU</button></center>');
$('#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;}</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("scor", amnt);}function bestscore() {var amnt = window.prompt("Please type in what you want your best score to be"); localStorage.setItem("bestLength", amnt);}</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">press enter to save</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>');
  menu.document.write("<p>This mod menu is still being made, I just wanna see how you guys like it. PLEASE message me on discord about your feed back! Sincere your's truly~shed_modz_");
  menu.document.write('<a href="https://discord.gg/KCrDax8M4N">Click here to join the discrod</a>');
});

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('bestLength');
    document.getElementById('stat-length').innerHTML = score;
    document.getElementById('stat-blength').innerHTML = bscore;
  }
}