Browser extension not yet compatible with Firefox
Hey Aaron! Just FYI, I tried the browser extension in Firefox just now (92.0, on macOS 11.6), about:debugging#/runtime/this-firefox => Load Temporary Add-on..., and it didn't like the manifest:
There was an error during the temporary add-on installation. Error details: Extension is invalid Reading manifest: Error processing page_action.show_matches: Expected array instead of "https://www.instagram.com/p/*"
Thanks again for putting it together btw!
I tried changing "show_matches": "https://www.instagram.com/p/*" to "show_matches": ["https://www.instagram.com/p/*"], and it loaded! With a few warnings:
Reading manifest: Warning processing permissions: Error processing permissions.2: Value "*" must either: must either [must either [must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["captivePortal"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["normandyAddonStudy"], be one of ["geckoProfiler"], be one of ["urlbar"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["networkStatus"], be one of ["telemetry"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/], or match the pattern /^resource:\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$|^about:/]
Reading manifest: Warning processing page_action.default_tooltip: An unexpected property was found in the WebExtension manifest.
Also, not sure if this is Firefox specific, but it looks like storing the micropub endpoint and token isn't working due to the temporary extension id:
result is undefined options.js:16
restoreOptions moz-extension://eee39f3a-67d9-aa47-b517-4615b49a34ae/settings/options.js:16
apply self-hosted:2736
applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:626
wrapPromise resource://gre/modules/ExtensionCommon.jsm:855
withLastError resource://gre/modules/ExtensionCommon.jsm:774
wrapPromise resource://gre/modules/ExtensionCommon.jsm:843
(Async: promise callback)
wrapPromise resource://gre/modules/ExtensionCommon.jsm:825
callAsyncFunction resource://gre/modules/ExtensionCommon.jsm:1103
callAsyncFunction resource://gre/modules/ExtensionChild.jsm:725
callAndLog resource://gre/modules/ExtensionChild.jsm:696
callAsyncFunction resource://gre/modules/ExtensionChild.jsm:724
stub resource://gre/modules/Schemas.jsm:2810
restoreOptions moz-extension://eee39f3a-67d9-aa47-b517-4615b49a34ae/settings/options.js:15
(Async: EventListener.handleEvent)
<anonymous> moz-extension://eee39f3a-67d9-aa47-b517-4615b49a34ae/settings/options.js:21
Unchecked lastError value: Error: The storage API will not work with a temporary addon ID. Please add an explicit addon ID to your manifest. For more information see https://mzl.la/3lPk1aE. options.js:15
restoreOptions moz-extension://eee39f3a-67d9-aa47-b517-4615b49a34ae/settings/options.js:15
Let me know if this is helpful, or if you're not planning to support the extension, or anything else!