镜像自地址
https://github.com/lhly/search-syntax-pro.git
已同步 2026-10-20 14:27:47 +08:00
实现搜索引擎页面的悬浮按钮功能,支持拖动调整位置和点击打开高级搜索面板。新增浮动面板组件,包含完整的搜索表单和交互逻辑。优化URL解码和搜索引擎选择器配置,提升用户体验。 - 新增浮动面板组件及样式 - 实现悬浮按钮的拖动和点击交互 - 添加URL安全解码工具函数 - 配置搜索引擎选择器和注入位置 - 优化多语言支持和响应式布局 - 添加性能测试和单元测试
91 行
1.8 KiB
JSON
91 行
1.8 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "__MSG_app_name__",
|
|
"version": "1.8.0",
|
|
"description": "__MSG_app_description__",
|
|
"default_locale": "zh_CN",
|
|
|
|
"permissions": [
|
|
"storage",
|
|
"activeTab",
|
|
"contextMenus"
|
|
],
|
|
|
|
"host_permissions": [
|
|
"https://*.baidu.com/*",
|
|
"https://*.bing.com/*",
|
|
"https://cn.bing.com/*"
|
|
],
|
|
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
|
|
"action": {
|
|
"default_popup": "src/popup/index.html",
|
|
"default_title": "__MSG_app_name__",
|
|
"default_icon": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
},
|
|
|
|
"options_page": "src/options/index.html",
|
|
|
|
"commands": {
|
|
"_execute_action": {
|
|
"suggested_key": {
|
|
"default": "Ctrl+Shift+F",
|
|
"mac": "Command+Shift+F"
|
|
},
|
|
"description": "打开搜索面板"
|
|
}
|
|
},
|
|
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"https://*.baidu.com/*",
|
|
"https://*.bing.com/*",
|
|
"https://cn.bing.com/*"
|
|
],
|
|
"js": ["content.js"],
|
|
"run_at": "document_end"
|
|
}
|
|
],
|
|
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
},
|
|
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": [
|
|
"icons/*",
|
|
"src/floating-panel/index.html",
|
|
"floating-panel.js",
|
|
"floating-panel.css",
|
|
"useTheme.js",
|
|
"useTheme.css",
|
|
"QueryPreview.js",
|
|
"search-engine-selectors.js"
|
|
],
|
|
"matches": [
|
|
"https://*.baidu.com/*",
|
|
"https://*.bing.com/*",
|
|
"https://cn.bing.com/*"
|
|
]
|
|
}
|
|
],
|
|
|
|
"content_security_policy": {
|
|
"extension_pages": "script-src 'self'; object-src 'self'"
|
|
},
|
|
|
|
"minimum_chrome_version": "91"
|
|
} |