Context Search

Context Search

Search selected text using your preferred search engines or AI chatbot. Right-click or Alt-click on selected text to respectively launch the context menu or the icons grid. You can also perform searches using keywords in the url address bar.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "manifest_version": 2,
  "default_locale": "en",
  "name": "__MSG_extensionName__",
  "description": "__MSG_extensionDescription__",
  "version": "5.0.3",
  "author": "Olivier de Broqueville",
  "browser_specific_settings": {
    "gecko": {
      "id": "[email protected]",
      "strict_min_version": "79.0"
    }
  },
  "web_accessible_resources": [
    "/modal.html",
    "/history.html",
    "/bookmarks.html",
    "/images/*.png",
    "/scripts/modal.js",
    "/scripts/Sortable.min.js",
    "/sidebar/search_results.html",
    "/scripts/search_results.js"
  ],
  "content_security_policy": "script-src 'self'; object-src 'self'; img-src 'self' data:;",
  "page_action": {
    "show_matches": [
      "<all_urls>"
    ],
    "hide_matches": [
      "*://accounts-static.cdn.mozilla.net/*",
      "*://accounts.firefox.com/*",
      "*://addons.cdn.mozilla.net/*",
      "*://addons.mozilla.org/*",
      "*://api.accounts.firefox.com/*",
      "*://content.cdn.mozilla.net/*",
      "*://discovery.addons.mozilla.org/*",
      "*://install.mozilla.org/*",
      "*://oauth.accounts.firefox.com/*",
      "*://profile.accounts.firefox.com/*",
      "*://support.mozilla.org/*",
      "*://sync.services.mozilla.com/*"
    ],
    "browser_style": false,
    "default_icon": "/icons/context-search.svg",
    "default_title": "Add search engine to Context Search"
  },
  "sidebar_action": {
    "browser_style": false,
    "default_icon": "/icons/context-search.svg",
    "default_title": "Search results",
    "default_panel": "/sidebar/search_results.html",
    "open_at_install": false
  },
  "background": {
    "scripts": [
      "/scripts/background.js"
    ]
  },
  "permissions": [
    "<all_urls>",
    "activeTab",
    "clipboardWrite",
    "menus",
    "storage",
    "search",
    "tabs",
    "webRequest",
    "webRequestBlocking"
  ],
  "optional_permissions": [
    "notifications",
    "downloads",
    "bookmarks",
    "history"
  ],
  "omnibox": {
    "keyword": "cs"
  },
  "commands": {
    "launch-icons-grid": {
      "suggested_key": {
        "default": "Alt+Shift+G"
      },
      "description": "Launch the icons grid"
    }
  },
  "icons": {
    "16": "icons/icon_16.png",
    "20": "icons/icon_20.png",
    "24": "icons/icon_24.png",
    "32": "icons/icon_32.png",
    "48": "icons/icon_48.png",
    "64": "icons/icon_64.png",
    "128": "icons/icon_128.png",
    "256": "icons/icon_256.png",
    "512": "icons/icon_512.png"
  },
  "options_ui": {
    "page": "options.html",
    "open_in_tab": true,
    "browser_style": true
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "https://paypal.com/*"
      ],
      "js": [
        "/scripts/selection.js"
      ]
    }
  ]
}