0

I want to create a popup and pin it similar to what the History/Favs button does. How would I do that? thanks

Jeff Saremi
  • 2,674
  • 3
  • 33
  • 57

1 Answers1

1

You could use browserAction.onClicked (https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/browserAction/onClicked) API to inject an IFRAME onto the webpage. Using z-index CSS property you could make it float on top of the actual page content. This will make the popup stay on the page as if it were pinned.

WarPro
  • 350
  • 3
  • 5