Float Hack Brofist Sandbox

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

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

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