{
  "manifest_version": 3,

  "name": "Safari Books Download",
  "description": "Download the books into a mhtml file. You need to have the permission to read the book first.",
  "version": "1.2",

  "background": {
    "scripts": ["bluebird.js", "jszip.js"],
    "persistent": false
  },

  "browser_action": {
    "default_icon": "icon.png",
    "default_popup" : "popup.html",
    "default_title": "Save current book!"
  },

  "permissions": [
    "activeTab",
    "tabs",
    "pageCapture",
    "downloads"
  ]
}

{
  "manifest_version": 3,

  "name": "Safari Books Download",
  "description": "Download the books into a mhtml file. You need to have the permission to read the book first.",
  "version": "1.2",

  "background": {
    "scripts": ["bluebird.js", "jszip.js"],
    "persistent": false
  },

  "browser_action": {
    "default_icon": "icon.png",
    "default_popup" : "popup.html",
    "default_title": "Save current book!"
  },

  "permissions": [
    "activeTab",
    "tabs",
    "pageCapture",
    "downloads",
    "*://*.safaribooksonline.com/*"
  ]
}

Allow Cross-Origin XMLHttpRequest to Safari Book Online
Allow Cross-Origin XMLHttpRequest to Safari Book Online

See: https://developer.chrome.com/extensions/xhr
