botguard bypass

This commit is contained in:
velzie 2024-09-02 22:00:35 -04:00
parent db837b42c7
commit 09f4863e86
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
2 changed files with 4 additions and 2 deletions

View file

@ -181,7 +181,9 @@ export default function (client: ScramjetClient, self: typeof window) {
const realwin = ctx.get() as Window;
if (SCRAMJETCLIENT in realwin.self) {
return realwin.self[SCRAMJETCLIENT].globalProxy.window;
if (realwin.location.href.includes("accounts.google.com")) return null; // don't question it
return realwin.self[SCRAMJETCLIENT].globalProxy;
} else {
// hook the iframe
const newclient = new ScramjetClient(realwin.self);