Skip to content

Commit a157c53

Browse files
committed
fix: claude ask
1 parent fb43437 commit a157c53

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
110110
<!-- EXTENSIONS_START -->
111111
| Name | Version | Description |
112112
| --- | --- | --- |
113-
| [@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. |
113+
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.2.1 | The best assistant for batch asking and quick typing of prompts. |
114114
| [@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. |
115115
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
116116
<!-- EXTENSIONS_END -->

extensions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
99
<!-- EXTENSIONS_START -->
1010
| Name | Version | Description |
1111
| --- | --- | --- |
12-
| [@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. |
12+
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.2.1 | The best assistant for batch asking and quick typing of prompts. |
1313
| [@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. |
1414
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.3 | Reset certain website styles to enhance compatibility with Noi. |
1515
<!-- EXTENSIONS_END -->

extensions/noi-ask/main.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ class ClaudeAsk extends NoiAsk {
9999

100100
static submit() {
101101
// subsequent screens use this
102-
let btn = document.querySelector('button[aria-label*="Send Message"]');
103-
if (!btn) { // new chats use this
104-
btn = document.querySelector('button:has(div svg)');
105-
}
106-
if (!btn) { // last ditch attempt
107-
btn = document.querySelector('button:has(svg)');
102+
let btn = document.querySelector('button[aria-label*="send message" i]');
103+
if (!btn) {
104+
const btns = document.querySelectorAll('fieldset button:has(svg)');
105+
btn = btns[btns.length - 1];
108106
}
109107
if (btn) this.autoClick(btn);
110108
}

extensions/noi-ask/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "@noi/ask",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
66
"description": "The best assistant for batch asking and quick typing of prompts.",
77
"content_scripts": [

extensions/noi.extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "@noi/ask",
77
"description": "The best assistant for batch asking and quick typing of prompts.",
8-
"version": "0.2.0",
8+
"version": "0.2.1",
99
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
1010
"dirname": "noi-ask",
1111
"disabled": false

0 commit comments

Comments
 (0)