fix siteflags

This commit is contained in:
velzie 2024-10-13 15:05:55 -04:00
parent fd420cfda7
commit 8fc98e66c8
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820
5 changed files with 36 additions and 12 deletions

View file

@ -6,6 +6,11 @@ const scramjet = new ScramjetController({
shared: "/scram/scramjet.shared.js",
sync: "/scram/scramjet.sync.js",
},
siteFlags: {
"https://discord.com/.*": {
naiiveRewriter: true,
},
},
});
scramjet.init("./sw.js");
@ -183,7 +188,7 @@ function App() {
if (!url) return;
if (url === "about:blank") return;
this.url = $scramjet.codecs.plain.decode(
this.url = $scramjet.codec.decode(
url.substring((location.href + "/scramjet").length)
);
});