4 ms·
> Most useful extensions require access to all sites That may be true for "always-running" extensions like ad blockers, but there's another useful class of "on
by medmunds 10y ago
> Most useful extensions require access to all sites
That may be true for "always-running" extensions like ad blockers, but there's another useful class of "on-demand" extensions that don't need full access -- think Evernote or Pinboard clippers. They only need access to the one site you're looking at, and only when you invoke them.
Chrome added a tightly-scoped "activeTab" permission a few years back, for exactly this case. Before that, on-demand extensions did need all-sites access, and unfortunately a lot of extensions (and tutorials and example code) haven't been updated.
https://developer.chrome.com/extensions/activeTab https://developer.chrome.com/extensions/activeTab