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
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fd1b4762cf | |||
| 7af4e47141 | |||
| 888690ac12 | |||
| 1921dc190e |
@@ -1,14 +1,14 @@
|
|||||||
# Brave Origin Windows Unlocker
|
# Brave Origin Windows Unlocker
|
||||||
|
|
||||||
A TypeScript utility for unlocking Brave Origin Beta features on Windows by modifying the local application state.
|
A TypeScript utility for unlocking Brave Origin features on Windows by modifying the local application state.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This tool modifies the Brave Origin Beta browser's local state configuration to unlock premium features. It works by updating the `Local State` JSON file used by Brave to store user preferences and license validation status.
|
This tool modifies the Brave Origin browser's local state configuration to unlock premium features. It works by updating the `Local State` JSON file used by Brave to store user preferences and license validation status.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- ✅ Unlocks Brave Origin Beta features
|
- ✅ Unlocks Brave Origin features
|
||||||
- ✅ Modifies purchase validation state
|
- ✅ Modifies purchase validation state
|
||||||
- ✅ Updates SKU credentials
|
- ✅ Updates SKU credentials
|
||||||
- ✅ Windows-compatible local data path handling
|
- ✅ Windows-compatible local data path handling
|
||||||
@@ -17,7 +17,7 @@ This tool modifies the Brave Origin Beta browser's local state configuration to
|
|||||||
|
|
||||||
- **Deno** - Modern JavaScript/TypeScript runtime
|
- **Deno** - Modern JavaScript/TypeScript runtime
|
||||||
- **Windows OS** - Designed for Windows file paths
|
- **Windows OS** - Designed for Windows file paths
|
||||||
- **Brave Origin Beta** - The browser being modified
|
- **Brave Origin** - The browser being modified
|
||||||
- **File Write Permissions** - Access to `%LOCALAPPDATA%` directory
|
- **File Write Permissions** - Access to `%LOCALAPPDATA%` directory
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|||||||
@@ -1,22 +1,39 @@
|
|||||||
const localAppData = Deno.env.get("LOCALAPPDATA");
|
const localAppData = Deno.env.get("LOCALAPPDATA");
|
||||||
|
|
||||||
const localStatePath =
|
const versions = ["Brave-Origin-Beta", "Brave-Origin-Nightly"];
|
||||||
`${localAppData}\\BraveSoftware\\Brave-Origin-Beta\\User Data\\Local State`;
|
let foundAny = false;
|
||||||
|
|
||||||
const localState = JSON.parse(await Deno.readTextFile(localStatePath));
|
for (const version of versions) {
|
||||||
|
const localStatePath = localAppData + "\\BraveSoftware\\" + version + "\\User Data\\Local State";
|
||||||
|
|
||||||
localState.brave.origin = { purchase_validated: true };
|
try {
|
||||||
|
const localState = JSON.parse(await Deno.readTextFile(localStatePath));
|
||||||
|
|
||||||
localState.skus = {
|
localState.brave.origin = { purchase_validated: true };
|
||||||
state: {
|
|
||||||
"67": JSON.stringify({
|
localState.skus = {
|
||||||
credentials: {
|
state: {
|
||||||
items: { "6": "7" },
|
"67": JSON.stringify({
|
||||||
|
credentials: {
|
||||||
|
items: { "6": "7" },
|
||||||
|
},
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
}),
|
};
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
await Deno.writeTextFile(localStatePath, JSON.stringify(localState));
|
await Deno.writeTextFile(localStatePath, JSON.stringify(localState));
|
||||||
|
|
||||||
console.log("Brave Origin Beta unlocked successfully!");
|
console.log(version.replace(/-/g, " ") + " unlocked successfully!");
|
||||||
|
foundAny = true;
|
||||||
|
} catch (error) {
|
||||||
|
if (error instanceof Deno.errors.NotFound) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!foundAny) {
|
||||||
|
console.log("Brave Origin not found.");
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user