Compare commits

...

2 commits

Author SHA1 Message Date
James Feng Cao
a8700372f4 update bingAI api 2023-05-19 15:09:14 +08:00
James Feng Cao
2d72f7825a add link to magic urls 2023-05-13 20:12:55 +08:00
11 changed files with 80 additions and 72 deletions

View file

@ -59,7 +59,7 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate> <pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid> <guid>/en/adblock_domain/</guid>
<description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked. <description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect with the setting option &amp;quot;use hosts&amp;quot;.
hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format: hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format:
[[IP address][attributes]][single space][domain name] [[IP address][attributes]][single space][domain name]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be: where &amp;quot;[[IP address][attributes]]&amp;quot; could be:
@ -127,7 +127,7 @@ The command line could be a &amp;quot;.js&amp;quot;, &amp;quot;.sh&amp;quot; or
<guid>/en/url2site/</guid> <guid>/en/url2site/</guid>
<description>The uweb internal link &amp;quot;i:0m&amp;quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks: <description>The uweb internal link &amp;quot;i:0m&amp;quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks:
&amp;quot;i:0m04:[url]&amp;quot;: to treat the [url] content as html with bookmarklet. &amp;quot;i:0mi:5h:[url]&amp;quot;: to treat the [url] content as html (for download or no-script links etc.) &amp;quot;i:0mi:5h?[postfix]::[url]&amp;quot;: auto append query postfix to url to retrieve content. &amp;quot;i:0mi:5h/[regex]/[replacement]::[url]&amp;quot;: use the result of regular expression replacement to retrieve the content.</description> &amp;quot;i:0m04:[url]&amp;quot;: to treat the [url] content as html with bookmarklet. &amp;quot;i:0m?:[url]&amp;quot;: to treat the [url] content as html, handling css/js properly. &amp;quot;i:0m?[postfix]:[url]&amp;quot;: auto append query postfix to url to retrieve content. &amp;quot;i:0mi:5h:[url]&amp;quot;: similar to &amp;quot;i:0m?:[url]&amp;quot;, to treat the [url] content as html (for download or no-script links etc.</description>
</item> </item>
<item> <item>

View file

@ -48,7 +48,7 @@
<li><a href="../tags/adblock">adblock</a> </li> <li><a href="../tags/adblock">adblock</a> </li>
</ul> </ul>
<p>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.</p> <p>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect with the setting option &quot;use hosts&quot;.</p>
<h4 id="hosts">hosts</h4> <h4 id="hosts">hosts</h4>
<p>The <span style="color:red">enhanced</span> file <a href="file:///data/data/info.torapp.uweb/files/hosts">&quot;hosts&quot;</a> defines IP addresses/attributes for domains. Each line has the following format:<br> <p>The <span style="color:red">enhanced</span> file <a href="file:///data/data/info.torapp.uweb/files/hosts">&quot;hosts&quot;</a> defines IP addresses/attributes for domains. Each line has the following format:<br>
[[IP address][attributes]][single space][domain name]</p> [[IP address][attributes]][single space][domain name]</p>
@ -90,8 +90,8 @@ Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credential
The first part [rootDomain] is required and the others are optional. regex is java-grammar regular expression. If the second regex is used, it is recommended to merge the first regex to the second one for performance.</p> The first part [rootDomain] is required and the others are optional. regex is java-grammar regular expression. If the second regex is used, it is recommended to merge the first regex to the second one for performance.</p>
</div> </div>
<p>Last Modified: 13 April 2023<br> <p>Last Modified: 13 May 2023<br>
refine global redirection cookie support<br> update bingAI/js/optionsSets.js<br>
<pre></pre> <pre></pre>
</p> </p>
<script> <script>

View file

@ -110,7 +110,7 @@ Clipboard2QR needs libqrencode.</p>
</div> </div>
<p>Last Modified: 12 May 2023<br> <p>Last Modified: 12 May 2023<br>
add simple modification info<br> fix en/cmds<br>
<pre></pre> <pre></pre>
</p> </p>
<script> <script>

View file

@ -59,7 +59,7 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate> <pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid> <guid>/en/adblock_domain/</guid>
<description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked. <description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect with the setting option &amp;quot;use hosts&amp;quot;.
hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format: hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format:
[[IP address][attributes]][single space][domain name] [[IP address][attributes]][single space][domain name]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be: where &amp;quot;[[IP address][attributes]]&amp;quot; could be:
@ -173,7 +173,7 @@ The command line could be a &amp;quot;.js&amp;quot;, &amp;quot;.sh&amp;quot; or
<guid>/en/url2site/</guid> <guid>/en/url2site/</guid>
<description>The uweb internal link &amp;quot;i:0m&amp;quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks: <description>The uweb internal link &amp;quot;i:0m&amp;quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks:
&amp;quot;i:0m04:[url]&amp;quot;: to treat the [url] content as html with bookmarklet. &amp;quot;i:0mi:5h:[url]&amp;quot;: to treat the [url] content as html (for download or no-script links etc.) &amp;quot;i:0mi:5h?[postfix]::[url]&amp;quot;: auto append query postfix to url to retrieve content. &amp;quot;i:0mi:5h/[regex]/[replacement]::[url]&amp;quot;: use the result of regular expression replacement to retrieve the content.</description> &amp;quot;i:0m04:[url]&amp;quot;: to treat the [url] content as html with bookmarklet. &amp;quot;i:0m?:[url]&amp;quot;: to treat the [url] content as html, handling css/js properly. &amp;quot;i:0m?[postfix]:[url]&amp;quot;: auto append query postfix to url to retrieve content. &amp;quot;i:0mi:5h:[url]&amp;quot;: similar to &amp;quot;i:0m?:[url]&amp;quot;, to treat the [url] content as html (for download or no-script links etc.</description>
</item> </item>
<item> <item>

View file

@ -8,11 +8,13 @@ let chatTypes = {
"responsible_ai_policy_235", "responsible_ai_policy_235",
"enablemm", "enablemm",
"h3imaginative", "h3imaginative",
"responseos", "cricketansgnd",
"cachewriteext", "cachewriteext",
"e2ecachewrite", "e2ecachewrite",
"nodlcpcwrite", "nodlcpcwrite",
"travelansgnd", "nointernalsugg",
"saharasugg",
"enablenewsfc",
"dv3sugg", "dv3sugg",
"clgalileo", "clgalileo",
"gencontentv3" "gencontentv3"
@ -25,33 +27,34 @@ let chatTypes = {
"responsible_ai_policy_235", "responsible_ai_policy_235",
"enablemm", "enablemm",
"galileo", "galileo",
"responseos", "cricketansgnd",
"cachewriteext", "cachewriteext",
"e2ecachewrite", "e2ecachewrite",
"nodlcpcwrite", "nodlcpcwrite",
"travelansgnd", "nointernalsugg",
"dv3sugg" "saharasugg",
"enablenewsfc",
"dv3sugg",
"saharagenconv5"
], ],
//精准选项 //精准选项
accurate: [ accurate: [
"chk1cf", "nlu_direct_response_filter",
"nopreloadsscf", "deepleo",
"winlongmsg2tf", "disable_emoji_spoken_text",
"perfimpcomb", "responsible_ai_policy_235",
"sugdivdis", "enablemm",
"sydnoinputt", "h3precise",
"wpcssopt", "cricketansgnd",
"wintone2tf", "cachewriteext",
"0404sydicnbs0", "e2ecachewrite",
"405suggbs0", "nodlcpcwrite",
"scctl", "nointernalsugg",
"330uaugs0", "saharasugg",
"0329resp", "enablenewsfc",
"udscahrfon", "dv3sugg",
"udstrblm5", "clgalileo",
"404e2ewrt", "gencontentv3"
"408nodedups0",
"403tvlansgnd"
] ]
} }
@ -60,11 +63,14 @@ let source = "cib";
//接收消息类型 //接收消息类型
let allowedMessageTypes = [ let allowedMessageTypes = [
"Chat", "ActionRequest",
"Chat",
"Context",
"InternalSearchQuery", "InternalSearchQuery",
"InternalSearchResult", "InternalSearchResult",
"Disengaged", "Disengaged",
"InternalLoaderMessage", "InternalLoaderMessage",
"Progress",
"RenderCardRequest", "RenderCardRequest",
"AdsQuery", "AdsQuery",
"SemanticSerp", "SemanticSerp",
@ -74,24 +80,24 @@ let allowedMessageTypes = [
//切片id也不知道是啥意思反正官网的更新了 //切片id也不知道是啥意思反正官网的更新了
let sliceIds = [ let sliceIds = [
"chk1cf", "winmuid2tf",
"nopreloadsscf", "sydconfigoptc",
"winlongmsg2tf", "forallv2nscpw",
"perfimpcomb", "allnopvt",
"sugdivdis", "anssuptokenlist",
"sydnoinputt", "tempcacheread",
"wpcssopt", "temptacache",
"wintone2tf", "encjsreftf",
"0404sydicnbs0", "winlongmsgtf",
"405suggbs0", "wrapnoins",
"scctl", "505iccric",
"330uaugs0", "0430dv3s0",
"0329resp", "505scsv5",
"udscahrfon", "scprompt2",
"udstrblm5", "508jbcar",
"404e2ewrt", "425bicb2",
"408nodedups0", "406sportgnds0",
"403tvlansgnd" "427startpm"
] ]
@ -186,4 +192,4 @@ async function getPreviousMessages(){
"messageId": getUuid(), "messageId": getUuid(),
"messageType": "Chat" "messageType": "Chat"
}]; }];
} }

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml"> xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url> <url>
<loc>/en/_posts/</loc> <loc>/en/_posts/</loc>
<lastmod>2023-05-09T22:48:54+08:00</lastmod> <lastmod>2023-05-14T10:54:36+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -45,7 +45,7 @@
/> />
</url><url> </url><url>
<loc>/en/tags/</loc> <loc>/en/tags/</loc>
<lastmod>2023-04-20T10:17:34+08:00</lastmod> <lastmod>2023-05-13T17:17:39+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -58,7 +58,7 @@
/> />
</url><url> </url><url>
<loc>/en/</loc> <loc>/en/</loc>
<lastmod>2023-05-12T14:04:24+08:00</lastmod> <lastmod>2023-05-14T10:54:36+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -84,10 +84,10 @@
/> />
</url><url> </url><url>
<loc>/en/tags/adblock/</loc> <loc>/en/tags/adblock/</loc>
<lastmod>2023-04-13T11:12:32+08:00</lastmod> <lastmod>2023-05-13T17:17:39+08:00</lastmod>
</url><url> </url><url>
<loc>/en/adblock_domain/</loc> <loc>/en/adblock_domain/</loc>
<lastmod>2023-04-13T11:12:32+08:00</lastmod> <lastmod>2023-05-13T17:17:39+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -194,7 +194,7 @@
<lastmod>2023-02-18T14:12:02+08:00</lastmod> <lastmod>2023-02-18T14:12:02+08:00</lastmod>
</url><url> </url><url>
<loc>/en/url2site/</loc> <loc>/en/url2site/</loc>
<lastmod>2023-03-29T07:19:36+08:00</lastmod> <lastmod>2023-05-14T10:54:36+08:00</lastmod>
</url><url> </url><url>
<loc>/en/html5/</loc> <loc>/en/html5/</loc>
<lastmod>2023-02-20T21:49:16+08:00</lastmod> <lastmod>2023-02-20T21:49:16+08:00</lastmod>

View file

@ -12,7 +12,7 @@
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate> <pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid> <guid>/en/adblock_domain/</guid>
<description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked. <description>The enhanced hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect with the setting option &amp;quot;use hosts&amp;quot;.
hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format: hosts The enhanced file &amp;quot;hosts&amp;quot; defines IP addresses/attributes for domains. Each line has the following format:
[[IP address][attributes]][single space][domain name] [[IP address][attributes]][single space][domain name]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be: where &amp;quot;[[IP address][attributes]]&amp;quot; could be:

View file

@ -45,16 +45,18 @@
<p>The <a href="../index.html">uweb</a> internal link &quot;<a href="../links/index.html">i:0m</a>&quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks:</p> <p>The <a href="../index.html">uweb</a> internal link &quot;<a href="../links/index.html">i:0m</a>&quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks:</p>
<ul> <ul>
<li>&quot;i:0m04:[url]&quot;: to treat the [url] content as html with bookmarklet.</li> <li>&quot;i:0m04:[url]&quot;: to treat the [url] content as html with bookmarklet.</li>
<li>&quot;i:0mi:5h:[url]&quot;: to treat the [url] content as html (for download or no-script links etc.)</li> <li>&quot;i:0m?:[url]&quot;: to treat the [url] content as html, handling css/js properly.</li>
<li>&quot;i:0mi:5h?[postfix]::[url]&quot;: auto append query postfix to url to retrieve content.</li> <li>&quot;i:0m?[postfix]:[url]&quot;: auto append query postfix to url to retrieve content.</li>
<li>&quot;i:0mi:5h:[url]&quot;: similar to &quot;i:0m?:[url]&quot;, to treat the [url] content as html (for download or no-script links etc.)</li>
<li>&quot;i:0mi:5h?[postfix]::[url]&quot;: similar to &quot;i:0m?[postfix]:[url]&quot;. auto append query postfix to url to retrieve content.</li>
<li>&quot;i:0mi:5h/[regex]/[replacement]::[url]&quot;: use the result of regular expression replacement to retrieve the content.</li> <li>&quot;i:0mi:5h/[regex]/[replacement]::[url]&quot;: use the result of regular expression replacement to retrieve the content.</li>
</ul> </ul>
<p>For more complicated links such as cloud storage shared links, which need user gestures to reach temporary generated content link, use<br> <p>For more complicated links such as cloud storage shared links, which need user gestures to reach temporary generated content link, use<br>
&quot;i:0m/.../[local.html]:[url]&quot;, where the local file &quot;/.../[local.html]&quot; processes &quot;[url]&quot; as needed.</p> &quot;i:0m/.../[local.html]:[url]&quot;, where the local file &quot;/.../[local.html]&quot; processes &quot;[url]&quot; as needed.</p>
</div> </div>
<p>Last Modified: 29 March 2023<br> <p>Last Modified: 14 May 2023<br>
add bingAI url<br> update bingAI/js/optionsSets.js<br>
<pre></pre> <pre></pre>
</p> </p>
<script> <script>

View file

@ -4,14 +4,14 @@
<sitemap> <sitemap>
<loc>en/sitemap.xml</loc> <loc>en/sitemap.xml</loc>
<lastmod>2023-05-12T14:04:24+08:00</lastmod> <lastmod>2023-05-14T10:54:36+08:00</lastmod>
</sitemap> </sitemap>
<sitemap> <sitemap>
<loc>zh/sitemap.xml</loc> <loc>zh/sitemap.xml</loc>
<lastmod>2023-05-09T22:58:32+08:00</lastmod> <lastmod>2023-05-13T20:07:47+08:00</lastmod>
</sitemap> </sitemap>

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml"> xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url> <url>
<loc>/zh/_posts/</loc> <loc>/zh/_posts/</loc>
<lastmod>2023-05-09T22:58:32+08:00</lastmod> <lastmod>2023-05-13T20:07:47+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"
@ -29,7 +29,7 @@
/> />
</url><url> </url><url>
<loc>/zh/</loc> <loc>/zh/</loc>
<lastmod>2023-05-09T22:58:32+08:00</lastmod> <lastmod>2023-05-13T20:07:47+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"
@ -74,7 +74,7 @@
/> />
</url><url> </url><url>
<loc>/zh/tips/</loc> <loc>/zh/tips/</loc>
<lastmod>2023-05-09T22:58:32+08:00</lastmod> <lastmod>2023-05-13T20:07:47+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"

View file

@ -72,7 +72,7 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<p>方法1:</p> <p>方法1:</p>
<ul> <ul>
<li> <li>
<p>点击一键安装<a href="i:b1Install bing chat UI%0A%0Ai:0hsitecache/www.bing.com/ai.html:../../en/searchurl/bingAI/bing.html%0AInstall bing compose UI%0A%0Ai:0hsitecache/www.bing.com/write.html:../../en/searchurl/bingAI/write.html%0AInstall bing Draw UI%0A%0Ai:0hsitecache/www.bing.com/draw.html:../../en/searchurl/bingAI/draw.html%0AConfig hosts%0A空格后为魔法域名请按需修改%0Ai:0ghosts::www.bing.com;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top%0Ai:52:https://www.bing.com/ai.html%0Ai:52:https://www.bing.com/write.html%0Ai:52:https://www.bing.com/draw.html">必应AI</a></p> <p>点击一键安装<a href="i:b1Install bing chat UI%0A%0Ai:0hsitecache/www.bing.com/ai.html:../../en/searchurl/bingAI/bing.html%0AInstall bing compose UI%0A%0Ai:0hsitecache/www.bing.com/write.html:../../en/searchurl/bingAI/write.html%0AInstall bing Draw UI%0A%0Ai:0hsitecache/www.bing.com/draw.html:../../en/searchurl/bingAI/draw.html%0AConfig hosts%0A空格后为魔法域名请按需修改%0Ai:0ghosts::www.bing.com;Access-Control-Allow-Origin;https://www.bing.com mybing2.xn--xyza.top%0a%0Ai:52:https://www.bing.com/ai.html%0Ai:52:https://www.bing.com/write.html%0Ai:52:https://www.bing.com/draw.html">必应AI</a></p>
</li> </li>
<li> <li>
<p>或者分步安装:<br> <p>或者分步安装:<br>
@ -83,7 +83,7 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<li> <li>
<p>使用: 勾选选项“使用离线缓存”, &quot;使用hosts&quot;<br> <p>使用: 勾选选项“使用离线缓存”, &quot;使用hosts&quot;<br>
点击界面入口<br> 点击界面入口<br>
可配置魔法url, 上述hosts文件作相应修改。 <a href="https://gitee.com/jja8/NewBingGoGo.wikis/blob/master/%E5%88%9B%E5%BB%BA%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5/%E4%BD%BF%E7%94%A8%E5%85%8D%E8%B4%B9%E7%9A%84%E7%9A%84%E4%BA%91%E6%9C%8D%E5%8A%A1%E6%8F%90%E4%BE%9B%E5%95%86%E5%88%9B%E5%BB%BA%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5.md">详情</a></p> 可配置<a href="https://gitee.com/jja8/NewBingGoGo/issues/I6S6BH">魔法url</a>, 上述hosts文件作相应修改。 <a href="https://gitee.com/jja8/NewBingGoGo.wikis/blob/master/%E5%88%9B%E5%BB%BA%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5/%E4%BD%BF%E7%94%A8%E5%85%8D%E8%B4%B9%E7%9A%84%E7%9A%84%E4%BA%91%E6%9C%8D%E5%8A%A1%E6%8F%90%E4%BE%9B%E5%95%86%E5%88%9B%E5%BB%BA%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5.md">详情</a></p>
</li> </li>
</ul> </ul>
</li> </li>
@ -98,8 +98,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
</ul> </ul>
</div> </div>
<p>Last Modified: 9 May 2023<br> <p>Last Modified: 13 May 2023<br>
fix bingAI draw<br> update bingAI/js/optionsSets.js<br>
<pre></pre> <pre></pre>
</p> </p>
<script> <script>