Add extensions

This commit is contained in:
2026-09-18 21:02:35 +02:00
parent 9dc1838fc2
commit d6d7d05d97
6 changed files with 17 additions and 10 deletions
Vendored
BIN
View File
Binary file not shown.
+2
View File
@@ -1,3 +1,5 @@
node_modules/ node_modules/
dist/ dist/
*.log *.log
config.json
+10
View File
@@ -0,0 +1,10 @@
{
"accessToken": "",
"clientId": "",
"userId": "",
"userName": "",
"port": "",
"commitDelayMs": "",
"autoComplete": "",
"clientSecret": ""
}
BIN
View File
Binary file not shown.
Submodule extensions/MALSync added at 23ee348e8e
+4 -10
View File
@@ -3,20 +3,14 @@ const path = require("path");
const fs = require("fs"); const fs = require("fs");
const os = require("os"); const os = require("os");
// Path to the MAL-Sync extension we built earlier from the real MALSync // Path to the MAL-Sync extension
// source (github.com/MALSync/MALSync). Electron can load unpacked Chrome // source (github.com/MALSync/MALSync). Electron load unpacked Chrome
// extensions directly via session.loadExtension, so the SAME extension // extensions directly via session.loadExtension.
// code that runs in Brave also runs here, inside our own app's browser
// tab - MAL-Sync itself is unmodified, just hosted in our own window
// instead of a general-purpose browser.
const MALSYNC_EXTENSION_PATH = path.join( const MALSYNC_EXTENSION_PATH = path.join(
require("os").homedir(), require("os").homedir(),
"projects/MALSync/dist/webextension" "../extensions/MALSync/dist/webextension"
); );
// Shares the same config file as our existing anilist-tracker hub server
// (~/.anilist-tracker/config.json), so this app reads the SAME AniList
// access token you already logged in with - no separate login needed.
const CONFIG_PATH = path.join(os.homedir(), ".anilist-tracker", "config.json"); const CONFIG_PATH = path.join(os.homedir(), ".anilist-tracker", "config.json");
function loadHubConfig() { function loadHubConfig() {