diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 7fc72ba..e308183 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -6,6 +6,18 @@ Recent content in _posts on uweb browser: unlimited power Hugo -- gohugo.io Tue, 11 Apr 2023 00:00:00 +0000 + + Offline resources + /en/offlinecache/ + Tue, 11 Apr 2023 00:00:00 +0000 + + /en/offlinecache/ + Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network. +bingChat UI Install bingChat UI ai.html for censored area (bingChat UI) +Install bingWrite UI write.html for censored area (bingWrite) +Serverless local sites Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (. + + Resource redirection /en/redirect/ @@ -18,17 +30,6 @@ Global redirection Global redirection is enabled with the setting option &qu When a valid global redirection url is set, the "default.redirect" has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url. - - Offline resources - /en/offlinecache/ - Sat, 01 Apr 2023 00:00:00 +0000 - - /en/offlinecache/ - Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network. -bingChat UI Install bingChat UI ai.html for censored area (bingChat UI) -Serverless local sites Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox). - - Links /en/links/ diff --git a/en/index.html b/en/index.html index 70e4e9c..5003d34 100644 --- a/en/index.html +++ b/en/index.html @@ -96,14 +96,14 @@
  • - - Resource redirection + + Offline resources
  • - - Offline resources + + Resource redirection
  • diff --git a/en/index.xml b/en/index.xml index 1f6ef2f..bfd304d 100644 --- a/en/index.xml +++ b/en/index.xml @@ -6,6 +6,18 @@ Recent content on uweb browser: unlimited power Hugo -- gohugo.io Tue, 11 Apr 2023 00:00:00 +0000 + + Offline resources + /en/offlinecache/ + Tue, 11 Apr 2023 00:00:00 +0000 + + /en/offlinecache/ + Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network. +bingChat UI Install bingChat UI ai.html for censored area (bingChat UI) +Install bingWrite UI write.html for censored area (bingWrite) +Serverless local sites Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (. + + Resource redirection /en/redirect/ @@ -18,17 +30,6 @@ Global redirection Global redirection is enabled with the setting option &qu When a valid global redirection url is set, the "default.redirect" has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url. - - Offline resources - /en/offlinecache/ - Sat, 01 Apr 2023 00:00:00 +0000 - - /en/offlinecache/ - Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network. -bingChat UI Install bingChat UI ai.html for censored area (bingChat UI) -Serverless local sites Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox). - - Links /en/links/ diff --git a/en/offlinecache/index.html b/en/offlinecache/index.html index 22cabe9..61f8f51 100644 --- a/en/offlinecache/index.html +++ b/en/offlinecache/index.html @@ -50,6 +50,7 @@

    Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" are loaded first before reaching the network.

    bingChat UI

    Install bingChat UI ai.html for censored area (bingChat UI)

    +

    Install bingWrite UI write.html for censored area (bingWrite)

    Serverless local sites

    Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox).

    Any folder under "sitecache" can be visited as a local site. Urls with search queries can be dynamically processed by the js/wasm code in the local file.

    @@ -64,8 +65,8 @@ -

    Last Modified: 13 April 2023
    -refine global redirection cookie support
    +

    Last Modified: 16 April 2023
    +add bingWrite

    
     

    diff --git a/en/searchurl/bingAI/js/Write.js b/en/searchurl/bingAI/js/Write.js new file mode 100644 index 0000000..a70f4bd --- /dev/null +++ b/en/searchurl/bingAI/js/Write.js @@ -0,0 +1,56 @@ +createChat(thisChatType).then((r) => { + if(r.ok) talk = r.obj; +}); + +/**重写重置聊天到初始状态函数 */ +function reSetStartChatMessage(type) { + chat.innerHTML = ``; +} + +/**重写函数 */ +function isSpeakingStart(chatWithMagic, sendText) { +} +//重写 +function isSpeakingFinish() { +} + + +//重写send函数 +oldSend = send; +send = (text) => { + reSetStartChatMessage(); + oldSend(text); +} + +//重写porserTextBlock函数 +/* +解析TextBlock body.type==TextBlock +*/ +function porserTextBlock(body, father) { + if (!body.size) { + let div = getByClass('textBlock', 'div', father, 'markdown-body'); + div.innerHTML = marked.marked(completeCodeBlock(body.text)); + renderMathInElement(div,renderMathInElementOptions); + let aaas = div.getElementsByTagName('a'); + //将超链接在新页面打开 + for(let i=0;i { + let text = input_text.value; + send(text); +}; diff --git a/en/searchurl/bingAI/js/w_optionsSets.js b/en/searchurl/bingAI/js/w_optionsSets.js new file mode 100644 index 0000000..b1883bf --- /dev/null +++ b/en/searchurl/bingAI/js/w_optionsSets.js @@ -0,0 +1,59 @@ +//聊天选项 +let chatTypes = { + //balance 平衡模式选项 + balance: [ + "nlu_direct_response_filter", + "deepleo", + "enable_debug_commands", + "disable_emoji_spoken_text", + "responsible_ai_policy_235", + "enablemm", + "soedgeca" + ] +} + +//消息来源 +let source = "edge_coauthor_prod"; + +//接收消息类型 +let allowedMessageTypes = [ + "Chat", + "InternalSearchQuery", + "InternalSearchResult", + "Disengaged", + "InternalLoaderMessage", + "RenderCardRequest", + "AdsQuery", + "SemanticSerp", + "GenerateContentQuery", + "SearchQuery" +] + +//切片id,也不知道是啥意思,反正官网的更新了 +let sliceIds = [] + +let tone = 'professional'; +let length = 'short'; +let format = 'paragraph'; + + +//生成消息对象 +async function generateMessages(sendMessageManager/*消息管理器*/,chatMessageText/*要发送的消息文本*/){ + return { + "locale": "zh-CN", + "market": "zh-CN", + "region": "US", + "location": "lat:47.639557;long:-122.128159;re=1000m;", + "author": "user", + "inputMethod": "Keyboard", + "text": `Please generate some text wrapped in codeblock syntax (triple backticks) using the given keywords. Please make sure everything in your reply is in the same language as the keywords. Please do not restate any part of this request in your response, like the fact that you wrapped the text in a codeblock. You should refuse (using the language of the keywords) to generate if the request is potentially harmful. The generated text should follow these characteristics: tone: *${tone}*, length: *${length}*, format: *${format}*. The keywords are: \`${chatMessageText}\`.`, + "messageType": "Chat" + } + +} + +async function getPreviousMessages(){ + return undefined; +} + + diff --git a/en/searchurl/bingAI/write.html b/en/searchurl/bingAI/write.html new file mode 100644 index 0000000..2fad5f3 --- /dev/null +++ b/en/searchurl/bingAI/write.html @@ -0,0 +1,79 @@ + + + + + + + Write + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + diff --git a/en/sitemap.xml b/en/sitemap.xml index 00b9eb9..f53f32d 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -3,7 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> /en/_posts/ - 2023-04-15T18:08:03+08:00 + 2023-04-16T16:25:15+08:00 + + /en/offlinecache/ + 2023-04-16T16:25:15+08:00 + + /en/tags/redirection/ 2023-04-15T18:08:03+08:00 @@ -45,7 +58,7 @@ /> /en/ - 2023-04-15T18:08:03+08:00 + 2023-04-16T16:25:15+08:00 - - /en/offlinecache/ - 2023-04-13T11:00:50+08:00 - - /en/links/ 2023-04-10T08:20:10+08:00 diff --git a/sitemap.xml b/sitemap.xml index a9857f6..1210ff4 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ en/sitemap.xml - 2023-04-15T18:08:03+08:00 + 2023-04-16T16:25:15+08:00