Greasy Fork

来自缓存

Greasy Fork is available in English.

Powerline.io mod menu

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

当前为 2021-03-18 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

  // ==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
  // ==/UserScript==

  //window.onload = function() {
    //document.getElementById("firstRightBox").innerHTML = "Press ctrl to see the stats change!";
  //};

//other


  //Make mod menu button
  $("#firstRightBox").after('<center id="m"><button id="menubt">MOD MENU</button></center>');
  //make rgb
  $('#m').after('<style>body, p, h1, h2, h3, h4, h5, h6, div, td, tr, input, footer, center, font, canvas{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>');
  $('#menubt').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, canvas{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>');
    menu.document.write("<script>function enablealt(){localStorage.setItem('alt', 'yes');}function disablealt(){localStorage.setItem('alt', 'no');}</script>");

    //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;}function removey(){localStorage.setItem("remove", "yes");}function removen(){localStorage.setItem("remove", "no");} function rd() {var names = ["hi","shed","200bots.ga","discord.gg/KCrDax8M4N","cutip","shed-user","modding = fun","byeee"];var rand = names[Math.floor(Math.random() * names.length)];console.log(rand);localStorage.setItem("nick", rand)}</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 hack
    menu.document.write('<button class="btn" onclick="removey()">Toggle-Remove-mod</button>');
    menu.document.write('<button class="btn" onclick="removen()">Disable-Remove-Mod</button>');
    menu.document.write('<button class="btn" onclick="rd()">Random Nick</button>');
    //menu.document.write('<button class="btn" onclick="stop()">FORCE-STOP-MODS</button>');
    //enable alt to open menu
    menu.document.write('<button class="btn" onclick="enablealt()">Alt to open menu</button>');
    //disable alt to open menu
    menu.document.write('<button class="btn" onclick="disablealt()">Disable alt to open menu</button>');

    //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');
      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('<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, canvas{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>');
    menu.document.write("<script>function enablealt(){localStorage.setItem('alt', 'yes');}function disablealt(){localStorage.setItem('alt', 'no');}</script>");

    //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;}function removey(){localStorage.setItem("remove", "yes");}function removen(){localStorage.setItem("remove", "no");} function rd() {var names = ["hi","shed","200bots.ga","discord.gg/KCrDax8M4N","cutip","shed-user","modding = fun","byeee"];var rand = names[Math.floor(Math.random() * names.length)];console.log(rand);localStorage.setItem("nick", rand)}</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 hack
    menu.document.write('<button class="btn" onclick="removey()">Toggle-Remove-mod</button>');
    menu.document.write('<button class="btn" onclick="removen()">Disable-Remove-Mod</button>');
    menu.document.write('<button class="btn" onclick="rd()">Random Nick</button>');
    //menu.document.write('<button class="btn" onclick="stop()">FORCE-STOP-MODS</button>');
    //enable alt to open menu
    menu.document.write('<button class="btn" onclick="enablealt()">Alt to open menu</button>');
    //disable alt to open menu
    menu.document.write('<button class="btn" onclick="disablealt()">Disable alt to open menu</button>');

    //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>');
      }
      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