yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
542 stars 83 forks source link

Attempt to solve the issue of context menu with MV3 #122

Closed yorkxin closed 1 year ago

yorkxin commented 1 year ago

Firefox 112 now supports ESM background script in MV3. This means that

  1. The problem with contextMenu.create() not being called in chrome.runtime.onInstalled is gone.
  2. No more background.html hack

See:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/