xpath selector

xpath selector

根据页面元素获取css路径,xpath路径的插件

Merlin
Additional files are visible only to premium users

manifest.json


{
  "manifest_version": 3,
  "name": "xpath selector",
  "description": "根据页面元素获取css路径,xpath路径的插件",
  "version": "1.0.8",
  "action": {
    "default_title": "元素搜索",
    "default_icon": {
      "16": "assets/icon16.png",
      "48": "assets/icon48.png",
      "128": "assets/icon128.png"
    }
  },
  "host_permissions": [
    "*://*/*",
    "file:///*"
  ],
  "permissions": [
    "activeTab",
    "scripting",
    "declarativeContent"
  ],
  "background": {
    "service_worker": "background.js"
  },
  "icons": {
    "16": "assets/icon16.png",
    "48": "assets/icon48.png",
    "128": "assets/icon128.png"
  },
  "content_scripts": [
    {
      "matches": [
        "https://*/*",
        "http://*/*",
        "*://*/*",
        "file:///*"
      ],
      "css": [
        "css/content.css"
      ],
      "run_at": "document_start",
      "js": [
        "js/jquery.js",
        "js/content.js"
      ]
    }
  ],
  "web_accessible_resources": [
    {
      "resources": [
        "iframe.html"
      ],
      "matches": [
        "*://*/*",
        "file:///*"
      ]
    },
    {
      "resources": [
        "js/*"
      ],
      "matches": [
        "*://*/*",
        "file:///*"
      ]
    },
    {
      "resources": [
        "css/*"
      ],
      "matches": [
        "*://*/*",
        "file:///*"
      ]
    },
    {
      "resources": [
        "assets/*"
      ],
      "matches": [
        "*://*/*",
        "file:///*"
      ]
    }
  ],
  "update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
}