diff --git a/en/searchurl/bingAI/bing.html b/en/searchurl/bingAI/bing.html index efa05fc..42b16b5 100644 --- a/en/searchurl/bingAI/bing.html +++ b/en/searchurl/bingAI/bing.html @@ -17,7 +17,7 @@
- +
diff --git a/en/searchurl/bingAI/js/bing.js b/en/searchurl/bingAI/js/bing.js index fc4791c..d3195d4 100644 --- a/en/searchurl/bingAI/js/bing.js +++ b/en/searchurl/bingAI/js/bing.js @@ -7,11 +7,6 @@ var send_button = document.getElementById('send'); let restartNewChat = document.getElementById('restartNewChat'); var thisChatType = chatTypes.balance; -//全局变量 -var talk; -var returnMessage; -var isSpeaking = false; - reSetStartChatMessage(); //(string) @@ -54,6 +49,7 @@ function onMessage(json, returnMessage) { onMessageIsOKClose = true; returnMessage.getCatWebSocket().close(1000, 'ok'); } else { + talk = undefined; localStorage.removeItem('LastChatJson'); if (json.type == 1) { porserArguments(json.arguments); @@ -82,6 +78,13 @@ input_text.addEventListener('keydown', (event) => { } }); + +//全局变量 +var talk; +var returnMessage; +var isSpeaking = false; + + /**重置聊天框和聊天建议到初始状态 */ function reSetStartChatMessage(type) { createChat(thisChatType).then((r) => { @@ -295,14 +298,5 @@ restartNewChat.onclick = async () => { restart_button.onclick(); } -async function searchSuggestionsAddOnclick(){ - let adds = document.querySelectorAll("#SearchSuggestions>a"); - for(let add in adds){ - adds[add].onclick = (event)=>{ - if(searchSuggestions.style.opacity>=1){ - send(event.target.innerHTML); - } - } - } -} + diff --git a/en/searchurl/bingAI/js/parserReturn.js b/en/searchurl/bingAI/js/parserReturn.js index 05b4af4..c3ed46b 100644 --- a/en/searchurl/bingAI/js/parserReturn.js +++ b/en/searchurl/bingAI/js/parserReturn.js @@ -196,38 +196,29 @@ function generateContentQueryImg(message, father){ theUrls.append('SFX', '2'); theUrls.append('q', message.text); theUrls.append('iframeid', message.requestId); - let theUrl = URLTrue(magicUrl,"images/create?") + theUrls.toString(); + let theUrl = URLTrue(magicUrl,"AiDraw/Create?") + theUrls.toString(); try{ father.innerHTML = `正在生成${message.text}的图片.`; let html = (await (await fetch(theUrl)).text()); - - //如果有错误就输出错误 - let urr = new RegExp('class="gil_err_mt">([^<>]*)').exec(html); - if(urr && urr[1]){ - father.innerHTML = `

${urr[1]}

` - urr = new RegExp('class="gil_err_sbt">(([^<>]*<(a|div)[^<>]*>[^<>]*[^<>]*)*)').exec(html); - if(urr && urr[1]){ - father.innerHTML = father.innerHTML+`

${urr[1]}

`; - } - return; - } - - //如果没错误就匹配链接获取图片 - urr = new RegExp('"/(images/create/async/results/(\\S*))"').exec(html); + let urr = new RegExp('"/(images/create/async/results/(\\S*))"').exec(html); if(!urr || !urr[1]){ + urr = new RegExp('class="gil_err_mt">([^<>]*)').exec(html); + if(urr || urr[1]){ + father.innerHTML = `${urr[1]}` + return; + } console.log(html); addError("请求图片返回不正确的页面,无法加载图片。"); return; } let ur = urr[1]; - ur = ur.replaceAll('&','&'); let imgPageHtmlUrl = URLTrue(magicUrl,ur); let count = 0; let run = async ()=>{ father.innerHTML = `正在生成${message.text}的图片.${count}`; if(count>20){ - father.innerHTML = "请求图片超时!"; + addError("请求图片超时!"); return; } count++; @@ -241,29 +232,22 @@ function generateContentQueryImg(message, father){ setTimeout(run,3000); return; } - - father.innerHTML = ''; + let div = document.createElement("div"); + div.innerHTML = imgPageHtml; + let imgs = div.getElementsByTagName("img"); let theUrls = new URLSearchParams(); theUrls.append('createmessage',message.text); - let a = document.createElement("a"); - father.appendChild(a); - //用正则找全部图片 - let allSrc = imgPageHtml.matchAll(/]*src="([^"]*)"[^<>]*>/g); - let src = undefined; - let ok = false; - while(!(src=allSrc.next()).done){ - ok =true; - theUrls.append('imgs',src.value[1].split('?')[0]); - let img = document.createElement("img"); - img.src = src.value[1]; - a.appendChild(img); - } - if(ok){ - a.target = '_blank'; - a.href = '../GeneratePicture/img.html?'+theUrls.toString(); - }else{ - father.innerHTML = "服务器未正常返回图片!"; + father.innerHTML = ''; + for(let el=0;el{ + window.open('chrome-extension://'+chrome.runtime.id+'/GeneratePicture/img.html?'+theUrls.toString(), '_blank'); + } + father.appendChild(img); } + div.remove(); } setTimeout(run,3000); @@ -412,7 +396,11 @@ function porserSuggestedResponses(suggestedResponses) { for (let i = 0; i < suggestedResponses.length; i++) { let a = document.createElement('a'); a.innerHTML = suggestedResponses[i].text; + a.onclick = (even) => { + if(searchSuggestions.style.opacity>=1){ + send(even.target.innerHTML); + } + } searchSuggestions.appendChild(a); } - searchSuggestionsAddOnclick(); } \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index d7d8f78..dd463dd 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -11,7 +11,7 @@ zh/sitemap.xml - 2023-04-22T18:03:41+08:00 + 2023-04-19T23:06:34+08:00 diff --git a/zh/index.xml b/zh/index.xml index 6904817..2fe444f 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -157,6 +157,7 @@ UA为非默认时,点击PC按钮将恢复UA为默认,同时触发不保存UA /zh/search/ 超微浏览器下点击搜索引擎配置链接可自动添加到主屏。 推荐引擎(将下面文本添加到home5.search中): +bingChat:i:92X-Forwarded-For;8.8.8.8;User-Agent;Mobile Safari EdgA/111.0.1624.80:https://www.bing.com/search?q= 顺序:i:40%s_00 apkdl:https://apkdl.in/app/search?q= apkbog:https://www.apkbog.com/en/apks/search/ @@ -193,6 +194,8 @@ toplinks:https://www.toplinks.cc/s/?keyword= google:https://google.com/search?q= 谷歌:https://谷歌.ml/search?q= 必应:https://www.bing.com/search?q= +bingUS:i:92X-Forwarded-For;8.8.8.8:https://www.bing.com/search?q= +简单搜索:i:92User-Agent;SearchCraft:https://m.baidu.com/s?wd= 百度:https://m.baidu.com/s?wd= Fsou:https://fsoufsou.com/search?q= neeva:https://neeva.com/search?q= @@ -216,12 +219,7 @@ libvio:https://libvio.me/search/-------------.html?wd= 努努影院:https://www.nunuyy.top/so/%s---.html louk:https://www.louk.cn/vodsearch/-------------.html?wd= 4444影视:http://k.4444.li/search.php?searchword= -nfmovies:https://www.nfmovies.com/search.php?searchword= -电影狗:https://www.dianyinggou.com/so/ -pianku:https://www.pianku.la/search/%s-------------.html -novip:https://www.novipnoad.com/s= -555dianying:https://555dianying.cc/vodsearch/-------------.html?wd= -zhenbuka:https://www.zhenbuka.net/search/-------------.html?wd= +nfmovies:https://www.nfmovies.com/search.php?searchword= diff --git a/zh/search/index.html b/zh/search/index.html index 8af4588..114be9c 100644 --- a/zh/search/index.html +++ b/zh/search/index.html @@ -49,6 +49,7 @@

超微浏览器下点击搜索引擎配置链接可自动添加到主屏。

推荐引擎(将下面文本添加到home5.search中):

+

bingChat:i:92X-Forwarded-For;8.8.8.8;User-Agent;Mobile Safari EdgA/111.0.1624.80:https://www.bing.com/search?q=

顺序:i:40%s_00

apkdl:https://apkdl.in/app/search?q=

apkbog:https://www.apkbog.com/en/apks/search/

@@ -90,6 +91,8 @@ google:https://google.com/search?q=

谷歌:https://谷歌.ml/search?q=

必应:https://www.bing.com/search?q=

+

bingUS:i:92X-Forwarded-For;8.8.8.8:https://www.bing.com/search?q=

+

简单搜索:i:92User-Agent;SearchCraft:https://m.baidu.com/s?wd=

百度:https://m.baidu.com/s?wd=

Fsou:https://fsoufsou.com/search?q=

neeva:https://neeva.com/search?q=

@@ -299,8 +302,8 @@ 有哪些特殊的搜索引擎

-

Last Modified: 22 April 2023
-fix bingAI always 1/20 issue
+

Last Modified: 13 March 2023
+add newbing tips


 

diff --git a/zh/sitemap.xml b/zh/sitemap.xml index de49d55..95540d3 100644 --- a/zh/sitemap.xml +++ b/zh/sitemap.xml @@ -29,7 +29,7 @@ /> /zh/ - 2023-04-22T18:03:41+08:00 + 2023-04-19T23:06:34+08:00 /zh/topposts/ - 2023-04-22T18:03:41+08:00 + 2023-03-13T10:49:42+08:00 /zh/search/ - 2023-04-22T18:03:41+08:00 + 2023-03-13T10:49:42+08:00 /zh/search/ 超微浏览器下点击搜索引擎配置链接可自动添加到主屏。 推荐引擎(将下面文本添加到home5.search中): +bingChat:i:92X-Forwarded-For;8.8.8.8;User-Agent;Mobile Safari EdgA/111.0.1624.80:https://www.bing.com/search?q= 顺序:i:40%s_00 apkdl:https://apkdl.in/app/search?q= apkbog:https://www.apkbog.com/en/apks/search/ @@ -50,6 +51,8 @@ toplinks:https://www.toplinks.cc/s/?keyword= google:https://google.com/search?q= 谷歌:https://谷歌.ml/search?q= 必应:https://www.bing.com/search?q= +bingUS:i:92X-Forwarded-For;8.8.8.8:https://www.bing.com/search?q= +简单搜索:i:92User-Agent;SearchCraft:https://m.baidu.com/s?wd= 百度:https://m.baidu.com/s?wd= Fsou:https://fsoufsou.com/search?q= neeva:https://neeva.com/search?q= @@ -73,12 +76,7 @@ libvio:https://libvio.me/search/-------------.html?wd= 努努影院:https://www.nunuyy.top/so/%s---.html louk:https://www.louk.cn/vodsearch/-------------.html?wd= 4444影视:http://k.4444.li/search.php?searchword= -nfmovies:https://www.nfmovies.com/search.php?searchword= -电影狗:https://www.dianyinggou.com/so/ -pianku:https://www.pianku.la/search/%s-------------.html -novip:https://www.novipnoad.com/s= -555dianying:https://555dianying.cc/vodsearch/-------------.html?wd= -zhenbuka:https://www.zhenbuka.net/search/-------------.html?wd= +nfmovies:https://www.nfmovies.com/search.php?searchword=