1
{
        "manifest_version" : 2,
        "name": "kittenbook", 
        "description" : "Replace photos on Facebook with kittens",
        "version": "0.0.1"
        "content_scripts": [
              {
                    "matches": ["*://www.facebook.com/*"],
                    "js": [kittenbook.js"]
              }
} 

Can someone explain to me what is wrong with this?

Failed to load extension from: ~\kittenbook.html Manifest is not valid JSON. Line: 6, column: 3, Syntax error.

1
  • Sorry, the question is completely unclear. What are you taking about? What kind of extension? What language? What markup? What software? Commented Apr 4, 2015 at 16:29

1 Answer 1

1

You have 3 errors here.

  1. at the end of "version":"0.0.1" << missing ,
  2. at the end of "js":[kittenbook.js"] << missing " and the start of the string
  3. also missing closing [] on the "content_scripts" :[

This is the correct JSON syntaxis.

{
    "manifest_version": 2,
    "name": "kittenbook",
    "description": "Replace photos on Facebook with kittens",
    "version": "0.0.1",
    "content_scripts": [
        {
            "matches": [
                "://www.facebook.com/"
            ],
            "js": [
                "kittenbook.js"
            ]
        }
    ]
}

For future testing use JSONLint

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.