• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Addon "Content scripts" "world" manifest v3 key

    Opera add-ons
    2
    4
    277
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • janrie
      janrie last edited by

      Hello,

      I am trying to update/upload a new version of my addon "GooglePanicImages" to the addon store.

      [Src: https://github.com/jrie/googlePanicImage ]
      [store page: https://addons.opera.com/extensions/details/googlepanicimages/ ]

      But when I try to upload the packed "zip" version of the addon (like usually) a error is shown that the content_scripts: -> "world": "MAIN" key/value is not recognized and invalid.

      If I test and debug the addon locally in Opera it is working fine using this manifest key and all works as expected without errors.

      Can someone have a look?

      Thank you in advance,
      Jan

      Reply Quote 0
        1 Reply Last reply
      • W
        wzielinski Opera last edited by

        Hello,

        From now on addons accept the "world" entry in manifest.json

        Reply Quote 0
          1 Reply Last reply
        • janrie
          janrie last edited by janrie

          Hello @wzielinski ,

          thank you for the update, much appreciated.

          I noticed one issue:
          During update of the addon, it seems the "host permissions" for the Google Domains included in the addon are doing something strange.

          I received (a lot) of this messages, after upload of the addon. First page after the upload. Like this messages in the following screenshot, and those keep going/appearing:

          0a4a108e-5927-438c-8958-691056a6c53b-image.png

          This is after the first step after the upload of the addon package.

          The host permissions in the manifest are in this format:

          "host_permissions": [
                  "*://google.com/*",
                  "*://google.ad/*",
                  "*://google.ae/*",
                  "*://google.com.af/*",
                  "*://google.com.ag/*",
                  "*://google.al/*",
                  "*://google.am/*",
                  "*://google.co.ao/*",
                  "*://google.com.ar/*",
                  "*://google.as/*",
                  "*://google.at/*",
                  "*://google.com.au/*",
                  "*://google.az/*",
                  "*://google.ba/*"
          ]
          

          And continue like that.

          Is my manifest v3 pattern usage wrong? Or is this some kind of validation/testing error?

          Jan

          Reply Quote 0
            W 1 Reply Last reply
          • W
            wzielinski Opera @janrie last edited by

            Hello @janrie
            That's a validation error. Those warnings shouldn't have an impact on the uploading and submitting process. Your host patterns look ok.

            Reply Quote 0
              1 Reply Last reply
            • First post
              Last post

            Computer browsers

            • Opera for Windows
            • Opera for Mac
            • Opera for Linux
            • Opera beta version
            • Opera USB

            Mobile browsers

            • Opera for Android
            • Opera Mini
            • Opera Touch
            • Opera for basic phones

            • Add-ons
            • Opera account
            • Wallpapers
            • Opera Ads

            • Help & support
            • Opera blogs
            • Opera forums
            • Dev.Opera

            • Security
            • Privacy
            • Cookies Policy
            • EULA
            • Terms of Service

            • About Opera
            • Press info
            • Jobs
            • Investors
            • Become a partner
            • Contact us

            Follow Opera

            • Opera - Facebook
            • Opera - Twitter
            • Opera - YouTube
            • Opera - LinkedIn
            • Opera - Instagram

            © Opera Software 1995-