Float Hack Brofist Sandbox

for GDL: pg up for hover pg dn for see through

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

// ==UserScript==
// @name        Float Hack Brofist Sandbox
// @namespace   Float Hack Brofist Sandbox
// @include     http://brofist.io/modes/sandbox/c/index.html
// @version     1
// @description for GDL: pg up for hover pg dn for see through
// @grant       none
// ==/UserScript==
onkeydown = e => (e.keyCode == 33 && tweenObjects.map(x => x.p.body.world.gravity[1] = 9.7),
e.keyCode == 34 && tweenObjects.map(x => (
    x.ntAlpha = x.ntAlpha || x.refP.getAlpha(),
    x.refP.setAlpha(.2)
)), 1);
onkeyup = e => (e.keyCode == 33 && tweenObjects.map(x => x.p.body.world.gravity[1] = -9.7),
e.keyCode == 34 && tweenObjects.map(x => x.refP.setAlpha(x.ntAlpha)), 1);