Redirect AMP to HTML

Redirect AMP to HTML

Automatically redirects AMP pages to their canonical HTML equivalent.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 2,
  "version": "2.1.0",
  "name": "Redirect AMP to HTML",
  "description": "Automatically redirects AMP pages to their canonical HTML equivalent.",
  "short_name": "amp2html",
  "author": "Daniel Aleksandersen",
  "homepage_url": "https://www.daniel.priv.no/web-extensions/amp2html.html",
  "icons": {
    "48": "assets/icon_48.png",
    "256": "assets/icon_256.png"
  },
  "permissions": [
    "*://t.co/*",
    "https://bing-amp.com/c/*",
    "https://*.bing-amp.com/c/*",
    "https://cdn.ampproject.org/c/*",
    "https://*.cdn.ampproject.org/c/*",
    "https://www.bing.com/amp/*",
    "https://www.google.com/amp/*",
    "webRequest",
    "webRequestBlocking"
  ],
  "background": {
    "scripts": [
      "scripts/redirector.js"
    ]
  },
  "applications": {
    "gecko": {
      "id": "{569456be-2850-4f7e-b669-71e55140ee0a}",
      "strict_min_version": "60.0"
    }
  },
  "incognito": "spanning",
  "content_scripts": [
    {
      "js": [
        "scripts/amp2html.js"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "run_at": "document_end"
    }
  ]
}