PubPeerFoundation/PubPeerBrowserExtensions

Add popup to enable/disable plugin on current site

Closed this issue · 0 comments

The extension is not always nicely rendered on the page. Sometimes, the user doesn't even want the extension to be enabled on a chosen site. It would be great if we could allow the user to enable or disable the extension on the current site.

Here is what it could look like:

webextension

Basically, that would necessitate the creation of a popup as it is described on the Mozilla WebExtension website: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Popups

It would also involve using the browser API to save the name of each disabled site.

Then, the background.js file should be edited read the list of disabled sites and stop rendering if site is disabled.