DINOcheat: hack/cheat dino google & chrome (bot,rapide,score,imortel...)

Utiliser de super fonctionnalités !

目前為 2024-08-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name            DINOcheat: hack/cheat dino google & chrome (bot,rapide,score,imortel...)
// @name:es         DINOcheat: hack/cheat dino google & chrome (bot, velocidad, puntaje, inmortalidad...)
// @name:en         DINOcheat: hack/cheat dino google & chrome (bot,speed,score,imortality...)
// @name:ja         DINOcheat: hack/cheat dino google & chrome (ボット、速度、スコア、不死身...)
// @name:it         DINOcheat: hack/cheat dino google & chrome (bot, velocità, punteggio, immortalità...)
// @namespace       http://tampermonkey.net/
// @version         2024-07-27-1.1.7
// @description     Utiliser de super fonctionnalités !
// @description:en  Experience super features!
// @description:es  ¡Experimenta características superiores!
// @description:ja  超機能を体験してください!
// @description:it  Usa funzionalità super!
// @author       Dℝ∃wX
// @match        *://dinorunner.com/*
// @match        *://elgoog.im/t-rex/v2/*
// @match        *://chromedino.com/*
// @match        *://dino-chrome.com/*
// @match        *://tuckercraig.com/dino/*
// @match        *://elgoog.im/t-rex/*
// @match        *://offline-dino-game.firebaseapp.com/
// @match        *://www.dinogame.net/*
// @match        *://nointernetgame.com/*
// @match        *://chromedino.io/
// @match        *://trex-runner.com/*
// @grant        none
// @license      Apache-2.0
// ==/UserScript==

(function() {
    'use strict';

if (window.location.hostname === "dinorunner.com") {

    const style = document.createElement('style');
    style.innerHTML = `
        .super-error-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 9998;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .super-error-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.7);
            width: 80%;
            max-width: 600px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid black;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            z-index: 9999;
            display: none;
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .super-error-popup.open {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        .super-error-popup .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            font-size: 24px;
            font-weight: bold;
            color: red;
            transition: color 0.3s ease;
        }
        .super-error-popup .close-btn:hover {
            color: #ff4c4c;
        }
        .super-error-popup .content {
            padding-top: 20px;
            font-size: 20px;
        }
        .super-error-popup .content a {
            color: #007bff;
            text-decoration: none;
        }
        .super-error-popup .content a:hover {
            text-decoration: underline;
        }
    `;
    document.head.appendChild(style);

    const overlay = document.createElement('div');
    overlay.className = 'super-error-popup-overlay';
    document.body.appendChild(overlay);

    const popup = document.createElement('div');
    popup.className = 'super-error-popup';
    popup.innerHTML = `
        <span class="close-btn">&times;</span>
        <div class="content">
            (Dℝ∃wX) Hello, sorry but this script does not work on this site. I advise you to use this site <a href="https://dino-chrome.com/" target="_blank">https://dino-chrome.com/</a>
        </div>
    `;
    document.body.appendChild(popup);

    function openErrorPopup() {
        overlay.style.display = 'block';
        popup.style.display = 'block';
        setTimeout(() => {
            overlay.style.opacity = '1';
            popup.classList.add('open');
        }, 10);
    }

    function closeErrorPopup() {
        popup.classList.remove('open');
        overlay.style.opacity = '0';
        setTimeout(() => {
            overlay.style.display = 'none';
            popup.style.display = 'none';
        }, 300);
    }

    popup.querySelector('.close-btn').addEventListener('click', closeErrorPopup);
    overlay.addEventListener('click', closeErrorPopup);

    openErrorPopup();

    return;
}
    let menuPopup = null;
    let windowElement = null;


    function injectBotCode() {
        const botCode = `
           function TrexRunnerBot() {
      const makeKeyArgs = (keyCode) => {
        const preventDefault = () => void 0;
        return {keyCode, preventDefault};
      };
      const upKeyArgs = makeKeyArgs(38);
      const downKeyArgs = makeKeyArgs(40);
      const startArgs = makeKeyArgs(32);
      if (!Runner().playing) {
        Runner().onKeyDown(startArgs);
        setTimeout(() => {
          Runner().onKeyUp(startArgs);
        }, 500);
      }
      function conquerTheGame() {
        if (!Runner || !Runner().horizon.obstacles[0]) return;
        const obstacle = Runner().horizon.obstacles[0];
        if (obstacle.typeConfig && obstacle.typeConfig.type === 'SNACK') return;
        if (needsToTackle(obstacle) && closeEnoughToTackle(obstacle)) tackle(obstacle);
      }
      function needsToTackle(obstacle) {
        return obstacle.yPos !== 50;
      }
      function closeEnoughToTackle(obstacle) {
        return obstacle.xPos <= Runner().currentSpeed * 18;
      }
      function tackle(obstacle) {
        if (isDuckable(obstacle)) {
          duck();
        } else {
          jumpOver(obstacle);
        }
      }
      function isDuckable(obstacle) {
        return obstacle.yPos === 50;
      }
      function duck() {
        Runner().onKeyDown(downKeyArgs);
        setTimeout(() => {
          Runner().onKeyUp(downKeyArgs);
        }, 500);
      }
      function jumpOver(obstacle) {
        if (isNextObstacleCloseTo(obstacle))
          jumpFast();
        else
          Runner().onKeyDown(upKeyArgs);
      }
      function isNextObstacleCloseTo(currentObstacle) {
        const nextObstacle = Runner().horizon.obstacles[1];

        return nextObstacle && nextObstacle.xPos - currentObstacle.xPos <= Runner().currentSpeed * 42;
      }
      function jumpFast() {
        Runner().onKeyDown(upKeyArgs);
        Runner().onKeyUp(upKeyArgs);
      }
      return {conquerTheGame: conquerTheGame};
    }
    let bot = TrexRunnerBot();
    let botInterval = setInterval(bot.conquerTheGame, 2);
        `;


        eval(botCode);
    }


    function injectDistanceCode() {
        const distanceCode = "Runner.instance_.distanceRan = Runner.instance_.distanceRan + 1000 / Runner.instance_.distanceMeter.config.COEFFICIENT";


        eval(distanceCode);
    }


    const popupStyles = document.createElement('style');
    popupStyles.innerHTML = `
        .modern-menu-popup {
            position: fixed;
            top: 50px;
            left: 50px;
            width: 300px;
            height: auto;
            max-height: 400px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            z-index: 9999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .modern-menu-popup.open {
            display: block;
            opacity: 1;
            transform: scale(1);
        }
        .modern-menu-popup .header {
            text-align: center;
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 18px;
            color: #333;
        }
        .modern-menu-popup .content {
            font-size: 16px;
            color: #555;
        }
        .modern-menu-popup .content span {
            display: block;
            margin-bottom: 8px;
        }
    `;
    document.head.appendChild(popupStyles);

    function toggleMenuPopup() {
        if (!menuPopup) {
            menuPopup = document.createElement('div');
            menuPopup.className = 'modern-menu-popup';
            menuPopup.innerHTML = `
                <div class="header">Menu (t)</div>
                <div class="content">
                    <span>Jump height: "h"</span>
                    <span>Speed adjustment: "v"</span>
                    <span>Immortality: "i"</span>
                    <span>Walk in the air: "a" + "↑"</span>
                    <span>Choose score: "k"</span>
                    <span>BotJumpAuto: "b"</span>
                    <span>Score + 1000: "s"</span>
                </div>
            `;

            document.body.appendChild(menuPopup);
            setTimeout(() => {
                menuPopup.classList.add('open');
            }, 10);
        } else {
            menuPopup.classList.remove('open');
            setTimeout(() => {
                document.body.removeChild(menuPopup);
                menuPopup = null;
            }, 300);
        }
    }


    document.addEventListener('keydown', function(event) {
        if (event.key === 't' || event.key === 'T') {
            toggleMenuPopup();
        }
    });


    document.addEventListener('keydown', function(event) {
        if (event.key === 'b') {
            injectBotCode();
        }
    });


    document.addEventListener('keydown', function(event) {
        if (event.key === 's') {
            injectDistanceCode();
        }
    });




    const style = document.createElement('style');
    style.innerHTML = `
        .super-itck-popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 9998;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .super-itck-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.7);
            width: 80%;
            max-width: 600px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid black;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            z-index: 9999;
            display: none;
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .super-itck-popup.open {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        .super-itck-popup .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            font-size: 24px;
            font-weight: bold;
            color: red;
            transition: color 0.3s ease;
        }
        .super-itck-popup .close-btn:hover {
            color: #ff4c4c;
        }
        .super-itck-popup .content {
            padding-top: 20px;
            font-size: 20px;
        }
    `;
    document.head.appendChild(style);


    const overlay = document.createElement('div');
    overlay.className = 'super-itck-popup-overlay';
    document.body.appendChild(overlay);

    const popup = document.createElement('div');
    popup.className = 'super-itck-popup';
    popup.innerHTML = `
        <span class="close-btn">&times;</span>
        <div class="content">
            (Dℝ∃wX) Hello, thank you for choosing my script,<br>Press "t" to view the menu. Have fun! ;)
        </div>
    `;
    document.body.appendChild(popup);


    function openPopup() {
        overlay.style.display = 'block';
        popup.style.display = 'block';
        setTimeout(() => {
            overlay.style.opacity = '1';
            popup.classList.add('open');
        }, 10);
    }


    function closePopup() {
        popup.classList.remove('open');
        overlay.style.opacity = '0';
        setTimeout(() => {
            overlay.style.display = 'none';
            popup.style.display = 'none';
        }, 300);
    }


    popup.querySelector('.close-btn').addEventListener('click', closePopup);
    overlay.addEventListener('click', closePopup);


    openPopup();



document.addEventListener('keydown', function(event) {
    if (event.key === 'h') {
                const userInput = prompt("Enter the new jump height:");
        const jumpHeight = parseFloat(userInput);
        if (!isNaN(jumpHeight)) {
                Runner.instance_.tRex.setJumpVelocity(jumpHeight);
            } else {
                alert("Invalid input. Please enter a number.");
            }
        }
    });


document.addEventListener('keydown', function(event) {
    if (event.key === 'v') {

        const userInput = prompt("Choose the speed:");

        const speed = parseFloat(userInput);
        if (!isNaN(speed)) {

            Runner.instance_.setSpeed(speed);
        } else {

            alert("Invalid speed. Please enter a number.");
        }
    }
});


    document.addEventListener('keydown', function(event) {
        if (event.key === 'i') {

            Runner.prototype.gameOver = function () {};
        }
    });

    let isWalkingInTheAir = false;


document.addEventListener('keydown', function(event) {
    if (event.key === 'a') {

        if (isWalkingInTheAir) {
            Runner.instance_.tRex.groundYPos = 93;
        } else {
            Runner.instance_.tRex.groundYPos = 0;
        }

        isWalkingInTheAir = !isWalkingInTheAir;
    }
});


document.addEventListener('keydown', function(event) {
    if (event.key === 'k') {

        const userInput = prompt("Enter the new score (integer, less than 999990):");

        const newScore = parseInt(userInput, 10);
        if (!isNaN(newScore) && Number.isInteger(newScore) && newScore < 999990) {

            Runner.instance_.distanceRan = newScore / Runner.instance_.distanceMeter.config.COEFFICIENT;
        } else {

            alert("Invalid input. Please enter an integer less than 999990.");
        }
    }
});


})();