js-tampermonkey-public-scripts/Hamsterkombat on web Telegram.user.js
Unkas Amanjolov 42b29defae first commit
2024-10-07 10:25:50 +05:00

26 lines
812 B
JavaScript

// ==UserScript==
// @name Hamsterkombat on web Telegram
// @namespace http://tampermonkey.net/
// @version 2024-07-21
// @description try to take over the world!
// @author You
// @match https://hamsterkombatgame.io/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=telegram.org
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
const orig_indexof = Array.prototype.indexOf
Array.prototype.indexOf = function (...args) {
if (JSON.stringify(this) === JSON.stringify(["android", "android_x", "ios"])) {
setTimeout (() => {
Array.prototype.indexOf = orig_indexof
})
return 0
}
return orig_indexof.apply(this, args)
}
})();