• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Extension support on all websites


New Coder
I'm making a extension right now that will pause every video playing on tab focus. But I'm struggling with the permissions object in the manifest.json. I tried everything to make the extension work on every page on the internet: "<all_urls>" and "http:///" and "https:///" and "tabs" Why does nothing work? (Except for "tabs", that didn't gave problems, but it don't read a VideoElement on a webpage) and what should I use now? Btw I use manifest version 3 and try to make it work in Opera GX.
I visited the developers page of Opera GX and it said "<all_urls>" would do the job but that gave me just a error when trying to unpack it.
  "manifest_version": 3,
  "name": "Mijn extensie",
  "description": "Dit is mijn extensie",
  "version": "1.0",
  "background": {
    "service_worker": "background.js"
  "host_permissions": [<all_urls>],
  "content_scripts": [
      "matches": ["*://*/*"],
      "js": ["background.js"]
Top Bottom