extensions: qwen, yuanbao (noi-ask)

This commit is contained in:
lencx
2025-03-16 13:32:19 +08:00
parent c6e656b333
commit 40ae76d3c1
7 changed files with 59 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START --> <!-- EXTENSIONS_START -->
| Name | Version | Description | | Name | Version | Description |
| --- | --- | --- | | --- | --- | --- |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.19 | The best assistant for batch asking and quick typing of prompts. | | [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.2.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. | | [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. | | [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
<!-- EXTENSIONS_END --> <!-- EXTENSIONS_END -->

View File

@@ -1,6 +1,6 @@
{ {
"name": "Noi Mode", "name": "Noi Mode",
"version": "0.1.11", "version": "0.2.0",
"sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.cn.json", "sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.cn.json",
"modes": [ "modes": [
{ {
@@ -51,6 +51,12 @@
"text": "Gemini", "text": "Gemini",
"url": "https://gemini.google.com" "url": "https://gemini.google.com"
}, },
{
"id": "noi:qwen",
"parent": "noi@ai",
"text": "Qwen",
"url": "https://chat.qwen.ai"
},
{ {
"id": "noi:grok", "id": "noi:grok",
"parent": "noi@ai", "parent": "noi@ai",
@@ -159,6 +165,12 @@
"text": "豆包", "text": "豆包",
"url": "https://www.doubao.com" "url": "https://www.doubao.com"
}, },
{
"id": "noi:yuanbao",
"parent": "noi@aiCN",
"text": "腾讯元宝",
"url": "https://yuanbao.tencent.com/chat"
},
{ {
"id": "noi:jimeng", "id": "noi:jimeng",
"parent": "noi@aiCN", "parent": "noi@aiCN",

View File

@@ -1,6 +1,6 @@
{ {
"name": "Noi Mode", "name": "Noi Mode",
"version": "0.1.14", "version": "0.2.0",
"sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.json", "sync": "https://github.com/lencx/noi/blob/main/configs/noi.mode.json",
"modes": [ "modes": [
{ {
@@ -105,6 +105,12 @@
"text": "HuggingChat", "text": "HuggingChat",
"url": "https://huggingface.co/chat" "url": "https://huggingface.co/chat"
}, },
{
"id": "noi:qwen",
"parent": "noi@ai",
"text": "Qwen",
"url": "https://chat.qwen.ai"
},
{ {
"id": "noi:groq", "id": "noi:groq",
"parent": "noi@ai", "parent": "noi@ai",

View File

@@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START --> <!-- EXTENSIONS_START -->
| Name | Version | Description | | Name | Version | Description |
| --- | --- | --- | | --- | --- | --- |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.19 | The best assistant for batch asking and quick typing of prompts. | | [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.2.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. | | [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. | | [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
<!-- EXTENSIONS_END --> <!-- EXTENSIONS_END -->

View File

@@ -381,7 +381,7 @@ class DeepSeekAsk extends NoiAsk {
} }
class TongyiAsk extends NoiAsk { class TongyiAsk extends NoiAsk {
static name = 'TongYi'; // 通义千问 static name = 'QianWen'; // 通义千问
static url = 'https://tongyi.aliyun.com/qianwen'; static url = 'https://tongyi.aliyun.com/qianwen';
static submit() { static submit() {
@@ -390,8 +390,18 @@ class TongyiAsk extends NoiAsk {
} }
} }
class QwenAsk extends NoiAsk {
static name = 'Qwen'; // 千问
static url = 'https://chat.qwen.ai';
static submit() {
const btn = document.querySelector('button#send-message-button');
if (btn) btn.click();
}
}
class JimengAsk extends NoiAsk { class JimengAsk extends NoiAsk {
static name = 'Jimeng'; static name = 'Jimeng'; // 即梦
static url = 'https://jimeng.jianying.com'; static url = 'https://jimeng.jianying.com';
static sync(message) { static sync(message) {
@@ -429,6 +439,24 @@ class MetasoAsk extends NoiAsk {
} }
} }
class YuanbaoAsk extends NoiAsk {
static name = 'YuanBao'; // 腾讯元宝
static url = 'https://yuanbao.tencent.com/chat';
static sync(message) {
const inputElement = document.querySelector('[contenteditable=true]');
if (inputElement) {
inputElement.focus();
inputElement.innerHTML = message;
}
}
static submit() {
const btn = document.querySelector('.icon-send');
if (btn) btn.click();
}
}
window.NoiAsk = { window.NoiAsk = {
OpenAIAsk, OpenAIAsk,
ClaudeAsk, ClaudeAsk,
@@ -451,7 +479,9 @@ window.NoiAsk = {
DoubaoAsk, DoubaoAsk,
ChatGLMAsk, ChatGLMAsk,
TongyiAsk, TongyiAsk,
QwenAsk,
JimengAsk, JimengAsk,
DeepSeekAsk, DeepSeekAsk,
MetasoAsk, MetasoAsk,
YuanbaoAsk,
}; };

View File

@@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "@noi/ask", "name": "@noi/ask",
"version": "0.1.19", "version": "0.2.0",
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask", "homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"description": "The best assistant for batch asking and quick typing of prompts.", "description": "The best assistant for batch asking and quick typing of prompts.",
"content_scripts": [ "content_scripts": [
@@ -28,9 +28,11 @@
"https://chatglm.cn/*", "https://chatglm.cn/*",
"https://www.doubao.com/*", "https://www.doubao.com/*",
"https://tongyi.aliyun.com/qianwen/*", "https://tongyi.aliyun.com/qianwen/*",
"https://chat.qwen.ai/*",
"https://jimeng.jianying.com/*", "https://jimeng.jianying.com/*",
"https://chat.deepseek.com/*", "https://chat.deepseek.com/*",
"https://metaso.cn/*" "https://metaso.cn/*",
"https://yuanbao.tencent.com/*"
], ],
"js": ["main.js"], "js": ["main.js"],
"run_at": "document_end", "run_at": "document_end",

View File

@@ -5,7 +5,7 @@
{ {
"name": "@noi/ask", "name": "@noi/ask",
"description": "The best assistant for batch asking and quick typing of prompts.", "description": "The best assistant for batch asking and quick typing of prompts.",
"version": "0.1.19", "version": "0.2.0",
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask", "url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"dirname": "noi-ask", "dirname": "noi-ask",
"disabled": false "disabled": false