add webhack

This commit is contained in:
Ilya Bezrukov 2024-07-31 05:00:44 +03:00
parent cbbd493a90
commit 3ffe28080a

8
webhack.js Normal file
View File

@ -0,0 +1,8 @@
window.hamster_hack = function () {
let frame = document.querySelector(".zA1w1IOq");
if (frame) {
let orig = frame.getAttribute("src");
frame.setAttribute("src", orig.replace("tgWebAppPlatform=weba", "tgWebAppPlatform=android"));
alert("hacked");
}
}