Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raphaelbs/mv3-spike-iframe
https://github.com/raphaelbs/mv3-spike-iframe
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/raphaelbs/mv3-spike-iframe
- Owner: raphaelbs
- Created: 2022-07-05T13:08:42.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-07T14:18:08.000Z (about 2 years ago)
- Last Synced: 2023-02-28T10:17:10.036Z (over 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MV3 Iframe
This repository showcases different methods of (not) loading external code to a MV3 Chrome extension.
It creates an iframe and loads it into Gmail page with two-way binding on the search bar:
https://user-images.githubusercontent.com/11169832/177357273-0b25cc3e-bf1c-40e0-add6-9e8ed4a54eb0.mp4
Check [./gmail](./src/gmail.js) for more info.
## Get started
This project kickstarts a server on `http://localhost:8080` to serve as an external domain:
> npm start
You also need to run the build at least one time:
> npm run build
Then, you can "Load unpacked" the root folder as a Chrome Extension.
To test the MV2, rename the `manifest-v2.json` to `manifest.json`.