From 94538c9eac86ed06e46207253dbf145a6fb5d7a3 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Fri, 25 Sep 2026 16:44:59 -0500 Subject: [PATCH] feat: add WebExtension manifest and application icons - Configure manifest for Firefox and cross-browser compatibility - Declare permissions for storage, activeTab, IMDb suggestions, and local FastAPI - Add gecko ID and data collection permissions for Firefox Add-ons linter compliance - Generate 16px, 48px, and 128px toolbar and management icons --- icons/icon-128.png | Bin 0 -> 539 bytes icons/icon-16.png | Bin 0 -> 127 bytes icons/icon-48.png | Bin 0 -> 210 bytes manifest.json | 50 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 icons/icon-128.png create mode 100644 icons/icon-16.png create mode 100644 icons/icon-48.png create mode 100644 manifest.json diff --git a/icons/icon-128.png b/icons/icon-128.png new file mode 100644 index 0000000000000000000000000000000000000000..f42db80b95d58fe263cb777871a3a60b898429bc GIT binary patch literal 539 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7xzrV0`51;uunK>+Ri*yoVeFTmplN znApF>PYupsZpmPLmsWm%y58}5(;Ez8^d_lzPEx70?)!cEWg$>M1~|rC5tGkQ!umn- zdpLVT;{>CWH}Zw`pDFqGBGfmU@@rtGnGS$ zQKDY9$%4Txz8mO}A_j?S+a?JHw|mV%-Z$nIMa9-i61)kwvin#9{;Gx5|6R;bQu&+9 z;l=S)3_NoCUzu)Ye_*)fAcIwX;Z~al&iI|{3VInBF7O|ia{L+t!veL2O#g>!@%m6d zmM|E6OwY#fFeL&H;u+3;{yBXzkHXhkjCc*2_NRKs=I3~opiAy3WUyec2xjyEMp@Pk YY2zCumcM2M9|tM(boFyt=akR{07Hw3E&u=k literal 0 HcmV?d00001 diff --git a/icons/icon-16.png b/icons/icon-16.png new file mode 100644 index 0000000000000000000000000000000000000000..46c9ea8cda68e8e93e697a8a2d35eaa79ea8bc53 GIT binary patch literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Zk{fVAr-fh6Be*dm@wg|zn)sg zfnYzuOS}x3hgvzM8vKpToH?W#ym?kL{+QF{U3Z1Sg!$c_O19%Scn+xf$1-P363@tE ZU?^@%ecN)Y<_^$A22WQ%mvv4FO#qs!C+YwI literal 0 HcmV?d00001 diff --git a/icons/icon-48.png b/icons/icon-48.png new file mode 100644 index 0000000000000000000000000000000000000000..ea20606ff2f442e9ca813b266599f9599275c89c GIT binary patch literal 210 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtnVv3=Ar-gY-n8axP!MQIjH>45 zdS9;ZcqBjCC8~LxXAn5ansWb5o`r{zik?p=e+*Ibs;#0bs~e! z(Y*rZ4w3ho3K*46eOEfuaN?6Khj4<+&#)s^46cl-N<0hhxF2SGl^ns=u`AH_HB*4? v8KBirz{2dca{Xh*i0dF%$;*I68*1iDPv=Qmt-q?S0VLq*>gTe~DWM4fw+BQo literal 0 HcmV?d00001 diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..1ac2dcc --- /dev/null +++ b/manifest.json @@ -0,0 +1,50 @@ +{ + "manifest_version": 2, + "name": "Magnetflix", + "version": "1.0.0", + "description": "Capture magnet links and pair with IMDb movies to send to FastAPI", + "icons": { + "16": "icons/icon-16.png", + "48": "icons/icon-48.png", + "128": "icons/icon-128.png" + }, + "browser_action": { + "default_popup": "popup.html", + "default_title": "Magnetflix", + "default_icon": { + "16": "icons/icon-16.png", + "48": "icons/icon-48.png" + } + }, + "permissions": [ + "storage", + "activeTab", + "tabs", + "", + "http://localhost:8000/*", + "https://v3.sg.media-imdb.com/*" + ], + "background": { + "scripts": ["background.js"] + }, + "content_scripts": [ + { + "matches": [""], + "js": ["content.js"], + "css": ["content.css"], + "run_at": "document_start" + } + ], + "web_accessible_resources": [ + "app.html", + "popup.html" + ], + "browser_specific_settings": { + "gecko": { + "id": "magnetflix@learning.extension", + "data_collection_permissions": { + "required": ["none"] + } + } + } +}