Comments (6)
Re-opening. While #526 adds three MV3 examples, we still need more examples to demonstrate the differences between MV2 and MV3, notably in the background
key.
PR #526 includes the following parts that are specific to MV3, along with a demo of the declarativeNetRequest API:
action
(successor tobrowser_action
)host_permissions
and how to request them.optional_host_permissions
(not implemented in Firefox yet) andoptional_permissions
.web_accessible_resources
(new syntax in MV3).- Using the
action
andoptions_ui
APIs to have a place to run logic other than the background script (since thebackground
key is not cross-browser yet; Chrome and Safari supportsbackground.service_worker
, Firefox and Safari supportsbackground.scripts
, but there is no key that is supported by all). - Not explicitly mentioned in the README, but the examples shows how to easily polyfill
browser
in MV3 in Chrome (basicallyglobalThis.browser = chrome;
whenbrowser
isundefined
)
from webextensions-examples.
I was about to ask about this. Can't wait to learn more about mv3.
from webextensions-examples.
Still no updates about this? It's been quite some time since support was added for mv3 in firefox.
from webextensions-examples.
I wanted to start writing my first Firefox plugin today, but motivation dropped a fair bit when I discovered that there is no documentation for the freshest tech. I spent 3 hours trying to write a v3 manifest so far – no success.
from webextensions-examples.
Hi Guys,
i've the same issue. I opened an issue for this. No feedback right now.
https://github.com/mdn/webextensions-examples/issues/553
from webextensions-examples.
I prepared several MV3 examples with the intend to publish it here, at https://github.com/Rob--W/fosdem-2024-ext/tree/main/code-samples
While they have been referenced in a presentation/webinar, we haven't had the time to prepare MDN articles and publish these samples here.
from webextensions-examples.
Related Issues (20)
- Favourite Color bug manifest HOT 11
- Native messaging example doesn't pong after a while HOT 3
- browser is not defined in firefox HOT 3
- Can't get response in Ubuntu HOT 10
- Python Native Messaging host does not process 1MB input HOT 11
- Image is not loading by innerHTML in the content-script-register HOT 3
- Create an example of getting select text to a variable HOT 2
- Please add example for "Paste text from clipboard" HOT 5
- examples.json should include a way to list significant manifest keys
- Update eslint, fix linting errors and integrate in CI
- MV3 example for getting data from page/content script/activeTab context into action / popup HOT 3
- Broken root-cert-stats due to var -> let change HOT 6
- Firefox Load temporary addon not working HOT 12
- native-messaging app example: provide non-contrived example for each platform HOT 1
- Update root-cert-stats to use runtime.sendMessage HOT 3
- zip does not contain a valid manifest HOT 2
- Examples disabled when run via web-ext or from folder (applyCSS, borderify) HOT 9
- minor bug with native messaging example HOT 2
- native messaging example: port disconnects without an error HOT 9
- devtools-panels example broken with manifest v3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webextensions-examples.