Skip to content

Commit e79f8d2

Browse files
committed
advanced selectors config for gemini
1 parent 1ed3843 commit e79f8d2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

popup-page-scripts/popup-page-advanced.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,21 @@ document.addEventListener('DOMContentLoaded', () => {
164164
'textarea.w-full.px-2.\\@\\[480px\\]\\/input\\:px-3.pt-5.mb-5.bg-transparent.focus\\:outline-none.text-primary.align-bottom'
165165
],
166166
buttonsContainerId: 'grok-custom-buttons-container'
167+
},
168+
Gemini: {
169+
containers: [
170+
'input-container',
171+
'main'
172+
],
173+
sendButtons: [
174+
'button.send-button[aria-label="Send message"]',
175+
'button[aria-label="Send message"][aria-disabled="false"]'
176+
],
177+
editors: [
178+
'div.ql-editor[contenteditable="true"]',
179+
'rich-textarea div.ql-editor'
180+
],
181+
buttonsContainerId: 'gemini-custom-buttons-container'
167182
}
168183
};
169184

popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ <h2>Advanced Selector Configuration <span class="expand-text">(click to expand)<
190190
Selectors are pointing to a webpage location where buttons, text, and sending button should be.
191191
</div>
192192
<br>
193-
<!-- Rest of the Advanced Section Content -->
194193
<div class="row" >
195194
<select id="selectorWebsiteSelect" title="Select website for configuration">
196195
<option value="ChatGPT">ChatGPT</option>
@@ -199,6 +198,7 @@ <h2>Advanced Selector Configuration <span class="expand-text">(click to expand)<
199198
<option value="DeepSeek">DeepSeek</option>
200199
<option value="AIStudio">AIStudio</option>
201200
<option value="Grok">Grok</option>
201+
<option value="Gemini">Gemini</option>
202202
</select>
203203
</div>
204204

0 commit comments

Comments
 (0)