Skip to content

Commit e569fd5

Browse files
committed
AISTUDIO SEND BUTTON
1 parent 17e7fe3 commit e569fd5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

prompt-update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ You are updating selectors in the `InjectionTargetsOnWebsite` class in `utils.js
1717
### Your Task
1818
I will provide you with HTML code from a website. You need to:
1919

20-
1. **Identify the website** from the HTML (ChatGPT, Claude, Copilot, DeepSeek, AIStudio, Grok, Gemini, or Perplexity)
20+
1. **Identify the website and which selectors user wants to update** from the HTML (ChatGPT, Claude, Copilot, DeepSeek, AIStudio, Grok, Gemini, or Perplexity) USUALLY USER WILL TELL LIKE "SEND BUTTON", "EDITOR", "CONTAINER", "THREAD ROOT" - ONLY UPDATE WHAT WAS ASKED.
2121

22-
2. **Analyze the HTML** to find:
22+
2. **Analyze the HTML** to find (ONLY BY SPECIAL USER REQUEST):
2323
- The **send button** element
2424
- The **editor/input** element (textarea or contenteditable)
2525
- The **container** that wraps the input area
26-
- The **thread/conversation** root element (ONLY BY SPECIAL USER REQUEST)
26+
- The **thread/conversation** root element
2727

2828
3. **Create CSS selectors** following these rules:
2929
- **Prioritize stable attributes**: `aria-label`, `data-testid`, `id`, `role`

utils.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,14 @@ class InjectionTargetsOnWebsite {
388388
'body > app-root > div > div > div.layout-wrapper > div > span > ms-prompt-switcher > ms-chunk-editor > section > footer'
389389
],
390390
sendButtons: [
391-
'button.run-button[type="submit"]',
392-
'button[aria-label="Run"]',
393-
'run-button button[type="submit"]',
394-
'button.run-button',
395-
'footer > div.input-wrapper > div:nth-child(3) > run-button > button'
391+
'ms-run-button button[type="submit"]', // Most specific - custom element + submit button
392+
'button.run-button[type="submit"]', // Specific class + type
393+
'button[aria-label="Run"][type="submit"]', // Aria-label + type
394+
'ms-run-button button', // Custom element fallback
395+
'button.run-button', // Class-based fallback
396+
'button[aria-label="Run"]', // Aria-label fallback
397+
'button[type="submit"]', // Generic submit button
398+
'footer > div.input-wrapper > div:nth-child(3) > run-button > button' // Legacy specific path
396399
],
397400
editors: [
398401
'textarea[aria-label="Type something or tab to choose an example prompt"]',

0 commit comments

Comments
 (0)