mirror of
https://github.com/lencx/Noi.git
synced 2026-01-04 19:31:20 +01:00
extensions: add notebooklm, jimeng (noi-ask)
This commit is contained in:
@@ -108,7 +108,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.12 | The best assistant for batch asking and quick typing of prompts. |
|
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.13 | 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/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
|
| [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
|
||||||
| [@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. |
|
||||||
|
|||||||
@@ -93,6 +93,12 @@
|
|||||||
"text": "Pi",
|
"text": "Pi",
|
||||||
"url": "https://pi.ai/talk"
|
"url": "https://pi.ai/talk"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "noi:notebooklm",
|
||||||
|
"parent": "noi@ai",
|
||||||
|
"text": "NotebookLM",
|
||||||
|
"url": "https://notebooklm.google.com"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "noi:coze",
|
"id": "noi:coze",
|
||||||
"parent": "noi@ai",
|
"parent": "noi@ai",
|
||||||
@@ -129,6 +135,12 @@
|
|||||||
"text": "豆包",
|
"text": "豆包",
|
||||||
"url": "https://www.doubao.com"
|
"url": "https://www.doubao.com"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "noi:jimeng",
|
||||||
|
"parent": "noi@aiCN",
|
||||||
|
"text": "即梦 AI",
|
||||||
|
"url": "https://jimeng.jianying.com"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "noi:chatglm",
|
"id": "noi:chatglm",
|
||||||
"parent": "noi@aiCN",
|
"parent": "noi@aiCN",
|
||||||
|
|||||||
@@ -99,6 +99,12 @@
|
|||||||
"text": "Pi",
|
"text": "Pi",
|
||||||
"url": "https://pi.ai/talk"
|
"url": "https://pi.ai/talk"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "noi:notebooklm",
|
||||||
|
"parent": "noi@ai",
|
||||||
|
"text": "NotebookLM",
|
||||||
|
"url": "https://notebooklm.google.com"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "noi:coze",
|
"id": "noi:coze",
|
||||||
"parent": "noi@ai",
|
"parent": "noi@ai",
|
||||||
|
|||||||
@@ -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.12 | The best assistant for batch asking and quick typing of prompts. |
|
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.13 | 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/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
|
| [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.1 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
|
||||||
| [@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. |
|
||||||
|
|||||||
@@ -341,6 +341,45 @@ class SunoAsk extends NoiAsk {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class NotebooklmAsk extends NoiAsk {
|
||||||
|
static name = 'NotebookLM';
|
||||||
|
static url = 'https://notebooklm.google.com';
|
||||||
|
|
||||||
|
static submit() {
|
||||||
|
const btn = document.querySelector('form button[type="submit"]');
|
||||||
|
if (btn) btn.click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class JimengAsk extends NoiAsk {
|
||||||
|
static name = 'Jimeng';
|
||||||
|
static url = 'https://jimeng.jianying.com';
|
||||||
|
|
||||||
|
static sync(message) {
|
||||||
|
// image generation
|
||||||
|
const inputElement = document.querySelector('#prompt-text-editor');
|
||||||
|
if (inputElement) {
|
||||||
|
inputElement.focus();
|
||||||
|
inputElement.innerHTML = '';
|
||||||
|
|
||||||
|
const span = document.createElement('span');
|
||||||
|
span.textContent = message;
|
||||||
|
inputElement.appendChild(span);
|
||||||
|
|
||||||
|
const inputEvent = new InputEvent('input', {
|
||||||
|
bubbles: true,
|
||||||
|
cancelable: true,
|
||||||
|
});
|
||||||
|
inputElement.dispatchEvent(inputEvent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static submit() {
|
||||||
|
const btn = document.querySelector('[class*="generateButton"]');
|
||||||
|
if (btn) this.autoClick(btn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.NoiAsk = {
|
window.NoiAsk = {
|
||||||
OpenAIAsk,
|
OpenAIAsk,
|
||||||
PoeAsk,
|
PoeAsk,
|
||||||
@@ -358,4 +397,6 @@ window.NoiAsk = {
|
|||||||
TongyiAsk,
|
TongyiAsk,
|
||||||
GroqAsk,
|
GroqAsk,
|
||||||
SunoAsk,
|
SunoAsk,
|
||||||
|
NotebooklmAsk,
|
||||||
|
JimengAsk,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "@noi/ask",
|
"name": "@noi/ask",
|
||||||
"version": "0.1.12",
|
"version": "0.1.13",
|
||||||
"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": [
|
||||||
@@ -22,7 +22,9 @@
|
|||||||
"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://suno.com/*"
|
"https://suno.com/*",
|
||||||
|
"https://notebooklm.google.com/*",
|
||||||
|
"https://jimeng.jianying.com/*"
|
||||||
],
|
],
|
||||||
"js": ["main.js"],
|
"js": ["main.js"],
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
|
|||||||
@@ -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.12",
|
"version": "0.1.13",
|
||||||
"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
|
||||||
|
|||||||
Reference in New Issue
Block a user