From ba5de278ee5efaf0a2465b72c71f2ce759e08908 Mon Sep 17 00:00:00 2001 From: ObjectAscended <93239187+ObjectAscended@users.noreply.github.com> Date: Thu, 4 Jun 2026 21:09:49 -0700 Subject: [PATCH] Add Brave-Origin to versions and reformat README --- README.md | 30 ++++++++++++++++++++++-------- unlock.ts | 5 +++-- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c793069..8ae22d2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ # Brave Origin Windows Unlocker -A TypeScript utility for unlocking Brave Origin 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 -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. +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 @@ -27,18 +30,29 @@ This tool modifies the Brave Origin browser's local state configuration to unloc ```bash git clone https://github.com/ObjectAscended/brave-origin-windows-unlocker.git cd brave-origin-windows-unlocker + ``` ## Pre-Bundled Deno Binaries 🎉 -In our latest releases, we offer **pre-bundled Deno binaries** that make running the Windows unlocker easier than ever! 🚀 You can download them from our [latest release page](https://github.com/ObjectAscended/brave-origin-windows-unlocker/releases/latest). These binaries ensure a smooth setup and save you time, so you can focus on enjoying your experience without unnecessary hassle! 🕒 +In our latest releases, we offer **pre-bundled Deno binaries** that make running +the Windows unlocker easier than ever! 🚀 You can download them from our +[latest release page](https://github.com/ObjectAscended/brave-origin-windows-unlocker/releases/latest). +These binaries ensure a smooth setup and save you time, so you can focus on +enjoying your experience without unnecessary hassle! 🕒 ## Why Run the Windows Unlocker Instead of WSL? 🤔 -Running the Windows unlocker natively is typically a better choice than running a browser inside WSL. Here's why: +Running the Windows unlocker natively is typically a better choice than running +a browser inside WSL. Here's why: -1. **Performance**: The native Windows experience generally offers better performance than emulated environments like WSL. ⚡ -2. **Simplicity**: You avoid complex setups and configurations, making it more straightforward for users of all levels. 🛠️ -3. **Compatibility**: Some features and functionalities might only work seamlessly in a Windows environment, ensuring you get the most out of your tools. 🔗 -4. **User Experience**: Enjoy a more intuitive interface and fewer problems managing dependencies. 😊 +1. **Performance**: The native Windows experience generally offers better + performance than emulated environments like WSL. ⚡ +2. **Simplicity**: You avoid complex setups and configurations, making it more + straightforward for users of all levels. 🛠️ +3. **Compatibility**: Some features and functionalities might only work + seamlessly in a Windows environment, ensuring you get the most out of your + tools. 🔗 +4. **User Experience**: Enjoy a more intuitive interface and fewer problems + managing dependencies. 😊 Enjoy using our tool! 🎈 diff --git a/unlock.ts b/unlock.ts index b875fec..494e2cd 100644 --- a/unlock.ts +++ b/unlock.ts @@ -1,10 +1,11 @@ const localAppData = Deno.env.get("LOCALAPPDATA"); -const versions = ["Brave-Origin-Beta", "Brave-Origin-Nightly"]; +const versions = ["Brave-Origin", "Brave-Origin-Beta", "Brave-Origin-Nightly"]; let foundAny = false; for (const version of versions) { - const localStatePath = localAppData + "\\BraveSoftware\\" + version + "\\User Data\\Local State"; + const localStatePath = + `${localAppData}\\BraveSoftware\\${version}\\User Data\\Local State`; try { const localState = JSON.parse(await Deno.readTextFile(localStatePath));