simplify bingAI installation

This commit is contained in:
James Feng Cao 2023-04-13 11:13:46 +08:00
parent a7caf970e6
commit ed25fd1dd7
15 changed files with 43 additions and 44 deletions

View file

@ -14,9 +14,8 @@
<guid>/en/redirect/</guid>
<description>Global redirection Global redirection is enabled with the setting option &amp;quot;Resource redirection&amp;quot;.
When a valid global redirection url is set, the &amp;quot;default.redirect&amp;quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
google recaptcha mirror
Each line of the file &amp;quot;default.</description>
Global redirection redirects cookies with the setting option &amp;quot;Hide certificate errors&amp;quot;, so use the option with care.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.</description>
</item>
<item>
@ -27,8 +26,7 @@ Each line of the file &amp;quot;default.</description>
<guid>/en/offlinecache/</guid>
<description>Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, the url path part]&amp;quot; are loaded first before reaching the network.
bingChat UI Install bingChat UI ai.html for censored area (bingChat UI)
The default proxy &amp;quot;mybing2.xn--xyza.top&amp;quot; needs &amp;quot;bing.com&amp;quot; cookies to establish chat. So copy the cookie before accessing the above UI.
Click to install link menu to copy &amp;quot;bing.</description>
Serverless local sites Click to install url service that extracts web apps to the folder &amp;quot;sitecache/local/&amp;quot;: support web extensions (.crx for chrome &amp;amp; .xpi for firefox).</description>
</item>
<item>
@ -60,7 +58,7 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<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.
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]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be:
ipv4 address such as:

View file

@ -50,6 +50,7 @@
</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>
<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>
[[IP address][attributes]][single space][domain name]</p>
<p>where &quot;[[IP address][attributes]]&quot; could be:</p>
@ -76,15 +77,22 @@ Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credential
<p>IP address and response headers, separeded by ';', Ex.:<br>
104.21.8.195;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true uweb.torapp.eu.org</p>
</li>
<li>
<p>IP address, real domain name and response headers (Experimental), separeded by ';', Ex.:<br>
104.21.8.195;www.bing.com uweb.torapp.eu.org</p>
<p>which indicates the domain &quot;uweb.torapp.eu.org&quot; is just a proxy of &quot;www.bing.com&quot;, and as such, the cookies of &quot;www.bing.com&quot; would be used for &quot;uweb.torapp.eu.org&quot;.</p>
<p>To make life easier, use lower-case domain name (the first letter should not be a digital) and capitalize the first letter of response header names.</p>
</li>
</ul>
<h4 id="defaulthosts">default.hosts</h4>
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">&quot;default.hosts&quot;</a> blocks whole domain trees including all descendant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.com&quot; and &quot;finance.yahoo.com&quot;. If the length of the last 2 segments is less than 7, such as &quot;com.pl&quot;, then it is treated as one segment, so domains like &quot;xxx.xxx.com.pl&quot; are also valid in the hosts file.</p>
<p>Each line of the hosts file has the following format:<br>
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without &quot;http(s)://&quot;]<br>
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>
<p>Last Modified: 8 April 2023<br>
add cloudflare/bing.js<br>
<p>Last Modified: 13 April 2023<br>
simplify bingAI installation<br>
<pre></pre>
</p>

View file

@ -14,9 +14,8 @@
<guid>/en/redirect/</guid>
<description>Global redirection Global redirection is enabled with the setting option &amp;quot;Resource redirection&amp;quot;.
When a valid global redirection url is set, the &amp;quot;default.redirect&amp;quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
google recaptcha mirror
Each line of the file &amp;quot;default.</description>
Global redirection redirects cookies with the setting option &amp;quot;Hide certificate errors&amp;quot;, so use the option with care.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.</description>
</item>
<item>
@ -27,8 +26,7 @@ Each line of the file &amp;quot;default.</description>
<guid>/en/offlinecache/</guid>
<description>Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, the url path part]&amp;quot; are loaded first before reaching the network.
bingChat UI Install bingChat UI ai.html for censored area (bingChat UI)
The default proxy &amp;quot;mybing2.xn--xyza.top&amp;quot; needs &amp;quot;bing.com&amp;quot; cookies to establish chat. So copy the cookie before accessing the above UI.
Click to install link menu to copy &amp;quot;bing.</description>
Serverless local sites Click to install url service that extracts web apps to the folder &amp;quot;sitecache/local/&amp;quot;: support web extensions (.crx for chrome &amp;amp; .xpi for firefox).</description>
</item>
<item>
@ -60,7 +58,7 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<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.
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]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be:
ipv4 address such as:

View file

@ -50,8 +50,6 @@
<p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, the url path part]&quot; are loaded first before reaching the network.</p>
<h4 id="bingchat-ui">bingChat UI</h4>
<p><a href="i:0hsitecache/www.bing.com/ai.html:https://gitee.com/jamesfengcao/uweb/raw/master/en/searchurl/bingAI/bing.html">Install bingChat UI ai.html for censored area</a> (<a href="https://www.bing.com/ai.html">bingChat UI</a>)</p>
<p>The default proxy &quot;mybing2.xn--xyza.top&quot; needs &quot;bing.com&quot; cookies to establish chat. So copy the cookie before accessing the above UI.<br>
<a href="i:0gdefault.link::cookiecopy_bing::0cchttps://www.bing.com:https://mybing2.xn--xyza.top%0A">Click to install link menu to copy &quot;bing.com&quot; cookies to &quot;mybing2.xn--xyza.top&quot;</a></p>
<h4 id="serverless-local-sites">Serverless local sites</h4>
<p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p>
<p>Any folder under &quot;sitecache&quot; can be visited as a local site. Urls with search queries can be dynamically processed by the js/wasm code in the local file.</p>
@ -66,8 +64,8 @@
</div>
</div>
<p>Last Modified: 1 April 2023<br>
add bingAI UI<br>
<p>Last Modified: 13 April 2023<br>
simplify bingAI installation<br>
<pre></pre>
</p>

View file

@ -52,6 +52,7 @@
<h4 id="global-redirection">Global redirection</h4>
<p><a href="i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/en/searchurl/config.html">Global redirection</a> is enabled with the setting option &quot;Resource redirection&quot;.</p>
<p>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.</p>
<p><span style="color:red">Global redirection redirects cookies with the setting option &quot;Hide certificate errors&quot;</span>, so use the option with care.</p>
<h4 id="defaultredirect-valid-only-without-global-redirection-url">&quot;default.redirect&quot; (valid only without global redirection url)</h4>
<p>Click the following links to append mirrors to the file &quot;default.redirect&quot;:<br>
<a target="_self" href="i:0gdefault.redirect:../../zh/searchurl/txt/redirect.cfg">google recaptcha mirror</a></p>
@ -67,7 +68,7 @@
</div>
<p>Last Modified: 12 April 2023<br>
global redirection support in config.js<br>
refine global redirection cookie support<br>
<pre></pre>
</p>

View file

@ -1,4 +1,4 @@
let labels = ["Global redirect url","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
let labels = ["<a href='https://jamesfengcao.codeberg.page/en/redirect/index.html'>Global redirect url</a>","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
let d=document;

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -16,10 +16,10 @@
/>
</url><url>
<loc>/en/tags/redirection/</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-12T23:33:09+08:00</lastmod>
</url><url>
<loc>/en/redirect/</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-12T23:33:09+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -32,7 +32,7 @@
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -45,7 +45,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/offlinecache/</loc>
<lastmod>2023-04-01T21:06:06+08:00</lastmod>
<lastmod>2023-04-13T11:00:50+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -84,10 +84,10 @@
/>
</url><url>
<loc>/en/tags/adblock/</loc>
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
</url><url>
<loc>/en/adblock_domain/</loc>
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View file

@ -13,7 +13,7 @@
<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.
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]
where &amp;quot;[[IP address][attributes]]&amp;quot; could be:
ipv4 address such as:

View file

@ -14,9 +14,8 @@
<guid>/en/redirect/</guid>
<description>Global redirection Global redirection is enabled with the setting option &amp;quot;Resource redirection&amp;quot;.
When a valid global redirection url is set, the &amp;quot;default.redirect&amp;quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
google recaptcha mirror
Each line of the file &amp;quot;default.</description>
Global redirection redirects cookies with the setting option &amp;quot;Hide certificate errors&amp;quot;, so use the option with care.
&amp;quot;default.redirect&amp;quot; (valid only without global redirection url) Click the following links to append mirrors to the file &amp;quot;default.</description>
</item>
</channel>

View file

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
<lastmod>2023-04-13T11:12:32+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-04-12T13:54:50+08:00</lastmod>
<lastmod>2023-04-13T11:00:13+08:00</lastmod>
</sitemap>

View file

@ -108,7 +108,6 @@ c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth
总要求:长按底部&amp;quot;PC&amp;quot;按钮选择user-agent为&amp;quot;edge&amp;quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。
方法1: bingChat自带魔法直接界面
要求: 安装界面html
复制bing.com cookies至魔法域名
勾选选项“使用离线缓存”, &amp;quot;使用hosts&amp;quot;
hosts文件内添加一行允许发送cookie至魔法url:
Click to append to &amp;quot;hosts&amp;quot;, edit the last part as magic url domain

View file

@ -108,7 +108,6 @@ c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth
总要求:长按底部&amp;quot;PC&amp;quot;按钮选择user-agent为&amp;quot;edge&amp;quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。
方法1: bingChat自带魔法直接界面
要求: 安装界面html
复制bing.com cookies至魔法域名
勾选选项“使用离线缓存”, &amp;quot;使用hosts&amp;quot;
hosts文件内添加一行允许发送cookie至魔法url:
Click to append to &amp;quot;hosts&amp;quot;, edit the last part as magic url domain

View file

@ -1,4 +1,4 @@
let labels = ["全局重定向网址","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
let labels = ["<a href='https://jamesfengcao.codeberg.page/zh/redirect/index.html'>全局重定向网址</a>","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
let d=document;

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-04-12T13:54:50+08:00</lastmod>
<lastmod>2023-04-13T11:00:13+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-04-12T13:54:50+08:00</lastmod>
<lastmod>2023-04-13T11:00:13+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -74,7 +74,7 @@
/>
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2023-04-07T14:38:07+08:00</lastmod>
<lastmod>2023-04-13T11:00:13+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View file

@ -53,10 +53,9 @@
<li>
<p>方法1: <a href="../../en/offlinecache/index.html">bingChat自带魔法直接界面</a><br>
要求: 安装界面html<br>
复制bing.com cookies至魔法域名<br>
勾选选项“使用离线缓存”, &quot;使用hosts&quot;</p>
<p>hosts文件内添加一行允许发送cookie至魔法url:<br>
<a href="i:0ghosts::Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top%0A">Click to append to &quot;hosts&quot;, edit the last part as magic url domain</a></p>
<a href="i:0ghosts::www.bing.com;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top%0A">Click to append to &quot;hosts&quot;, edit the last part as magic url domain</a></p>
<p>点击界面入口<br>
可配置魔法url, 上述hosts文件作相应修改, 复制bing.com cookies至魔法域名。 <a href="https://gitee.com/jja8/NewBingGoGo/blob/master/docs/%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5.md">详情</a></p>
</li>
@ -86,8 +85,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<a href="../filenames">配置文件列表</a>中直接点击文件名即可编辑。</p>
</div>
<p>Last Modified: 7 April 2023<br>
bingAI: minor optimization<br>
<p>Last Modified: 13 April 2023<br>
simplify bingAI installation<br>
<pre></pre>
</p>