Skip to content

Commit a03fcec

Browse files
committed
update adapters support for startpage, kagi, naver, wechat
1 parent a62d7de commit a03fcec

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/config/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const ModelGroups = {
210210
* @type {Object.<string,Model>}
211211
*/
212212
export const Models = {
213-
chatgptFree35: { value: 'text-davinci-002-render-sha', desc: 'ChatGPT (Web)' },
213+
chatgptFree35: { value: 'auto', desc: 'ChatGPT (Web)' },
214214

215215
chatgptFree4o: { value: 'gpt-4o', desc: 'ChatGPT (Web, GPT-4o)' },
216216
chatgptFree4oMini: { value: 'gpt-4o-mini', desc: 'ChatGPT (Web, GPT-4o mini)' },

src/content-script/site-adapters/index.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export const config = {
6464
},
6565
startpage: {
6666
inputQuery: ["input[name='query']"],
67-
sidebarContainerQuery: ['.layout-web__sidebar.layout-web__sidebar--web'],
68-
appendContainerQuery: ['.layout-web__body.layout-web__body--desktop'],
69-
resultsContainerQuery: ['.mainline-results'],
67+
sidebarContainerQuery: ['#sidebar'],
68+
appendContainerQuery: [],
69+
resultsContainerQuery: ['#main'],
7070
},
7171
baidu: {
7272
inputQuery: ["input[id='kw']"],
@@ -78,7 +78,7 @@ export const config = {
7878
},
7979
},
8080
kagi: {
81-
inputQuery: ["textarea[name='q']"],
81+
inputQuery: ["input[name='q']", "textarea[name='q']"],
8282
sidebarContainerQuery: ['.right-content-box'],
8383
appendContainerQuery: ['#_0_app_content'],
8484
resultsContainerQuery: ['#main', '#app'],
@@ -91,7 +91,7 @@ export const config = {
9191
},
9292
naver: {
9393
inputQuery: ["input[name='query']"],
94-
sidebarContainerQuery: ['#sub_pack'],
94+
sidebarContainerQuery: ['#main_pack'],
9595
appendContainerQuery: ['#content'],
9696
resultsContainerQuery: ['#main_pack', '#ct'],
9797
},
@@ -199,7 +199,7 @@ export const config = {
199199
},
200200
'mp.weixin.qq': {
201201
inputQuery: weixin.inputQuery,
202-
sidebarContainerQuery: ['.qr_code_pc', '#js_content'],
202+
sidebarContainerQuery: ['#js_content'],
203203
appendContainerQuery: [],
204204
resultsContainerQuery: ['#js_content'],
205205
},

0 commit comments

Comments
 (0)