mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-04-22 11:39:42 +08:00
完善Double S快捷搜索;更新Readme
This commit is contained in:
parent
0d29282d38
commit
83d05b22d4
42
README.md
42
README.md
@ -1,34 +1,38 @@
|
|||||||
# BitDance浏览器插件
|
# 学生助手 Chrome浏览器插件
|
||||||
|
|
||||||
> bitdance-chrome-extension
|
## 简介 Overview
|
||||||
|
|
||||||
## Overview
|
本项目名为学生助手,是一个Chrome浏览器扩展插件。主要针对学生群体,提高资料检索以及日常使用的便捷性、高效性及可定制性。
|
||||||
|
|
||||||
xxx
|
## 快速上手 Quick Start
|
||||||
|
|
||||||
## Quick Start
|
第一步 下载扩展包并解压:[码云下载](https://gitee.com/bitdance-team/chrome-extension/repository/archive/master.zip) [GitHub下载](https://codeload.github.com/bitdance-team/chrome-extension/zip/refs/heads/master)
|
||||||
|
|
||||||
xxx
|
第二步 打开Chrome浏览器并访问`chrome://extensions/`
|
||||||
|
|
||||||
## Using
|
> 请确保你已经安装了谷歌浏览器。如果没有安装,[点击此处下载](https://www.google.com/intl/zh-CN/chrome/)
|
||||||
|
|
||||||
xxx
|
第三步 打开开发者模式
|
||||||
|
|
||||||
## Screenshots
|
第四步 点击“加载已解压的扩展程序”
|
||||||
|
|
||||||
xxx
|
第五步 选择刚刚下载的压缩包的 `packages/shell-chrome` 目录即可完成安装
|
||||||
|
|
||||||
## Authors
|
|
||||||
|
|
||||||
- [xiaomo](https://github.com/coder-xiaomo)
|
|
||||||
- [xxx](xxx)
|
|
||||||
- [xxx](xxx)
|
|
||||||
- [xxx](xxx)
|
|
||||||
- [xxx](xxx)
|
|
||||||
- [xxx](xxx)
|
|
||||||
- [xxx](xxx)
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 作者 Authors
|
||||||
|
|
||||||
|
[张博凯](https://github.com/coder-xiaomo)、[xxx](xxx)、[xxx](xxx)、[xxx](xxx)、[xxx](xxx)、[xxx](xxx)、[xxx](xxx)
|
||||||
|
|
||||||
|
## 许可证 License
|
||||||
|
|
||||||
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for the full license text.
|
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for the full license text.
|
||||||
|
|
||||||
|
## 链接 link
|
||||||
|
|
||||||
|
Chrome扩展页: `chrome://extensions/`
|
||||||
|
@ -406,17 +406,19 @@ var omniboxSearchModes = [
|
|||||||
// 如果前面已经有了 【[xx] 】,则先去掉
|
// 如果前面已经有了 【[xx] 】,则先去掉
|
||||||
text = text.replace(/^\[.*?\]\s*/, "");
|
text = text.replace(/^\[.*?\]\s*/, "");
|
||||||
suggest([
|
suggest([
|
||||||
{ content: "fanyi: [百度] " + text, description: "使用 <url>[百度翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [百度] " + text, description: "<url>翻译</url> | 使用 <url>[百度翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [有道翻译] " + text, description: "使用 <url>[有道翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [有道翻译] " + text, description: "<url>翻译</url> | 使用 <url>[有道翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [必应] " + text, description: "使用 <url>[必应词典]</url> 查词 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [腾讯] " + text, description: "<url>翻译</url> | 使用 <url>[腾讯翻译君]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [腾讯] " + text, description: "使用 <url>[腾讯翻译君]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [DeepL] " + text, description: "<url>翻译</url> | 使用 <url>[DeepL翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [DeepL] " + text, description: "使用 <url>[DeepL翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
// 【需要注入自动翻译】 { content: "fanyi: [海词翻译] " + text, description: "<url>翻译</url> | 使用 <url>[海词翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [金山词霸] " + text, description: "使用 <url>[金山词霸]</url> 查词 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [必应] " + text, description: "<url>查词</url> | 使用 <url>[必应词典]</url> 查词 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [有道] " + text, description: "使用 <url>[有道]</url> 查词 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [有道] " + text, description: "<url>查词</url> | 使用 <url>[有道]</url> 查词 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [360] " + text, description: "使用 <url>[360翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [海词] " + text, description: "<url>查词</url> | 使用 <url>[海词]</url> 查词 <match>" + text + "</match>", deletable: false },
|
||||||
{ content: "fanyi: [翻译狗] " + text, description: "使用 <url>[翻译狗]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
{ content: "fanyi: [金山词霸] " + text, description: "<url>查词</url> | 使用 <url>[金山词霸]</url> 查词 <match>" + text + "</match>", deletable: false },
|
||||||
// 以下内容超出9个不被显示
|
// 以下内容超出9个不被显示
|
||||||
{ content: "fanyi: [Google] " + text, description: "使用 <url>[Google翻译]</url> 翻译 <match>" + text + "</match> (Google翻译在中国大陆无法使用)", deletable: false },
|
{ content: "fanyi: [360] " + text, description: "<url>翻译</url> | 使用 <url>[360翻译]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
|
{ content: "fanyi: [翻译狗] " + text, description: "<url>翻译</url> | 使用 <url>[翻译狗]</url> 翻译 <match>" + text + "</match>", deletable: false },
|
||||||
|
{ content: "fanyi: [Google] " + text, description: "<url>翻译</url> | 使用 <url>[Google翻译]</url> 翻译 <match>" + text + "</match> (Google翻译在中国大陆无法使用)", deletable: false },
|
||||||
]);
|
]);
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
@ -451,9 +453,15 @@ var omniboxSearchModes = [
|
|||||||
let hasChineseChar = /.*[\u4e00-\u9fa5]+.*$/.test(searchText)
|
let hasChineseChar = /.*[\u4e00-\u9fa5]+.*$/.test(searchText)
|
||||||
navigate("https://www.deepl.com/translator#" + (hasChineseChar ? "zh/en/" : "en/zh/") + encodeURIComponent(searchText), true);
|
navigate("https://www.deepl.com/translator#" + (hasChineseChar ? "zh/en/" : "en/zh/") + encodeURIComponent(searchText), true);
|
||||||
break;
|
break;
|
||||||
|
// case "[海词翻译]":
|
||||||
|
// navigate("http://fanyi.dict.cn/" + encodeURIComponent(searchText), true);
|
||||||
|
// break;
|
||||||
case "[金山词霸]":
|
case "[金山词霸]":
|
||||||
navigate("https://www.iciba.com/word?w=" + encodeURIComponent(searchText), true);
|
navigate("https://www.iciba.com/word?w=" + encodeURIComponent(searchText), true);
|
||||||
break;
|
break;
|
||||||
|
case "[海词]":
|
||||||
|
navigate("https://dict.cn/" + encodeURIComponent(searchText), true);
|
||||||
|
break;
|
||||||
case "[有道]":
|
case "[有道]":
|
||||||
navigate("https://www.youdao.com/w/" + encodeURIComponent(searchText), true);
|
navigate("https://www.youdao.com/w/" + encodeURIComponent(searchText), true);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user