From d6d7d05d97a9e159dacc1c6193200d47ce907a0d Mon Sep 17 00:00:00 2001 From: linus Date: Fri, 18 Sep 2026 21:02:35 +0200 Subject: [PATCH] Add extensions --- .DS_Store | Bin 0 -> 6148 bytes .gitignore | 2 ++ config.example.json | 10 ++++++++++ extensions/.DS_Store | Bin 0 -> 6148 bytes extensions/MALSync | 1 + src/main.js | 14 ++++---------- 6 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 .DS_Store create mode 100644 config.example.json create mode 100644 extensions/.DS_Store create mode 160000 extensions/MALSync diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..071472ba59e4f48bdfe503d25218f28c1acac68f GIT binary patch literal 6148 zcmeHK&2AGh5S~dxNm5F;X$wVw6p;&35o!;J3lf_Ugene=nhGUqp-r+*x^%N%b~pXu zlnZB$T#Nw<84!Cn0}Ku!rg~uiy3PHd;qeA-?az(C zbE9~9`Kx7NVj_8N@_Z_tnYu82amJd>&dtuxE-Wl$FE3unUcI($%{A)Hy>`gEzVm>4 zJS=)$wr$NsyZm6a$^CN3_FZ;RjoD#babJ=t`$xb!bDkYHZ5##UGk@G5JAD)~=5Mw` z*I8?|A{JK%^qR=l47ul(dE~|}_iI}+d(1kkev4B^F@m)~n4%{vj0lHfs|yJ%wp*Kref zu#V4Fe1Z;SDc3b>KyfgSTyU?wQfcx|FyKGZuft0v^}~P^e|7Kmx7(izr}f$4&e*=e z?s)n4E1~akzfC#&a~v45QO9RM)0dhWKg4(%1`GpdgaL6r1RzXO zvlPhK6`({-g%Y*UZZ?~+bZdv*O-eZJ zTX03<0eA&?0C)usyZ{%@F#d_!G;ra7P~?&9Z#?7itUt^48UV05=-dXd03b(2V0MA3 z--z&wG9?*p5r}e(5isxqZ`f~#Q@xGBFkl$?-xv^kcOIU=20VraoZ7#!*$?S=Lw8grdGKw##^@S^b>PIo*R7|twMv=>Ues%OL zblZMdV^y9c{HPhwEX0?~l#RaY1*})O_g$@NzT(_engx~dGUrQUO(Rx5cHc>T=P+O$ z3aTql#d)N=eL@ea2N1k!iWRPjiFavtYbBi-PM>93UfMMY87!c=!O+}!i zF;ys!4ywfOgYahs3L#y*B?Q_U9gV3%@{phkB~+oPpBSjZ$!_a@j>c4>3I~*#X&jvy z^$P`McCy>DJD{V`)P@1Wz$626s%eS)|G}T%|C2$cWf(9F%oGEd-E3@DX-fKTotm7u wYi%kARD_6rsX`e-mA;OpBCg_9DpJU23x&|pm?|U-iTM$bG?>aT@J|`|1?>ZqVE_OC literal 0 HcmV?d00001 diff --git a/extensions/MALSync b/extensions/MALSync new file mode 160000 index 0000000..23ee348 --- /dev/null +++ b/extensions/MALSync @@ -0,0 +1 @@ +Subproject commit 23ee348e8ed391f47f6bbb6ed72b546cefb5d032 diff --git a/src/main.js b/src/main.js index 4355274..011f61c 100644 --- a/src/main.js +++ b/src/main.js @@ -3,20 +3,14 @@ const path = require("path"); const fs = require("fs"); const os = require("os"); -// Path to the MAL-Sync extension we built earlier from the real MALSync -// source (github.com/MALSync/MALSync). Electron can load unpacked Chrome -// extensions directly via session.loadExtension, so the SAME extension -// 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. +// Path to the MAL-Sync extension +// source (github.com/MALSync/MALSync). Electron load unpacked Chrome +// extensions directly via session.loadExtension. const MALSYNC_EXTENSION_PATH = path.join( 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"); function loadHubConfig() {