1 Download the resource override extension for the Chrome browser *** Download ***
2 Add a new rule: From https://hamsterkombat.io/js/telegram-web-app.js -> To https://serezhka.github.io/hamsterkombat/js/telegram-web-app.js
3 Launch Telegram Web, open the game Hamster Kombat
4 Open Chrome DevTools, go to the console, select the javascript context “clicker (hamsterkombat.io)”
5 Copy and paste the following script into the console and press Enter
(function () {
const evt1 = new PointerEvent('pointerdown', {clientX: 150, clientY: 300});
const evt2 = new PointerEvent('pointerup', {clientX: 150, clientY: 300});
setInterval((function fn() {
const energy = parseInt(document.getElementsByClassName("user-tap-energy")[0].getElementsByTagName("p")[0].textContent.split(" / ")[0]);
if (energy > 25) {
document.getElementsByClassName('user-tap-button')[0].dispatchEvent(evt1);
document.getElementsByClassName('user-tap-button')[0].dispatchEvent(evt2);
}
return fn;
})(), 50);
})();
1 Launch Telegram Web, open the game Hamster Kombat
2 Open Chrome DevTools DevTools.zip password 1234 , go to sources, find telegram-web-app.js and replace
Object.defineProperty(WebApp, 'platform', {
get: function () {
return webAppPlatform;
},
enumerable: true,
});
by using
Object.defineProperty(WebApp, 'platform', {
get: function () {
return 'ios';
}, enumerable: true,
});
Right click on the file, select “Override Contents”
Refresh the page, launch the game, go to the console, select the javascript context “clicker (hamsterkombat.io)”
Copy and paste the following script into the console and press Enter
(function () {
const evt1 = new PointerEvent('pointerdown', {clientX: 150, clientY: 300});
const evt2 = new PointerEvent('pointerup', {clientX: 150, clientY: 300});
setInterval((function fn() {
const energy = parseInt(document.getElementsByClassName("user-tap-energy")[0].getElementsByTagName("p")[0].textContent.split(" / ")[0]);
if (energy > 25) {
document.getElementsByClassName('user-tap-button')[0].dispatchEvent(evt1);
document.getElementsByClassName('user-tap-button')[0].dispatchEvent(evt2);
}
return fn;
})(), 50);
})();