You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When browsing random sites, I sometimes notice errors/warnings from this extension in the DevTools console. I wouldn't have expected it to try and run on all sites.
Looking at the manifest, it appears as though it injects its content scripts into all sites:
0xdevalias
changed the title
[FEATURE] Only inject userscripts on specifically supported sites
[FEATURE] Only inject content_scripts on specifically supported sites
Feb 2, 2025
FYI This change is being reverted in v2.8.1. All URLs permission is required because the extension performs the automated search on servarr instances, and this has broken since the release of v2.8.0.
There's no way to know what the URL of anyone's servarr instance would be, so URL limiting is just not possible.
Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
This part specifically looks relevant, and makes me think it should be possible:
If you want to request hosts that you only discover at runtime, include "https://*/*" in your extension's optional_host_permissions field. This lets you specify any origin in "Permissions.origins" as long as it has a matching scheme.
Is your feature request related to a problem? Please describe.
When browsing random sites, I sometimes notice errors/warnings from this extension in the DevTools console. I wouldn't have expected it to try and run on all sites.
Looking at the manifest, it appears as though it injects its content scripts into all sites:
sonarr-radarr-lidarr-autosearch-browser-extension/src/manifest-chromium/manifest.json
Lines 34 to 48 in 8c86c67
Describe the solution you'd like
Ideally it would only inject into the specific sites that it supports monitoring, which I assume are these:
sonarr-radarr-lidarr-autosearch-browser-extension/src/manifest-chromium/manifest.json
Lines 55 to 74 in 8c86c67
And then ideally would also take into account which are enabled (or not) on this settings page:
The text was updated successfully, but these errors were encountered: