Basic JSON Formatter

Basic JSON Formatter

Adds a page action to pretty-print JSON. Unlike similar extensions, this simply pretty-prints it. It doesn't add any kind of viewer, colors, or collapsing. If you want this to work as expected, disable devtools.jsonview.enabled in about:config.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "manifest_version": 2,
  "name": "Basic JSON Formatter",
  "version": "1.1.0",
  "description": "Adds a page action to pretty-print JSON",
  "applications": {
    "gecko": {
      "id": "{c7632bd5-48ce-467d-9433-58f33477553d}"
    }
  },
  "icons": {
    "48": "img/icon-48.png"
  },
  "content_scripts": [
    {
      "matches": [
        "*://*/*"
      ],
      "js": [
        "formatter.js"
      ]
    }
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "permissions": [
    "storage",
    "webRequest",
    "<all_urls>"
  ],
  "page_action": {
    "browser_style": true,
    "default_icon": {
      "48": "img/icon-48.png"
    },
    "default_title": "Format JSON"
  },
  "options_ui": {
    "page": "options_ui/options.html",
    "browser_style": true
  }
}