默认使用当前页面的URL生成二维码,若当前页面有文本选中时,则生成选中区域文字的二维码
Premium users can view and search full source code, and see the source code differences
between two versions.
Upgrade to premium
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "Qrcode",
"version": "1.0",
"description": "默认使用当前页面的URL生成二维码,若当前页面有文本选中时,则生成选中区域文字的二维码",
"browser_action": {
"default_icon": "images/icon.png",
"default_title": "Qrcode",
"default_popup": "index.html"
},
"content_scripts": [
{
"all_frames": true,
"matches": [
"<all_urls>"
],
"js": [
"js/content.js"
],
"run_at": "document_end"
}
],
"manifest_version": 2,
"permissions": [
"tabs"
]
}