Best Brofist.io Hacks 2018 (Hide and Seek)

This new version of the script is STILL a test. Do not install this until I've made it perspicupous that it works. I don't have a 100% gurantee that it will work, but we'll all see.

当前为 2018-09-01 提交的版本,查看 最新版本

// ==UserScript==
// @name        Best Brofist.io Hacks 2018 (Hide and Seek)
// @namespace   Best Brofist.io Hacks 2018 (Hide and Seek)
// @include     http://brofist.io/modes/hideAndSeek/c/index.html
// @version     1.1
// @description This new version of the script is STILL a test. Do not install this until I've made it perspicupous that it works. I don't have a 100% gurantee that it will work, but we'll all see.
// @grant       none
// ==/UserScript==
document.onkeydown = function(event) {
 if (event.keyCode == 38) { 
  mode.plyer.gpdata.p.force=[0, 700];
 }
if (event.keyCode == 40) { 
  mode.plyer.gpdata.p.force=[0, -700];
 }
if (keyCode = 49){
mode.spd=3.5;
}
if (keyCode = 50){
mode.spd=3;
}
 if (event.keyCode == 51) {
mode.plyer.gpdata.p.invMass = 0
}
if (event.keyCode == 52) {
mode.plyer.gpdata.p.invMass = 1
}
if (event.keyCode == 53) {
mode.plyer.gpdata.p.angle = 3.14159
mode.plyer.gpdata.p.gravityScale = -1
}
if (event.keyCode == 54) {
mode.plyer.gpdata.p.angle = 0
mode.plyer.gpdata.p.gravityScale = 1
}
if (event.keyCode == 55){
mode.plyer.gpdata.p.gravityScale=0; 
mode.plyer.gpdata.p.collisionResponse=0;
}
if (event.keyCode == 56){
mode.plyer.gpdata.p.gravityScale=1; 
mode.plyer.gpdata.p.collisionResponse=1;
}
if (event.keyCode == 57){
mode.plyer.gpdata.p.position[1]=1.719006061553955
}
if (event.keyCode == 48){
mode.plyer.gpdata.p.position[0]=-122.38400268554688
}
};