mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30:02 -04:00
botguard bypass
This commit is contained in:
parent
db837b42c7
commit
09f4863e86
2 changed files with 4 additions and 2 deletions
|
@ -181,7 +181,9 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
const realwin = ctx.get() as Window;
|
const realwin = ctx.get() as Window;
|
||||||
|
|
||||||
if (SCRAMJETCLIENT in realwin.self) {
|
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 {
|
} else {
|
||||||
// hook the iframe
|
// hook the iframe
|
||||||
const newclient = new ScramjetClient(realwin.self);
|
const newclient = new ScramjetClient(realwin.self);
|
||||||
|
|
|
@ -123,7 +123,7 @@ export const htmlRules: {
|
||||||
"input",
|
"input",
|
||||||
"track",
|
"track",
|
||||||
],
|
],
|
||||||
href: ["a", "link", "base", "area"],
|
href: ["a", "link", "area"],
|
||||||
data: ["object"],
|
data: ["object"],
|
||||||
action: ["form"],
|
action: ["form"],
|
||||||
formaction: ["button", "input", "textarea", "submit"],
|
formaction: ["button", "input", "textarea", "submit"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue