AdguardTeam / PopupBlocker

Popup blocking userscript
GNU Lesser General Public License v3.0
337 stars 31 forks source link

Add popup blocker settings to the Chrome extension build #83

Closed ameshkov closed 4 years ago

ameshkov commented 6 years ago

This is a pre-requisite for the Chrome extension release.

Here's how I see it

  1. Use the options_ui to add a settings page;
  2. Add an options.js file that will make that page alive. It should rely on an OptionsController object, that will be injected externally. Therefore, you'll be able to reuse both options.html and options.js in the userscript.

In the userscript's case, the options page will be located on GH pages. The userscript will detect that it's loaded on a settings page and will inject its own OptionsController implementation.

ameshkov commented 6 years ago

Done