mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
Fix hcaptcha, discord still has the issue with "Invalid remote authentication ticket", but this is feature parity with UV
This commit is contained in:
parent
a375e46dea
commit
7e89193170
4 changed files with 6 additions and 3 deletions
|
@ -8,9 +8,11 @@ export const windowProxy = new Proxy(window, {
|
||||||
return locationProxy;
|
return locationProxy;
|
||||||
} else if (
|
} else if (
|
||||||
propIsString &&
|
propIsString &&
|
||||||
["window", "top", "parent", "self", "globalThis"].includes(prop)
|
["window", "top", "self", "globalThis"].includes(prop)
|
||||||
) {
|
) {
|
||||||
return windowProxy;
|
return windowProxy;
|
||||||
|
} else if (propIsString && prop == "parent") {
|
||||||
|
return window.parent
|
||||||
} else if (propIsString && prop === "$scramjet") {
|
} else if (propIsString && prop === "$scramjet") {
|
||||||
return;
|
return;
|
||||||
} else if (propIsString && prop === "addEventListener") {
|
} else if (propIsString && prop === "addEventListener") {
|
||||||
|
|
|
@ -23,7 +23,7 @@ initSync(new WebAssembly.Module(
|
||||||
Uint8Array.from(atob(self.WASM), c => c.charCodeAt(0))
|
Uint8Array.from(atob(self.WASM), c => c.charCodeAt(0))
|
||||||
))
|
))
|
||||||
|
|
||||||
export function rewriteJs(js: string) {
|
export function rewriteJs(js: string, origin?: URL) {
|
||||||
const f = rewrite_js(js);
|
const f = rewrite_js(js);
|
||||||
|
|
||||||
return f
|
return f
|
||||||
|
|
|
@ -10,3 +10,4 @@ export function rewriteWorkers(js: string, origin?: URL) {
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ function App() {
|
||||||
}
|
}
|
||||||
iframe {
|
iframe {
|
||||||
border: 4px solid #313131;
|
border: 4px solid #313131;
|
||||||
background-color: #121212;
|
background-color: #fff;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
margin: 2em;
|
margin: 2em;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue