本文章介紹如何在大家熟悉的Chrome小恐龍遊戲裡開外掛
請在小恐龍遊戲 chrome://dino 開啟後,按 F12 貼上下列指令到 Console 執行。
自動外掛 #
function TrexRunnerBot(){function f(){Runner().onKeyDown(d);setTimeout(function(){Runner().onKeyUp(d)},500)}var b=function(a){return{keyCode:a,preventDefault:function(){}}},c=b(38),d=b(40),e=b(32);Runner().playing||(Runner().onKeyDown(e),setTimeout(function(){Runner().onKeyUp(e)},500));return{conquerTheGame:function(){if(Runner&&Runner().horizon.obstacles[0]){var a=Runner().horizon.obstacles[0];if((!a.typeConfig||"SNACK"!==a.typeConfig.type)&&50!==a.yPos&&a.xPos<=18*Runner().currentSpeed)if(50=== a.yPos)f();else{var b=Runner().horizon.obstacles[1];if(b&&b.xPos-a.xPos<=42*Runner().currentSpeed)Runner().onKeyDown(c),Runner().onKeyUp(c);else Runner().onKeyDown(c)}}}}}var bot=TrexRunnerBot(),botInterval=setInterval(bot.conquerTheGame,2);
自動跳躍、趴下,幫你自動玩 Dino 遊戲。
無敵 #
Runner.instance_.gameOver=function(){}
遊戲不會結束,Dino 變成無敵。
改速度 #
Runner.instance_.setSpeed(數字);
將 數字 改成你想要的速度,例如:
Runner.instance_.setSpeed(100);
無障礙物 #
Runner.instance_.playingIntro = true;
讓遊戲一直處於開場動畫狀態,不會出現障礙物。
刷分掛 #
Runner.instance_.setSpeed(數字);
同上,調高速度可快速刷分。