Rewrite Content Disposition

Rewrite Content Disposition

This add-on changes the disposition of Content-Disposition response headers from attachment to inline. If an attachment is detected in the response header, it will be rewritten to 'inline' so no popup will appear.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "manifest_version": 2,
  "name": "Rewrite Content Disposition header",
  "version": "1.1resigned1",
  "description": "This add-on changes the disposition of Content-Disposition response headers from attachment to inline. If an attachment is detected in the response header, it will be rewritten to 'inline' so no popup will appear.",
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "permissions": [
    "webRequest",
    "webRequestBlocking",
    "tabs",
    "<all_urls>"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "{0f6282b1-e4d5-4cb0-aa11-1c2600dcd730}"
    }
  }
}