extensions: add sora (noi-ask)

This commit is contained in:
lencx
2024-12-15 00:57:15 +08:00
parent 537bf91e6b
commit a6253d335d
7 changed files with 31 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START -->
| Name | Version | Description |
| --- | --- | --- |
| [@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](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.14 | 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/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |

View File

@@ -70,6 +70,17 @@ class OpenAIAsk extends NoiAsk {
}
}
class SoraAsk extends NoiAsk {
static name = 'Sora';
static url = 'https://sora.com';
static submit() {
const buttons = document.querySelectorAll('.surface-composer button');
const lastButton = buttons[buttons.length - 1];
if (lastButton) this.autoClick(lastButton);
}
}
class PoeAsk extends NoiAsk {
static name = 'Poe';
static url = 'https://poe.com';
@@ -382,6 +393,7 @@ class JimengAsk extends NoiAsk {
window.NoiAsk = {
OpenAIAsk,
SoraAsk,
PoeAsk,
ClaudeAsk,
GeminiAsk,

View File

@@ -1,13 +1,14 @@
{
"manifest_version": 3,
"name": "@noi/ask",
"version": "0.1.13",
"version": "0.1.14",
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"description": "The best assistant for batch asking and quick typing of prompts.",
"content_scripts": [
{
"matches": [
"https://chatgpt.com/*",
"https://sora.com/*",
"https://gemini.google.com/*",
"https://poe.com/*",
"https://claude.ai/*",

View File

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