Chrome Extension Development
Extension APIs
Different browsrs provide different global variables for acessing the extension apis (chrome,browser,etc) WIth wxt you can always use browser
Storage APIs
Two Types: - Web Storage API (can't be used in service worker) + localStorage (5mb) + synchronous + Store data in the browsers window object and can be used in the window object. - Browser Storage API (chrome.storage) + Store data in the browsers torage object and can be used in window object and service workers
Listed Vs Unlisted
Web extensions have two types of entrypoints: - listed: referenced in the manifest.json + popup,content scripts, background, etc - unlisted: not referenced in the manfiest.json: + Welcome page showed on extension install + Js files injected by content scripts
Actions
What happens when a user clicks the toolbar icon, usually called the action icon for your extension
Manifest
Wxt automatically builds the manifest file in your project based off of the files in your project. Just rename your icons to the default fiel names and wxt automatically incldues them
Navigator Api
the navigator api is the entry point for interacting with the clipboard api which allows you to read and write to the browsers clipboard. Reading and writing to the clipboard is an asynchronous operation. You use blobs as the data type, and it accepts MIME types