// ==UserScript== // @name Powerline.io mod menu // @namespace http://tampermonkey.net/ // @version 16.0 // @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 $("#firstRightBox").after('
Other Hacks
'); 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 === 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");
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('
Other Hacks
'); 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';
keyboardEvent[initMethod](
'keydown', // event type: keydown, keyup, keypress
true, // bubbles
true, // cancelable
window, // view: should be window
false, // ctrlKey
false, // altKey
false, // shiftKey
false, // metaKey
40, // keyCode: unsigned long - the virtual key code, else 0
0, // charCode: unsigned long - the Unicode character associated with the depressed key, else 0
);
document.dispatchEvent(keyboardEvent);
}
}
//hi
//I'm shed
//Ifyou can guess my first name I'll give you candy XDDDDD
//igonre this xDDD