yorkxin / copy-as-markdown

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

Manifest V3 Migration #100

Closed yorkxin closed 2 years ago

yorkxin commented 2 years ago

Summary

Google Chrome introduced Manifest V3.

Current V2 will become unsupported in Jan 2023

https://developer.chrome.com/docs/extensions/mv3/intro/

yorkxin commented 2 years ago

Work in progress on https://github.com/yorkxin/copy-as-markdown/tree/manifest-v3 branch

yorkxin commented 2 years ago

Firefox Manifest V2 requires menus.create to be called in the top scope of background.js, but MV3 requires it to be called inside a runtime.onInstalled() callback (aligning with Chrome MV3) -- background.js needs to support both use cases until Firefox MV3 is promoted.

yorkxin commented 2 years ago

Chrome: "Success" badge does not disappear. setTimeout not working?

yorkxin commented 2 years ago

Solved by #106