diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 95f3238..46d1025 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -5,7 +5,20 @@ /en/_posts/ Recent content in _posts on uweb browser: unlimited power Hugo -- gohugo.io - Sat, 01 Apr 2023 00:00:00 +0000 + Tue, 11 Apr 2023 00:00:00 +0000 + + Resource redirection + /en/redirect/ + Tue, 11 Apr 2023 00:00:00 +0000 + + /en/redirect/ + Global redirection Global redirection is enabled with the setting option "Resource redirection". +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. +"default.redirect" (valid only without global redirection url) Click the following links to append mirrors to the file "default.redirect": +google recaptcha mirror +Each line of the file "default. + + Offline resources /en/offlinecache/ @@ -194,22 +207,6 @@ Toggle all checkboxes in forms Enable selection - - Resource redirection - /en/redirect/ - Mon, 25 Apr 2022 00:00:00 +0000 - - /en/redirect/ - Click the following links to append mirrors to the file "default.redirect": -github mirror:fastgit -github mirror 2 -google recaptcha mirror -Each line of the file "default.redirect" has the following format: -[domain name]:[regular expression]:[replacement expression] -in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]". -Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option "url redirection". - - Text selection /en/pccopy/ diff --git a/en/changelog/index.html b/en/changelog/index.html index 1939a7a..14616e9 100644 --- a/en/changelog/index.html +++ b/en/changelog/index.html @@ -51,8 +51,8 @@

pagure

Main features

Change logs

-

988: hosts file to support response headers.
-987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
+

991: global url redirection support.
+988: hosts file to support response headers.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
975: Bookmarks to support styling for markdown etc.
@@ -78,8 +78,8 @@ -

Last Modified: 3 April 2023
-bingAI to support cors with cookies
+

Last Modified: 12 April 2023
+global redirection support in config.js


 

diff --git a/en/index.html b/en/index.html index 59dd1d4..70e4e9c 100644 --- a/en/index.html +++ b/en/index.html @@ -95,6 +95,12 @@ +
  • + + Resource redirection + +
  • +
  • Offline resources @@ -167,12 +173,6 @@
  • -
  • - - Resource redirection - -
  • -
  • Text selection diff --git a/en/index.xml b/en/index.xml index 00956e6..88f5560 100644 --- a/en/index.xml +++ b/en/index.xml @@ -5,7 +5,20 @@ /en/ Recent content on uweb browser: unlimited power Hugo -- gohugo.io - Sat, 01 Apr 2023 00:00:00 +0000 + Tue, 11 Apr 2023 00:00:00 +0000 + + Resource redirection + /en/redirect/ + Tue, 11 Apr 2023 00:00:00 +0000 + + /en/redirect/ + Global redirection Global redirection is enabled with the setting option "Resource redirection". +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. +"default.redirect" (valid only without global redirection url) Click the following links to append mirrors to the file "default.redirect": +google recaptcha mirror +Each line of the file "default. + + Offline resources /en/offlinecache/ @@ -196,10 +209,12 @@ github sourceforge powerfolder pagure -Main features Change logs 988: hosts file to support response headers. -987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. +Main features Change logs 991: global url redirection support. +988: hosts file to support response headers. 985: Special urls to support shortcut keys such as ctrl-a to ctrl-z. -983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. +983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. +975: Bookmarks to support styling for markdown etc. +971: multiple type profiles: switch any data including website logins, user configurations orthogonally. @@ -334,22 +349,6 @@ Performance Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the "search" button to popup the menu. - - Resource redirection - /en/redirect/ - Mon, 25 Apr 2022 00:00:00 +0000 - - /en/redirect/ - Click the following links to append mirrors to the file "default.redirect": -github mirror:fastgit -github mirror 2 -google recaptcha mirror -Each line of the file "default.redirect" has the following format: -[domain name]:[regular expression]:[replacement expression] -in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]". -Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option "url redirection". - - Text selection /en/pccopy/ diff --git a/en/redirect/index.html b/en/redirect/index.html index 9d1cae8..3bc4dec 100644 --- a/en/redirect/index.html +++ b/en/redirect/index.html @@ -49,23 +49,25 @@
  • redirection
  • -

    Click the following links to append mirrors to the file "default.redirect":
    -github mirror:fastgit
    -github mirror 2

    -

    google recaptcha mirror

    +

    Global redirection

    +

    Global redirection is enabled with the setting option "Resource redirection".

    +

    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.

    +

    "default.redirect" (valid only without global redirection url)

    +

    Click the following links to append mirrors to the file "default.redirect":
    +google recaptcha mirror

    Each line of the file "default.redirect" has the following format:
    [domain name]:[regular expression]:[replacement expression]

    in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]".

    -

    Ways to enable redirection:

    +
    Ways to enable domain redirection:
    -

    Last Modified: 20 February 2023
    -use relative path
    +

    Last Modified: 12 April 2023
    +global redirection support in config.js

    
     

    diff --git a/en/searchurl/bingAI/bing.html b/en/searchurl/bingAI/bing.html index 626cc05..8c32424 100644 --- a/en/searchurl/bingAI/bing.html +++ b/en/searchurl/bingAI/bing.html @@ -81,6 +81,7 @@ } + diff --git a/en/searchurl/bingAI/js/bingChatHub.js b/en/searchurl/bingAI/js/bingChatHub.js index 6494cad..eb391f4 100644 --- a/en/searchurl/bingAI/js/bingChatHub.js +++ b/en/searchurl/bingAI/js/bingChatHub.js @@ -20,85 +20,6 @@ function getUuid() { return URL.createObjectURL(new Blob()).split('/')[3]; } -//聊天选项 -let chatTypes = { - //更有创造力选项 - create: [ - "nlu_direct_response_filter", - "deepleo", - "disable_emoji_spoken_text", - "responsible_ai_policy_235", - "enablemm", - "h3imaginative", - "clgalileo", - "gencontentv3", - "telmet", - "jbfv2", - "c2b47e4f", - "dv3sugg" - ], - //balance 平衡模式选项 - balance: [ - "nlu_direct_response_filter", - "deepleo", - "disable_emoji_spoken_text", - "responsible_ai_policy_235", - "enablemm", - "galileo", - "jbf101", - "cachewriteext", - "e2ecachewrite", - "nodlcpcwrite", - "dv3sugg", - "dlwebtrunc", - "glpromptv6" - ], - //精准选项 - accurate: [ - "nlu_direct_response_filter", - "deepleo", - "disable_emoji_spoken_text", - "responsible_ai_policy_235", - "enablemm", - "h3precise", - "telmet", - "jbfv2", - "c2b47e4f", - "dv3sugg", - "clgalileo" - ] -} - -//接收消息类型 -let allowedMessageTypes = [ - "Chat", - "InternalSearchQuery", - "InternalSearchResult", - "Disengaged", - "InternalLoaderMessage", - "RenderCardRequest", - "AdsQuery", - "SemanticSerp", - "GenerateContentQuery", - "SearchQuery" -] - -//切片id,也不知道是啥意思,反正官网的更新了 -let sliceIds = [ - "audseq", - "chk1cln", - "nofbkcf", - "nosharepre", - "fixsacodecf", - "405suggbs0", - "scctl", - "403jbf101", - "udstrclm8cmp", - "udstrclm8", - "329v6webtrunc", - "404e2ewrt" -] - class SendMessageManager { //(会话id,客户端id,签名id,是否是开始) //(string,string,string,boolena) diff --git a/en/searchurl/bingAI/js/optionsSets.js b/en/searchurl/bingAI/js/optionsSets.js new file mode 100644 index 0000000..fbd6119 --- /dev/null +++ b/en/searchurl/bingAI/js/optionsSets.js @@ -0,0 +1,114 @@ +//聊天选项 +let chatTypes = { + //更有创造力选项 + create: [ + "nlu_direct_response_filter", + "deepleo", + "disable_emoji_spoken_text", + "responsible_ai_policy_235", + "enablemm", + "h3imaginative", + "jbf101", + "cachewriteext", + "e2ecachewrite", + "nodlcpcwrite", + "dv3sugg", + "clgalileo", + "gencontentv3" + ], + //balance 平衡模式选项 + balance: [ + "nlu_direct_response_filter", + "deepleo", + "disable_emoji_spoken_text", + "responsible_ai_policy_235", + "enablemm", + "galileo", + "jbf101", + "cachewriteext", + "e2ecachewrite", + "nodlcpcwrite", + "dv3sugg", + "dlwebtrunc", + "glpromptv6" + ], + //精准选项 + accurate: [ + "nlu_direct_response_filter", + "deepleo", + "disable_emoji_spoken_text", + "responsible_ai_policy_235", + "enablemm", + "h3precise", + "clgalileo", + "jbf101", + "cachewriteext", + "e2ecachewrite", + "nodlcpcwrite", + "dv3sugg" + ] +} + +//接收消息类型 +let allowedMessageTypes = [ + "Chat", + "InternalSearchQuery", + "InternalSearchResult", + "Disengaged", + "InternalLoaderMessage", + "RenderCardRequest", + "AdsQuery", + "SemanticSerp", + "GenerateContentQuery", + "SearchQuery" +] + +//切片id,也不知道是啥意思,反正官网的更新了 +let sliceIds = [ + "audseq", + "chk1cln", + "nofbkcf", + "nosharepre", + "fixsacodecf", + "405suggbs0", + "scctl", + "403jbf101", + "udstrclm8cmp", + "udstrclm8", + "329v6webtrunc", + "404e2ewrt" +] + + +async function getPreviousMessages(){ + function getUuid() { + return URL.createObjectURL(new Blob()).split('/')[3]; + } + let pos = getStartProposes(); + return [{ + "text": getStartMessage(), + "author": "bot", + "adaptiveCards": [], + "suggestedResponses": [{ + "text": pos[0], + "contentOrigin": "DeepLeo", + "messageType": "Suggestion", + "messageId": getUuid(), + "offense": "Unknown" + }, { + "text": pos[1], + "contentOrigin": "DeepLeo", + "messageType": "Suggestion", + "messageId": getUuid(), + "offense": "Unknown" + }, { + "text": pos[2], + "contentOrigin": "DeepLeo", + "messageType": "Suggestion", + "messageId": getUuid(), + "offense": "Unknown" + }], + "messageId": getUuid(), + "messageType": "Chat" + }]; +} \ No newline at end of file diff --git a/en/searchurl/config.html b/en/searchurl/config.html index bb2bb85..220d0dd 100644 --- a/en/searchurl/config.html +++ b/en/searchurl/config.html @@ -1,6 +1,6 @@ -Serif + diff --git a/en/searchurl/config.js b/en/searchurl/config.js index edf4f02..574f263 100644 --- a/en/searchurl/config.js +++ b/en/searchurl/config.js @@ -1,9 +1,9 @@ -let labels = ["Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"]; -let names = ["font","cursive","fantasy","fixed","sansserif","serif"]; +let labels = ["Global redirect url","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"]; +let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"]; let d=document; -let sa = [` +let sa = [` -
    `]; +':https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`]; function gen(text) { let strs = text.split('\n'); let i=0; - for (i = 0; i < labels.length; i++){ + sa.push(""); + for (i = 1; i < labels.length; i++){ sa.push(""); } sa.push('
    '); let r = sa.join('
    '); - d.documentElement.innerHTML = r; + d.write(r); + d.close(); } if(d.body){ - fetch(location.href) - .then(res => res.text()) - .then(text => { - gen(text); - }); + var r=new XMLHttpRequest; + r.onload=function(){ + var t=r.responseText; + gen(t); + } + r.open("GET",location.href,!0); + r.send(null); }else { let text = "\n".repeat(labels.length-1); gen(text); diff --git a/en/sitemap.xml b/en/sitemap.xml index c00cc8c..270e9c1 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-10T08:20:10+08:00 + 2023-04-12T08:29:32+08:00 + + /en/tags/redirection/ + 2023-04-12T08:29:32+08:00 + + /en/redirect/ + 2023-04-12T08:29:32+08:00 + + + + /en/tags/ + 2023-04-12T08:29:32+08:00 + + + + /en/ + 2023-04-12T08:29:32+08:00 + + /en/offlinecache/ 2023-04-01T21:06:06+08:00 @@ -27,19 +69,6 @@ hreflang="en" href="/en/offlinecache/" /> - - /en/ - 2023-04-10T08:20:10+08:00 - - /en/links/ 2023-04-10T08:20:10+08:00 @@ -69,19 +98,6 @@ hreflang="en" href="/en/adblock_domain/" /> - - /en/tags/ - 2023-04-08T17:53:21+08:00 - - /en/search/ 2023-03-20T22:39:44+08:00 @@ -97,7 +113,7 @@ /> /en/topposts/ - 2023-04-03T17:49:38+08:00 + 2023-04-12T07:51:47+08:00 /en/changelog/ - 2023-04-03T17:49:38+08:00 + 2023-04-12T07:51:47+08:00 /en/sitemap/ 2023-02-01T09:52:11+08:00 @@ -286,22 +302,6 @@ hreflang="en" href="/en/rjs/" /> - - /en/tags/redirection/ - 2023-02-20T21:49:51+08:00 - - /en/redirect/ - 2023-02-20T21:49:51+08:00 - - /en/tags/clipboard/ 2023-02-20T21:46:50+08:00 diff --git a/en/tags/index.xml b/en/tags/index.xml index 873939f..2269792 100644 --- a/en/tags/index.xml +++ b/en/tags/index.xml @@ -5,7 +5,16 @@ /en/tags/ Recent content in Tags on uweb browser: unlimited power Hugo -- gohugo.io - Mon, 20 Mar 2023 00:00:00 +0000 + Tue, 11 Apr 2023 00:00:00 +0000 + + redirection + /en/tags/redirection/ + Tue, 11 Apr 2023 00:00:00 +0000 + + /en/tags/redirection/ + + + adblock /en/tags/adblock/ @@ -33,15 +42,6 @@ - - redirection - /en/tags/redirection/ - Mon, 25 Apr 2022 00:00:00 +0000 - - /en/tags/redirection/ - - - clipboard /en/tags/clipboard/ diff --git a/en/tags/redirection/index.xml b/en/tags/redirection/index.xml index 1da1190..d332d20 100644 --- a/en/tags/redirection/index.xml +++ b/en/tags/redirection/index.xml @@ -5,21 +5,18 @@ /en/tags/redirection/ Recent content in redirection on uweb browser: unlimited power Hugo -- gohugo.io - Mon, 25 Apr 2022 00:00:00 +0000 + Tue, 11 Apr 2023 00:00:00 +0000 Resource redirection /en/redirect/ - Mon, 25 Apr 2022 00:00:00 +0000 + Tue, 11 Apr 2023 00:00:00 +0000 /en/redirect/ - Click the following links to append mirrors to the file &quot;default.redirect&quot;: -github mirror:fastgit -github mirror 2 + Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot;. +When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url. +&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.redirect&quot;: google recaptcha mirror -Each line of the file &quot;default.redirect&quot; has the following format: -[domain name]:[regular expression]:[replacement expression] -in which &quot;[regular expression]&quot; is as defined by java language, and cannot have &quot;:&quot; inside; if empty, it defaults to be same as &quot;[domain name]&quot;. -Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;. +Each line of the file &quot;default. diff --git a/en/topposts/index.xml b/en/topposts/index.xml index 0394192..047b119 100644 --- a/en/topposts/index.xml +++ b/en/topposts/index.xml @@ -64,10 +64,12 @@ github sourceforge powerfolder pagure -Main features Change logs 988: hosts file to support response headers. -987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. +Main features Change logs 991: global url redirection support. +988: hosts file to support response headers. 985: Special urls to support shortcut keys such as ctrl-a to ctrl-z. -983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. +983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. +975: Bookmarks to support styling for markdown etc. +971: multiple type profiles: switch any data including website logins, user configurations orthogonally. diff --git a/sitemap.xml b/sitemap.xml index eaa367c..3eabafa 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ en/sitemap.xml - 2023-04-10T08:20:10+08:00 + 2023-04-12T08:29:32+08:00 diff --git a/zh/searchurl/config.js b/zh/searchurl/config.js index b70acaf..eea8bf5 100644 --- a/zh/searchurl/config.js +++ b/zh/searchurl/config.js @@ -1,5 +1,5 @@ -let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"]; -let names = ["font","cursive","fantasy","fixed","sansserif","serif"]; +let labels = ["全局重定向网址","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"]; +let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"]; let d=document; @@ -13,18 +13,21 @@ let sa = [`