Web Telegramda Hamster Kombat-ni ishga tushiring + Avtomatik bosishni ishlatishni o'rganing!

2024 May 28, 16:32 • Abdulhafiz Davlatov (@auzcoder)

Sozlashni boshlaymiz:

Tasvirni oldindan ko'rish

Kirish

Hamster Kombat - Telegramdagi mashhur bosuvchi o'yin. Muammo shundaki, u Telegram Web-da mavjud emas, faqat mobil ilovada mavjud. Keling, uni Chrome brauzerida ishga tushirishga va bosish jarayonini avtomatlashtirishga harakat qilaylik.


Resource Overridedan foydalanib sinab ko'ramiz:

1.Chrome brauzeri uchun Resource Override kengaytmasini yuklab oling

2.Resource Overrideni sozlaymiz: https://hamsterkombat.io/js/telegram-web-app.js dan -> https://auzcoder.github.io/hamsterkombat/js/telegram-web-app.js ga

https://hamsterkombat.io/js/telegram-web-app.jshttps://auzcoder.github.io/hamsterkombat/js/telegram-web-app.js

3.Web-Telegramni ishga tushiring, Hamster Kombat o'yinini oching.

4.Chrome DevTools-ni oching (F12), Console-ga o'ting, JavaScript kontekstini tanlang "clicker (hamsterkombat.io)".

5.Quyidagi skriptni nusxalab va konsolga qo'ying (Ctrl+C va Ctrl+V)

(function () {
    function getRandomCoordinate(min, max) {
        return Math.floor(Math.random() * (max - min + 1)) + min;
    }


    const energySelector = ".user-tap-energy";
    const buttonSelector = ".user-tap-button";
    const energyThreshold = 25;


    function tapButton() {
        const energyElement = document.querySelector(`${energySelector} p`);
        if (energyElement) {
            const energy = parseInt(energyElement.textContent.split(" / ")[0]);
            if (energy > energyThreshold) {
                const button = document.querySelector(buttonSelector);
                if (button) {
                    const x = getRandomCoordinate(150, 200);
                    const y = getRandomCoordinate(300, 500);
                    const evt1 = new PointerEvent('pointerdown', { clientX: x, clientY: y });
                    const evt2 = new PointerEvent('pointerup', { clientX: x, clientY: y });


                    button.dispatchEvent(evt1);
                    button.dispatchEvent(evt2);
                }
            }
        }
    }


    function clearConsole() {
        console.clear();
    }


    setInterval(tapButton, 50);
    setInterval(clearConsole, 180000); // 180000 milliseconds = 3 minutes
})();


6.Enter tugmasini bosing:

Qarabsizki tangalar yig'ila boshlaydi.


1085 marta ko'rildi
Abdulhafiz Davlatov - uzbekdevs photo

Abdulhafiz Davlatov

@auzcoder

Telegram Post

@uzbekdevs
“uzbekdevs.uz” saytida eʼlon qilingan materiallardan nusxa koʻchirish, tarqatish va boshqa shakllarda foydalanish faqat manba ko'rsatilishi orqali amalga oshirilishi mumkin.
© UzbekDevs