mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
simplify bingAI installation
This commit is contained in:
parent
a7caf970e6
commit
ed25fd1dd7
15 changed files with 43 additions and 44 deletions
|
@ -14,9 +14,8 @@
|
|||
<guid>/en/redirect/</guid>
|
||||
<description>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.</description>
|
||||
Global redirection redirects cookies with the setting option &quot;Hide certificate errors&quot;, so use the option with care.
|
||||
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -27,8 +26,7 @@ Each line of the file &quot;default.</description>
|
|||
<guid>/en/offlinecache/</guid>
|
||||
<description>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.
|
||||
bingChat UI Install bingChat UI ai.html for censored area (bingChat UI)
|
||||
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.
|
||||
Click to install link menu to copy &quot;bing.</description>
|
||||
Serverless local sites Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;: support web extensions (.crx for chrome &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 &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
|
||||
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
hosts The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
[[IP address][attributes]][single space][domain name]
|
||||
where &quot;[[IP address][attributes]]&quot; could be:
|
||||
ipv4 address such as:
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
|
||||
</ul>
|
||||
<p>The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" 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">"hosts"</a> defines IP addresses/attributes for domains. Each line has the following format:<br>
|
||||
[[IP address][attributes]][single space][domain name]</p>
|
||||
<p>where "[[IP address][attributes]]" 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 "uweb.torapp.eu.org" is just a proxy of "www.bing.com", and as such, the cookies of "www.bing.com" would be used for "uweb.torapp.eu.org".</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">"default.hosts"</a> blocks whole domain trees including all descendant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" 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 "http(s)://"]<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>
|
||||
|
||||
|
|
10
en/index.xml
10
en/index.xml
|
@ -14,9 +14,8 @@
|
|||
<guid>/en/redirect/</guid>
|
||||
<description>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.</description>
|
||||
Global redirection redirects cookies with the setting option &quot;Hide certificate errors&quot;, so use the option with care.
|
||||
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -27,8 +26,7 @@ Each line of the file &quot;default.</description>
|
|||
<guid>/en/offlinecache/</guid>
|
||||
<description>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.
|
||||
bingChat UI Install bingChat UI ai.html for censored area (bingChat UI)
|
||||
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.
|
||||
Click to install link menu to copy &quot;bing.</description>
|
||||
Serverless local sites Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;: support web extensions (.crx for chrome &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 &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
|
||||
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
hosts The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
[[IP address][attributes]][single space][domain name]
|
||||
where &quot;[[IP address][attributes]]&quot; could be:
|
||||
ipv4 address such as:
|
||||
|
|
|
@ -50,8 +50,6 @@
|
|||
<p>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.</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 "mybing2.xn--xyza.top" needs "bing.com" 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 "bing.com" cookies to "mybing2.xn--xyza.top"</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 "sitecache/local/"</a>: support web extensions (.crx for chrome & .xpi for firefox).</p>
|
||||
<p>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.</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>
|
||||
|
||||
|
|
|
@ -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 "Resource redirection".</p>
|
||||
<p>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.</p>
|
||||
<p><span style="color:red">Global redirection redirects cookies with the setting option "Hide certificate errors"</span>, so use the option with care.</p>
|
||||
<h4 id="defaultredirect-valid-only-without-global-redirection-url">"default.redirect" (valid only without global redirection url)</h4>
|
||||
<p>Click the following links to append mirrors to the file "default.redirect":<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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<guid>/en/adblock_domain/</guid>
|
||||
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
|
||||
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
hosts The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
|
||||
[[IP address][attributes]][single space][domain name]
|
||||
where &quot;[[IP address][attributes]]&quot; could be:
|
||||
ipv4 address such as:
|
||||
|
|
|
@ -14,9 +14,8 @@
|
|||
<guid>/en/redirect/</guid>
|
||||
<description>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.</description>
|
||||
Global redirection redirects cookies with the setting option &quot;Hide certificate errors&quot;, so use the option with care.
|
||||
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -108,7 +108,6 @@ c[cssFlag]: For example, &quot;c12&quot; will apply the third and fourth
|
|||
总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。
|
||||
方法1: bingChat自带魔法直接界面
|
||||
要求: 安装界面html
|
||||
复制bing.com cookies至魔法域名
|
||||
勾选选项“使用离线缓存”, &quot;使用hosts&quot;
|
||||
hosts文件内添加一行(允许发送cookie至魔法url):
|
||||
Click to append to &quot;hosts&quot;, edit the last part as magic url domain
|
||||
|
|
|
@ -108,7 +108,6 @@ c[cssFlag]: For example, &quot;c12&quot; will apply the third and fourth
|
|||
总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。
|
||||
方法1: bingChat自带魔法直接界面
|
||||
要求: 安装界面html
|
||||
复制bing.com cookies至魔法域名
|
||||
勾选选项“使用离线缓存”, &quot;使用hosts&quot;
|
||||
hosts文件内添加一行(允许发送cookie至魔法url):
|
||||
Click to append to &quot;hosts&quot;, edit the last part as magic url domain
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -53,10 +53,9 @@
|
|||
<li>
|
||||
<p>方法1: <a href="../../en/offlinecache/index.html">bingChat自带魔法直接界面</a><br>
|
||||
要求: 安装界面html<br>
|
||||
复制bing.com cookies至魔法域名<br>
|
||||
勾选选项“使用离线缓存”, "使用hosts"</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 "hosts", 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 "hosts", 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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue