Google Chrome Dino-Game Hack (chrome://dino/)

Speed Hack, Jump Hack, Points Hack, Invincibility Hack, & More.

当前为 2022-03-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Google Chrome Dino-Game Hack (chrome://dino/)
  3. // @namespace http://tampermonkey.net/
  4. // @version 3.1.3
  5. // @description Speed Hack, Jump Hack, Points Hack, Invincibility Hack, & More.
  6. // @author Cracko298
  7. // @icon https://www.omgchrome.com/wp-content/uploads/2015/06/chrome-trex-dinosaur.jpg
  8. // @include chrome://dino/
  9. // @match chrome://dino/
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. if (window.confirm("Want to Inject The Hack?"))
  14. {
  15.  
  16. var button = document.createElement("button");
  17. button.innerHTML = "Set Max Score";
  18.  
  19. var body = document.getElementsByTagName("label")[0];
  20. body.appendChild(button);
  21.  
  22. button.addEventListener ("click", function() {
  23. alert("Max Score Set.");
  24. Runner.instance_.distanceRan = 99999 / Runner.instance_.distanceMeter.config.COEFFICIENT;
  25.  
  26. });
  27. var button = document.createElement("button");
  28. button.innerHTML = "Invincibility";
  29.  
  30. var body = document.getElementsByTagName("label")[0];
  31. body.appendChild(button);
  32.  
  33. button.addEventListener ("click", function() {
  34. alert("Invincibility Set.");
  35. var original = Runner.prototype.gameOver
  36. Runner.prototype.gameOver = function(){}
  37.  
  38. });
  39. var button = document.createElement("button");
  40. button.innerHTML = "High Speed";
  41.  
  42. var body = document.getElementsByTagName("label")[0];
  43. body.appendChild(button);
  44.  
  45. button.addEventListener ("click", function() {
  46. alert("High Speed Set.");
  47. Runner.instance_.setSpeed(100)
  48.  
  49. });
  50. var button = document.createElement("button");
  51. button.innerHTML = "High Jump";
  52.  
  53. var body = document.getElementsByTagName("label")[0];
  54. body.appendChild(button);
  55.  
  56. button.addEventListener ("click", function() {
  57. alert("High Jump Set.");
  58. Runner.instance_.tRex.setJumpVelocity(50)
  59.  
  60. });
  61. var button = document.createElement("button");
  62. button.innerHTML = "Reset All Hacks";
  63.  
  64. var body = document.getElementsByTagName("label")[0];
  65. body.appendChild(button);
  66.  
  67. button.addEventListener ("click", function() {
  68. alert("Reset All Hacks");
  69. Runner.prototype.gameOver = original
  70. Runner.instance_.tRex.setJumpVelocity(10)
  71. Runner.instance_.setSpeed(7)
  72. Runner.instance_.distanceRan = 0 / Runner.instance_.distanceMeter.config.COEFFICIENT;
  73. Runner.prototype.gameOver = original
  74. });
  75.  
  76. var button = document.createElement("button");
  77. button.innerHTML = "Reset Invincibility";
  78.  
  79. var body = document.getElementsByTagName("label")[0];
  80. body.appendChild(button);
  81.  
  82. button.addEventListener ("click", function() {
  83. Runner.prototype.gameOver = original
  84. });
  85.  
  86. }
  87. else{
  88. alert('The Hack Inject Was Cancelled');
  89. Runner.prototype.gameOver = original
  90.  
  91. }