commit 87045fbe95759af31991bb036eaeba1c803d8e90 Author: ObjectAscended <93239187+ObjectAscended@users.noreply.github.com> Date: Thu Apr 16 21:38:47 2026 -0700 Add files via upload diff --git a/unlock.ts b/unlock.ts new file mode 100644 index 0000000..20b4f1e --- /dev/null +++ b/unlock.ts @@ -0,0 +1,22 @@ +const localAppData = Deno.env.get("LOCALAPPDATA"); + +const localStatePath = + `${localAppData}\\BraveSoftware\\Brave-Origin-Nightly\\User Data\\Local State`; + +const localState = JSON.parse(await Deno.readTextFile(localStatePath)); + +localState.brave.origin = { purchase_validated: true }; + +localState.skus = { + state: { + "67": JSON.stringify({ + credentials: { + items: { "6": "7" }, + }, + }), + }, +}; + +await Deno.writeTextFile(localStatePath, JSON.stringify(localState)); + +console.log("Brave Origin Nightly unlocked successfully!");