🏠 返回首頁 

Greasy Fork is available in English.

game.hg0355.com hack

Hack: feel free to touch anywhere, no fail!


Installer ce script?
Script suggéré par l'auteur

Vous pourriez également aimer Keyboard support for http://game.hg0355.com/game/xpg/.


Installer ce script
  1. /* eslint-disable no-multi-spaces */
  2. // ==UserScript==
  3. // @name game.hg0355.com hack
  4. // @name:zh-CN 你是我的小苹果 判定破解
  5. // @namespace game.hg0355.com-hack
  6. // @version 0.1
  7. // @description Hack: feel free to touch anywhere, no fail!
  8. // @description:zh-CN 随便点哪都能接住苹果,飙手速的时候到了!
  9. // @author PY-DNG
  10. // @license MIT
  11. // @match http*://game.hg0355.com/game/xpg/
  12. // @icon https://api.iowen.cn/favicon/get.php?url=game.hg0355.com
  13. // @grant none
  14. // @run-at document-end
  15. // ==/UserScript==
  16. (function main() {
  17. if (typeof (GameLayerBG) != 'object') {
  18. setTimeout(main, 100);
  19. return false;
  20. }
  21. GameLayerBG.ontouchstart && (GameLayerBG.ontouchstart = _gameTapEvent);
  22. GameLayerBG.onmousedown && (GameLayerBG.onmousedown = _gameTapEvent);
  23. function _gameTapEvent(e) {
  24. if (_gameOver) {
  25. return false;
  26. }
  27. var tar = e.target;
  28. var y = e.clientY || e.targetTouches[0].clientY,
  29. x = (e.clientX || e.targetTouches[0].clientX) - body.offsetLeft,
  30. p = _gameBBList[_gameBBListIndex];
  31. if (y > touchArea[0] || y < touchArea[1]) {
  32. return false;
  33. }
  34. if (!_gameStart) {
  35. gameStart();
  36. }
  37. createjs.Sound.play("tap");
  38. tar = document.getElementById(p.id);
  39. tar.className = tar.className.replace(_ttreg, ' tt$1');
  40. _gameBBListIndex++;
  41. _gameScore++;
  42. gameLayerMoveNextRow();
  43. return false;
  44. }
  45. })();