chore: 优化选择器并更新文档
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
(function initGeminiOps(){
|
||||
const S = {
|
||||
promptInput: [
|
||||
'textarea[aria-label*="Gemini"]',
|
||||
'textarea[placeholder*="Gemini"]',
|
||||
'div[contenteditable="true"]'
|
||||
'div.ql-editor[contenteditable="true"][role="textbox"]',
|
||||
'[contenteditable="true"][aria-label*="Gemini"]',
|
||||
'[contenteditable="true"][data-placeholder*="Gemini"]',
|
||||
'div[contenteditable="true"][role="textbox"]'
|
||||
],
|
||||
sendBtn: [
|
||||
'button[aria-label*="发送"]',
|
||||
'button[aria-label*="Send"]',
|
||||
'button:has-text("发送")'
|
||||
],
|
||||
imageToggle: [
|
||||
'button:has-text("图片")',
|
||||
'button:has-text("生成图片")',
|
||||
'[role="button"]:has-text("Image")'
|
||||
],
|
||||
modelBtn: [
|
||||
'button:has-text("Gemini")',
|
||||
'[role="button"][aria-haspopup="menu"]'
|
||||
@@ -74,7 +70,6 @@
|
||||
return {
|
||||
promptInput: !!find('promptInput'),
|
||||
sendBtn: !!find('sendBtn'),
|
||||
imageToggle: !!find('imageToggle'),
|
||||
modelBtn: !!find('modelBtn')
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user