From 6e9241a91a984f4c0db061dae5072908d669872c Mon Sep 17 00:00:00 2001 From: lencx Date: Sun, 18 Feb 2024 18:58:29 +0800 Subject: [PATCH] fix: gemini not work --- extensions/README.md | 2 +- extensions/noi-ask/main.js | 2 +- extensions/noi-ask/manifest.json | 2 +- extensions/noi.extensions.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/README.md b/extensions/README.md index d9f53e1..162db73 100644 --- a/extensions/README.md +++ b/extensions/README.md @@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio | Name | Version | Description | | --- | --- | --- | -| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.4 | 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.5 | 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.0 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. | | [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.0 | Reset certain website styles to enhance compatibility with Noi. | diff --git a/extensions/noi-ask/main.js b/extensions/noi-ask/main.js index f682e9d..f2b68a3 100644 --- a/extensions/noi-ask/main.js +++ b/extensions/noi-ask/main.js @@ -116,7 +116,7 @@ class GeminiAsk extends NoiAsk { } static submit() { - const btn = document.querySelector('button[aria-label*="Send message"]'); + const btn = document.querySelector('button[aria-label*="Send message"]') || document.querySelector('button.send-button'); if (btn) { btn.setAttribute('aria-disabled', 'false'); // doesn't work alone btn.focus(); diff --git a/extensions/noi-ask/manifest.json b/extensions/noi-ask/manifest.json index 2edd268..f536c1e 100644 --- a/extensions/noi-ask/manifest.json +++ b/extensions/noi-ask/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "@noi/ask", - "version": "0.1.4", + "version": "0.1.5", "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": [ diff --git a/extensions/noi.extensions.json b/extensions/noi.extensions.json index 0659509..e52b617 100644 --- a/extensions/noi.extensions.json +++ b/extensions/noi.extensions.json @@ -5,7 +5,7 @@ { "name": "@noi/ask", "description": "The best assistant for batch asking and quick typing of prompts.", - "version": "0.1.4", + "version": "0.1.5", "url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask", "dirname": "noi-ask", "disabled": false