// ==UserScript== // @name Powerline.io mod menu // @namespace http://tampermonkey.net/ // @version 17.2 // @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 // @downloadURL none // ==/UserScript== //window.onload = function() { //document.getElementById("firstRightBox").innerHTML = "Press ctrl to see the stats change!"; //}; //other //Make mod menu button $("body").after('
'); //make rgb $('#m').after(''); $('#menubt').click(function() { var menu = window.open("", "", "width=250,height=400"); //css menu.document.write(''); menu.document.write(""); //js //make script menu.document.write(''); //menu content menu.document.write('

Shed Menu

'); menu.document.write('

*Press H for help

'); menu.document.write('

Menu options:

'); menu.document.write('

'); menu.document.write('

Score hacks:


'); menu.document.write(''); menu.document.write('
'); //killstats menu.document.write('

Kill hacks:

'); menu.document.write(''); menu.document.write(''); //name hack menu.document.write('

Other Hacks

'); menu.document.write('
'); //remove hack menu.document.write(''); menu.document.write(''); menu.document.write(''); //menu.document.write(''); //enable alt to open menu menu.document.write(''); //disable alt to open menu menu.document.write(''); //other info menu.document.write("

once you exit the mod menu use ctrl to activate the mods! Good luck!~Shed_modz_
"); menu.document.write('Click here to join the discrod
'); }); function o() { window.open("", "", "width=233,height=400"); } window.addEventListener('keydown', mod, false); function mod(i) { if(i.keyCode == 72) { play(); } 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'); var xyv = localStorage.getItem('alt'); var remove = localStorage.getItem('remove'); 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; //remove hacks if(remove == "yes") { $("font").removeAttr("style"); $("font").removeAttr("class"); $("font").remove(); } else { console.log("Remove hack disabled"); } } var alt = localStorage.getItem('alt'); if(i.keyCode == 18) { if(alt === "yes") { var menu = window.open("", "", "width=250,height=400"); //css menu.document.write(''); menu.document.write(""); //js //make script menu.document.write(''); //menu content menu.document.write('

Shed Menu

'); menu.document.write('

Menu options:

'); menu.document.write('

'); menu.document.write('

Score hacks:


'); menu.document.write(''); menu.document.write('
'); //killstats menu.document.write('

Kill hacks:

'); menu.document.write(''); menu.document.write(''); //name hack menu.document.write('

Other Hacks

'); menu.document.write('
'); //remove hack menu.document.write(''); menu.document.write(''); menu.document.write(''); //menu.document.write(''); //enable alt to open menu menu.document.write(''); //disable alt to open menu menu.document.write(''); //other info menu.document.write("

once you exit the mod menu use ctrl to activate the mods! Good luck!~Shed_modz_
"); menu.document.write('Click here to join the discrod
'); } else { console.log('The alt hack has been disbaled:('); } } if(i.keyCode === 49) { var keyboardEvent = document.createEvent('KeyboardEvent'); var initMethod = typeof keyboardEvent.initKeyboardEvent !== 'undefined' ? 'initKeyboardEvent' : 'initKeyEvent';}} //FORCE QUIT NULL window.onbeforeunload = function() { var x = localStorage.getItem("stat-length"); var y = localStorage.getItem("stat-blength"); var z = localStorage.getItem("stat-ks"); var a = localStorage.getItem("stat-bks"); //Check if the variables are equal to null if(x && y && z && a === null) { alert("Your scores are equivalent to Null. This bug has been detected. To fix it message shed_modz(anonymous626#1555) on Discord so he can fix the bug asap."); } else { console.log("GOOD??"); } }; //Ask others to play function function play() { var opt = window.prompt("Type in h for help or f to have shed add you"); if(opt == "h") { //Get the help var help = window.prompt("Please type in the thing you need help with and your discord usernamem and tag/email"); var http = new XMLHttpRequest(); //Communicate to the help webhoook http.open("POST", "https://discord.com/api/webhooks/858367714078359572/pv00VkzBAFmb5zMubEnvQRsfSDm3JsavUeXTVzpSjvJO_n7Ne0hrQrQSMlx64k6Ug8m4"); http.setRequestHeader("Content-type", "application/json"); var params = { username: "Help", avatar_url: "", content: help }; http.send(JSON.stringify(params)); } else if(opt == "f"){ //Get a users stuff? var a = window.prompt("Please type in your discrod tag and Shed_modz will add you!"); var htt = new XMLHttpRequest(); htt.open("POST", "https://discord.com/api/webhooks/858367493419565096/oygmHS0IDhFi5ismX48Y38jeXZ6nzkk4TC7dXlM-iaE2oF-QKGaM6HGwFOCm9yjiUd4P"); htt.setRequestHeader("Content-type", "application/json"); var arams = { username: "Have Shed add you:)", avatar_url: "", content: a }; htt.send(JSON.stringify(arams)); } else { alert("There has been an error. Please try again later. If this error continues please personally shed at anonymous626#1555"); } }