• 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

    Manifest is not valid JSON. Line 10

    Opera add-ons
    2
    2
    1125
    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.
    • tcip
      tcip last edited by

      Hey!

      I'm trying to create my own very simple Opera addon. It is based on the addon "Show Password" by Veadarkin. I made some modification to his script. And i'm trying to learn how to write a script. I have read about how to do it on dev.opera.com/extensions but i keep getting syntax error when i load it in. I must have missed something, i don't know what to do!

      The syntax error i get
      Manifest is not valid JSON. Line: 10, column: 2, Syntax error.

      What is on line 10

      "content_scripts": [
      

      manifest.json

      {
      	"name": "Password Revealer",
      	"version": "1.0",
      	"manifest_version": 2,
      	"description": "Revealing text behind password forms",
      	"developer": {
      	"name": "Tcip",
      	"url": "http://www.tcip.se"
      	}	
      	"content_scripts": [ 
      	{
      	"all_frames": true,
      	"matches": [ "http://*/*", "https://*/*"],
      	"js": ["passwordrevealer.js"]
      	}
      	]
      }
      
      Reply Quote 0
        1 Reply Last reply
      • sgunhouse
        sgunhouse Moderator Volunteer last edited by

        Not that I know JSON, but it does seem strange to have [ followed immediately by { (and then } ] at the end of the same element). I'd try removing one or the other.

        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-