You've already forked brave-origin-unlocker
mirror of
https://github.com/ObjectAscended/brave-origin-unlocker.git
synced 2026-06-21 12:42:34 +00:00
Add files via upload
This commit is contained in:
@@ -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!");
|
||||||
Reference in New Issue
Block a user