Pitts extension

Pitts extension

This extension allows the user to retrieve the PDFs of studies via the Pitts web app

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "Pitts extension",
  "manifest_version": 3,
  "version": "0.1.19",
  "description": "This extension allows the user to retrieve the PDFs of studies via the Pitts web app",
  "action": {
    "default_icon": "img/iconred.png",
    "default_popup": "popup/popup.html",
    "default_title": "Pitts extension"
  },
  "host_permissions": [
    "http://*/*",
    "https://*/*"
  ],
  "permissions": [
    "cookies",
    "storage",
    "alarms"
  ],
  "background": {
    "service_worker": "background.js",
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "https://*.pitts.ai/*",
        "http://localhost:4200/*",
        "https://pittswebuidotnet-test.azurewebsites.net/*"
      ],
      "run_at": "document_idle",
      "js": [
        "contentscripts/pitts_webapp.js"
      ]
    },
    {
      "matches": [
        "https://*/*"
      ],
      "run_at": "document_idle",
      "js": [
        "contentscripts/check_login.js"
      ]
    }
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "img/iconred.png"
      ],
      "matches": [
        "https://*.pitts.ai/*",
        "http://localhost:4200/*",
        "https://pittswebuidotnet-test.azurewebsites.net/*"
      ]
    }
  ],
  "homepage_url": "https://pitts.ai/",
  "options_ui": {
    "page": "preferences/preferences.html",
    "open_in_tab": true
  },
  "minimum_chrome_version": "92",
  "icons": {
    "128": "img/iconred.png"
  }
}