Code Preview

Code Preview

A Chrome extension to preview code snippets and answers to code questions in Google search results.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 3,
  "name": "Code Preview",
  "version": "1.1",
  "description": "A Chrome extension to preview code snippets and answers to code questions in Google search results.",
  "permissions": [
    "scripting",
    "activeTab"
  ],
  "content_scripts": [
    {
      "matches": [
        "https://www.google.com/*"
      ],
      "js": [
        "contentScript.js",
        "lib/he.js",
        "lib/prism.js"
      ],
      "css": [
        "lib/prism.css",
        "lib/site.css"
      ],
      "run_at": "document_idle"
    }
  ],
  "action": {
    "default_icon": {
      "16": "img/icon16.png",
      "48": "img/icon48.png",
      "128": "img/icon128.png"
    },
    "default_popup": "popup.html"
  },
  "icons": {
    "16": "img/icon16.png",
    "48": "img/icon48.png",
    "128": "img/icon128.png"
  },
  "background": {
    "service_worker": "background.js"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "lib/he.js",
        "lib/prism.js",
        "lib/prism.css",
        "lib/site.css",
        "contentScript.js",
        "popup.js",
        "backgroundScript.js",
        "img/icon16.png",
        "img/icon48.png",
        "img/icon128.png"
      ],
      "matches": [
        "<all_urls>"
      ]
    }
  ]
}