fix README links

This commit is contained in:
James Feng Cao 2024-03-24 09:39:48 +08:00
parent 36008d74e6
commit 5442aa85ef
12 changed files with 90 additions and 56 deletions

View File

@ -10,7 +10,7 @@
(镜像: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [4everland](https://uweb.4everland.app/zh/) [cyclic](https://muweb.cyclic.app/zh/) [zeabur](https://uweb.zeabur.app/zh/) [github](https://torappinfo.github.io/uweb/zh/) [fleek](https://ik4ev-laaaa-aaaad-qd4sq-cai.ic.fleek.co/zh/) [render](https://uweb.onrender.com/zh/) [surge](https://uweb.surge.sh/zh/) [netlify](https://uwebzh.netlify.app/zh/) [deno](https://posh-crab-23.deno.dev/zh/) [kinsta](https://uwebbrowser-t27o4.kinsta.page/zh/) [bitbucket](https://torappinfo.bitbucket.io/zh/) [torapp](https://torapp.eu.org/zh/) [torappv](https://uweb.torapp.eu.org/zh/) [glitch](https://uweb.glitch.me/zh/) [pages](https://muweb.pages.dev/zh/) [vercel](https://uweb.vercel.app/zh/)
<a href="en/mirrors.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../../assets/help_zh.html#mirrors';return false;}}">超微专用镜像</a>)
- <span style="color:red">免魔法国内直接使用<a href="https://uweb.zeabur.app/zh/tips/index.html" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span>
- <span style="color:red">免魔法国内直接使用<a href="zh/tips.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span>
- AI聊天引擎可作为搜索引擎来使用
- 微不到200K。
- 威无穷无尽的功能使用增强后的html5可以实现任何本地应用功能。支持使用js脚本、url服务、shell命令、内部功能链接定制菜单按钮手势; 远程数据皆可成网站。

View File

@ -10,7 +10,7 @@
(镜像: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [4everland](https://uweb.4everland.app/zh/) [cyclic](https://muweb.cyclic.app/zh/) [zeabur](https://uweb.zeabur.app/zh/) [github](https://torappinfo.github.io/uweb/zh/) [fleek](https://ik4ev-laaaa-aaaad-qd4sq-cai.ic.fleek.co/zh/) [render](https://uweb.onrender.com/zh/) [surge](https://uweb.surge.sh/zh/) [netlify](https://uwebzh.netlify.app/zh/) [deno](https://posh-crab-23.deno.dev/zh/) [kinsta](https://uwebbrowser-t27o4.kinsta.page/zh/) [bitbucket](https://torappinfo.bitbucket.io/zh/) [torapp](https://torapp.eu.org/zh/) [torappv](https://uweb.torapp.eu.org/zh/) [glitch](https://uweb.glitch.me/zh/) [pages](https://muweb.pages.dev/zh/) [vercel](https://uweb.vercel.app/zh/)
<a href="en/mirrors.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../../assets/help_zh.html#mirrors';return false;}}">超微专用镜像</a>)
- <span style="color:red">免魔法国内直接使用<a href="https://uweb.zeabur.app/zh/tips/index.html" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span>
- <span style="color:red">免魔法国内直接使用<a href="zh/tips.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span>
- AI聊天引擎可作为搜索引擎来使用
- 微不到200K。
- 威无穷无尽的功能使用增强后的html5可以实现任何本地应用功能。支持使用js脚本、url服务、shell命令、内部功能链接定制菜单按钮手势; 远程数据皆可成网站。

View File

@ -11,7 +11,7 @@
<sitemap>
<loc>/zh/sitemap.xml</loc>
<lastmod>2024-03-24T08:45:30+08:00</lastmod>
<lastmod>2024-03-24T09:38:00+08:00</lastmod>
</sitemap>

View File

@ -6,7 +6,7 @@
<description>Recent content in _Posts on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<lastBuildDate>Sat, 23 Mar 2024 16:45:39 +0800</lastBuildDate>
<lastBuildDate>Sun, 24 Mar 2024 09:35:59 +0800</lastBuildDate>
<atom:link href="/zh/_posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>电视直播</title>
@ -27,7 +27,7 @@
<link>/zh/redirect/</link>
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/redirect/</guid>
<description>全局重定向 长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此时如果全局重定向url为有效网址则所有网络访问被内部重定向至url: &amp;quot;[全局重定向url]+[原始url]&amp;quot;。&#xA;Example: &amp;quot;https://loud-moth-21.deno.dev/&amp;quot;&#xA;使用仓库&amp;quot;https://github.com/torappinfo/fetch&amp;quot;入口&amp;quot;deno.js&amp;quot;部署Deno&#xA;创建免费魔法重定向,说明类似但代码不同&#xA;cloudflare workers 全局重定向代码&#xA;vercel 全局重定向&#xA;重定向文件 &amp;quot;default.redirect&amp;quot; (仅在无有效全局重定向url时生效) 点击添加google recaptcha国内镜像&#xA;使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。&#xA;其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。&#xA;本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。&#xA;配置default.redirect:&#xA;文件每一行格式为:&#xA;域名:正则表达式:替换表达式&#xA;其中正则表达式以java语言规定为准表达式中不能包含&#39;:&#39;。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用但域名会允许CORS跨域访问 (目前仅对&amp;quot;GET&amp;quot; request生效)。&#xA;例子文件内容如下:&#xA;developer.android.com::developer.android.google.cn&#xA;四种使用重定向的方法:&#xA;长按链接&#xA;添加文件&amp;quot;国内镜像.js&amp;quot;至&amp;quot;longclick&amp;quot;目录下。&#xA;文件内容如下:&#xA;//e:%u 其中&amp;quot;e:&amp;quot;为uweb特殊url协议意为&amp;quot;edit&amp;quot;,即&amp;quot;编辑&amp;quot;。当后面紧跟url网址的情况下会重定向网址。&#xA;重启uweb后长按链接弹出菜单选&amp;quot;国内镜像&amp;quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。&#xA;长按工具条图像按钮。&#xA;长按设置,选中&amp;quot;自定义重定向&amp;quot;。&#xA;长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此选项除访问url重定向之外还可重定向网页中一切资源。&#xA;更多重定向网址:&#xA;www.bilibili.com::www.ibilibili.com&#xA;pan.baidu.com::pan.baiduwp.com&#xA;www.docin.com::www.docin365.com&#xA;wenku.baidu.com::wenku.baiduvvv.com&#xA;detail.tmall.com::detail.tmallvvv.com&#xA;detail.m.tmall.com::detail.m.tmallvvv.com&#xA;item.taobao.com::item.taobaovvv.com&#xA;h5.m.taobao.com::h5.m.taobaovvv.com&#xA;jd.com::jdvvv.com&#xA;item.yhd.com::item.yhdvvv.com&#xA;goods.kaola.com::goods.kaolavvv.com&#xA;product.dangdang.com::product.dangdangvvv.com&#xA;item.gome.com.cn::item.gomevvv.com.cn</description>
<description>全局重定向 长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此时如果全局重定向url为有效网址则所有网络访问被内部重定向至url: &amp;quot;[全局重定向url]+[原始url]&amp;quot;。&#xA;Example: &amp;quot;https://loud-moth-21.deno.dev/&amp;quot;&#xA;使用仓库&amp;quot;https://github.com/torappinfo/fetch&amp;quot;入口&amp;quot;deno.js&amp;quot;部署Deno&#xA;创建免费重定向,说明类似但代码不同&#xA;cloudflare workers 全局重定向代码&#xA;vercel 全局重定向&#xA;重定向文件 &amp;quot;default.redirect&amp;quot; (仅在无有效全局重定向url时生效) 点击添加google recaptcha国内镜像&#xA;使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。&#xA;其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。&#xA;本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。&#xA;配置default.redirect:&#xA;文件每一行格式为:&#xA;域名:正则表达式:替换表达式&#xA;其中正则表达式以java语言规定为准表达式中不能包含&#39;:&#39;。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用但域名会允许CORS跨域访问 (目前仅对&amp;quot;GET&amp;quot; request生效)。&#xA;例子文件内容如下:&#xA;developer.android.com::developer.android.google.cn&#xA;四种使用重定向的方法:&#xA;长按链接&#xA;添加文件&amp;quot;国内镜像.js&amp;quot;至&amp;quot;longclick&amp;quot;目录下。&#xA;文件内容如下:&#xA;//e:%u 其中&amp;quot;e:&amp;quot;为uweb特殊url协议意为&amp;quot;edit&amp;quot;,即&amp;quot;编辑&amp;quot;。当后面紧跟url网址的情况下会重定向网址。&#xA;重启uweb后长按链接弹出菜单选&amp;quot;国内镜像&amp;quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。&#xA;长按工具条图像按钮。&#xA;长按设置,选中&amp;quot;自定义重定向&amp;quot;。&#xA;长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此选项除访问url重定向之外还可重定向网页中一切资源。&#xA;更多重定向网址:&#xA;www.bilibili.com::www.ibilibili.com&#xA;pan.baidu.com::pan.baiduwp.com&#xA;www.docin.com::www.docin365.com&#xA;wenku.baidu.com::wenku.baiduvvv.com&#xA;detail.tmall.com::detail.tmallvvv.com&#xA;detail.m.tmall.com::detail.m.tmallvvv.com&#xA;item.taobao.com::item.taobaovvv.com&#xA;h5.m.taobao.com::h5.m.taobaovvv.com&#xA;jd.com::jdvvv.com&#xA;item.yhd.com::item.yhdvvv.com&#xA;goods.kaola.com::goods.kaolavvv.com&#xA;product.dangdang.com::product.dangdangvvv.com&#xA;item.gome.com.cn::item.gomevvv.com.cn</description>
</item>
<item>
<title>常用链接</title>

View File

@ -56,7 +56,7 @@
(镜像: <a href="https://jamesfengcao.gitlab.io/uweb/zh/">gitlab</a> <a href="https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html">repo</a> <a href="https://jamesfengcao.codeberg.page/zh/">codeberg</a> <a href="https://uweb.4everland.app/zh/">4everland</a> <a href="https://muweb.cyclic.app/zh/">cyclic</a> <a href="https://uweb.zeabur.app/zh/">zeabur</a> <a href="https://torappinfo.github.io/uweb/zh/">github</a> <a href="https://ik4ev-laaaa-aaaad-qd4sq-cai.ic.fleek.co/zh/">fleek</a> <a href="https://uweb.onrender.com/zh/">render</a> <a href="https://uweb.surge.sh/zh/">surge</a> <a href="https://uwebzh.netlify.app/zh/">netlify</a> <a href="https://posh-crab-23.deno.dev/zh/">deno</a> <a href="https://uwebbrowser-t27o4.kinsta.page/zh/">kinsta</a> <a href="https://torappinfo.bitbucket.io/zh/">bitbucket</a> <a href="https://torapp.eu.org/zh/">torapp</a> <a href="https://uweb.torapp.eu.org/zh/">torappv</a> <a href="https://uweb.glitch.me/zh/">glitch</a> <a href="https://muweb.pages.dev/zh/">pages</a> <a href="https://uweb.vercel.app/zh/">vercel</a><br>
<a href="en/mirrors.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../../assets/help_zh.html#mirrors';return false;}}">超微专用镜像</a>)</p>
<ul>
<li><span style="color:red">免魔法国内直接使用<a href="https://uweb.zeabur.app/zh/tips/index.html" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span></li>
<li><span style="color:red">免魔法国内直接使用<a href="zh/tips.md" onclick="{let u=location.href; if(u.endsWith('index.html')||u.endsWith('readme/')){location='../tips/index.html';return false;}}">google、翻译、百科等</a></span></li>
<li>AI聊天引擎可作为搜索引擎来使用</li>
<li>不到200K。</li>
<li>无穷无尽的功能使用增强后的html5可以实现任何本地应用功能。支持使用js脚本、url服务、shell命令、内部功能链接定制菜单按钮手势; 远程数据皆可成网站。</li>
@ -90,8 +90,8 @@
<p>配套安装uWeb定制Termux应用可用地址栏作图类似matlab功能、超级计算器无限精度/π的前万位或更多、无限函数、无限常量、符号演算解方程、分解因式、求积分导数、离线字典查找等。譬如地址栏输入sin(x)**5就直接得到函数图形。利用好第三方代码才能真正发挥出uWeb的潜能。</p>
</div>
<p>Last Modified: 23 March 2024<br>
add more AI chatbox as search engines<br>
<p>Last Modified: 24 March 2024<br>
add symbol link static/zh/tips.md<br>
<pre></pre>
</p>

View File

@ -46,16 +46,12 @@
</h1>
<ul class="tags">
<li><a href="../tags/%e9%87%8d%e5%ae%9a%e5%90%91/index.html">重定向</a> </li>
<li><a href="../tags/%e5%9b%bd%e5%a4%96%e7%bd%91%e5%9d%80/index.html">国外网址</a> </li>
</ul>
<h4 id="全局重定向">全局重定向</h4>
<p>长按设置,选中&quot;自定义资源重定向&quot;。此时如果<a href="i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/zh/searchurl/config.html">全局重定向url</a>为有效网址则所有网络访问被内部重定向至url: &quot;[全局重定向url]+[原始url]&quot;</p>
<p>Example: &quot;https://loud-moth-21.deno.dev/&quot;</p>
<p>使用仓库&quot;https://github.com/torappinfo/fetch&quot;入口&quot;deno.js&quot;<a href="https://deno.com/deploy">部署Deno</a></p>
<p><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>
<p><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>
<p><a href="../../en/searchurl/cloudflare/redirect.js">cloudflare workers 全局重定向代码</a><br>
<a href="https://github.com/torappinfo/vercel">vercel 全局重定向</a></p>
<h4 id="重定向文件-defaultredirect-仅在无有效全局重定向url时生效">重定向文件 &quot;default.redirect&quot; (仅在无有效全局重定向url时生效)</h4>
@ -105,8 +101,8 @@ product.dangdang.com::product.dangdangvvv.com<br>
item.gome.com.cn::item.gomevvv.com.cn</p>
</div>
<p>Last Modified: 17 March 2024<br>
add global redirection example url<br>
<p>Last Modified: 24 March 2024<br>
add symbol link static/zh/tips.md<br>
<pre></pre>
</p>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2024-03-23T16:45:39+08:00</lastmod>
<lastmod>2024-03-24T09:35:59+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -46,15 +46,9 @@
hreflang="zh"
href="/zh/tcron/"
/>
</url><url>
<loc>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</loc>
<lastmod>2024-03-17T11:46:48+08:00</lastmod>
</url><url>
<loc>/zh/tags/%E9%87%8D%E5%AE%9A%E5%90%91/</loc>
<lastmod>2024-03-17T11:46:48+08:00</lastmod>
</url><url>
<loc>/zh/redirect/</loc>
<lastmod>2024-03-17T11:46:48+08:00</lastmod>
<lastmod>2024-03-24T09:35:59+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -486,7 +480,7 @@
<lastmod>2023-12-01T15:55:00+08:00</lastmod>
</url><url>
<loc>/zh/readme/</loc>
<lastmod>2024-03-23T16:11:21+08:00</lastmod>
<lastmod>2024-03-24T09:38:00+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -514,7 +508,7 @@
<lastmod>2023-01-28T09:47:55+08:00</lastmod>
</url><url>
<loc>/zh/unlist/</loc>
<lastmod>2024-03-23T16:11:21+08:00</lastmod>
<lastmod>2024-03-24T09:38:00+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -538,6 +532,9 @@
hreflang="zh"
href="/zh/searchcat/"
/>
</url><url>
<loc>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</loc>
<lastmod>2022-09-24T14:06:03+08:00</lastmod>
</url><url>
<loc>/zh/hosts/</loc>
<lastmod>2022-09-24T14:06:03+08:00</lastmod>

View File

@ -25,7 +25,7 @@
<li><a href="%e7%94%b5%e8%a7%86">电视</a> 1</li>
<li><a href="%e5%9b%bd%e5%a4%96%e7%bd%91%e5%9d%80">国外网址</a> 2</li>
<li><a href="%e5%9b%bd%e5%a4%96%e7%bd%91%e5%9d%80">国外网址</a> 1</li>
<li><a href="%e5%89%aa%e8%b4%b4%e6%9d%bf">剪贴板</a> 2</li>
@ -37,8 +37,6 @@
<li><a href="%e4%b8%8b%e8%bd%bd">下载</a> 1</li>
<li><a href="%e9%87%8d%e5%ae%9a%e5%90%91">重定向</a> 1</li>
<li><a href="%e8%b5%84%e6%ba%90">资源</a> 2</li>
</ul>

View File

@ -15,20 +15,6 @@
<guid>/zh/tags/%E7%94%B5%E8%A7%86/</guid>
<description></description>
</item>
<item>
<title>国外网址</title>
<link>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</link>
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</guid>
<description></description>
</item>
<item>
<title>重定向</title>
<link>/zh/tags/%E9%87%8D%E5%AE%9A%E5%90%91/</link>
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/tags/%E9%87%8D%E5%AE%9A%E5%90%91/</guid>
<description></description>
</item>
<item>
<title>Css</title>
<link>/zh/tags/css/</link>
@ -134,6 +120,13 @@
<guid>/zh/tags/pc/</guid>
<description></description>
</item>
<item>
<title>国外网址</title>
<link>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</guid>
<description></description>
</item>
<item>
<title>下载</title>
<link>/zh/tags/%E4%B8%8B%E8%BD%BD/</link>

View File

@ -40,12 +40,6 @@
<h1 class="title">国外网址</h1>
<ul class="posts">
<li class="post">
<a href="../../redirect/index.html">
<span>重定向网址</span>
</a>
</li>
<li class="post">
<a href="../../hosts/index.html">
<span>加速访问国外网站</span>

View File

@ -6,15 +6,7 @@
<description>Recent content in 国外网址 on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh</language>
<lastBuildDate>Sun, 17 Mar 2024 11:46:48 +0800</lastBuildDate>
<atom:link href="/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>重定向网址</title>
<link>/zh/redirect/</link>
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/redirect/</guid>
<description>全局重定向 长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此时如果全局重定向url为有效网址则所有网络访问被内部重定向至url: &amp;quot;[全局重定向url]+[原始url]&amp;quot;。&#xA;Example: &amp;quot;https://loud-moth-21.deno.dev/&amp;quot;&#xA;使用仓库&amp;quot;https://github.com/torappinfo/fetch&amp;quot;入口&amp;quot;deno.js&amp;quot;部署Deno&#xA;创建免费魔法重定向,说明类似但代码不同&#xA;cloudflare workers 全局重定向代码&#xA;vercel 全局重定向&#xA;重定向文件 &amp;quot;default.redirect&amp;quot; (仅在无有效全局重定向url时生效) 点击添加google recaptcha国内镜像&#xA;使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。&#xA;其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。&#xA;本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。&#xA;配置default.redirect:&#xA;文件每一行格式为:&#xA;域名:正则表达式:替换表达式&#xA;其中正则表达式以java语言规定为准表达式中不能包含&#39;:&#39;。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用但域名会允许CORS跨域访问 (目前仅对&amp;quot;GET&amp;quot; request生效)。&#xA;例子文件内容如下:&#xA;developer.android.com::developer.android.google.cn&#xA;四种使用重定向的方法:&#xA;长按链接&#xA;添加文件&amp;quot;国内镜像.js&amp;quot;至&amp;quot;longclick&amp;quot;目录下。&#xA;文件内容如下:&#xA;//e:%u 其中&amp;quot;e:&amp;quot;为uweb特殊url协议意为&amp;quot;edit&amp;quot;,即&amp;quot;编辑&amp;quot;。当后面紧跟url网址的情况下会重定向网址。&#xA;重启uweb后长按链接弹出菜单选&amp;quot;国内镜像&amp;quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。&#xA;长按工具条图像按钮。&#xA;长按设置,选中&amp;quot;自定义重定向&amp;quot;。&#xA;长按设置,选中&amp;quot;自定义资源重定向&amp;quot;。此选项除访问url重定向之外还可重定向网页中一切资源。&#xA;更多重定向网址:&#xA;www.bilibili.com::www.ibilibili.com&#xA;pan.baidu.com::pan.baiduwp.com&#xA;www.docin.com::www.docin365.com&#xA;wenku.baidu.com::wenku.baiduvvv.com&#xA;detail.tmall.com::detail.tmallvvv.com&#xA;detail.m.tmall.com::detail.m.tmallvvv.com&#xA;item.taobao.com::item.taobaovvv.com&#xA;h5.m.taobao.com::h5.m.taobaovvv.com&#xA;jd.com::jdvvv.com&#xA;item.yhd.com::item.yhdvvv.com&#xA;goods.kaola.com::goods.kaolavvv.com&#xA;product.dangdang.com::product.dangdangvvv.com&#xA;item.gome.com.cn::item.gomevvv.com.cn</description>
</item>
<item>
<title>加速访问国外网站</title>
<link>/zh/hosts/</link>

64
zh/tips.md Normal file
View File

@ -0,0 +1,64 @@
---
title: 重定向网址
date: 2023-04-11
---
#### 全局重定向
长按设置,选中"自定义资源重定向"。此时如果<a href="i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/zh/searchurl/config.html">全局重定向url</a>为有效网址则所有网络访问被内部重定向至url: "[全局重定向url]+[原始url]"。
Example: "https://loud-moth-21.deno.dev/"
使用仓库"https://github.com/torappinfo/fetch"入口"deno.js"[部署Deno](https://deno.com/deploy)
[创建免费重定向,说明类似但代码不同](https://gitee.com/jja8/NewBingGoGo.wikis/blob/master/创建魔法链接/使用免费的的云服务提供商创建魔法链接.md)
[cloudflare workers 全局重定向代码](../../en/searchurl/cloudflare/redirect.js)
[vercel 全局重定向](https://github.com/torappinfo/vercel)
#### 重定向文件 "default.redirect" (仅在无有效全局重定向url时生效)
<a target="_self" href="i:0gdefault.redirect:../searchurl/txt/redirect.cfg">点击添加google recaptcha国内镜像</a>
使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。
其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。
本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。
配置default.redirect:
文件每一行格式为:
域名:正则表达式:替换表达式
其中正则表达式以java语言规定为准表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用但域名会允许CORS跨域访问 (目前仅对"GET" request生效)。
例子文件内容如下:
developer.android.com::developer.android.google.cn
四种使用重定向的方法:
- 长按链接
添加文件"国内镜像.js"至"longclick"目录下。
文件内容如下:
<pre>//e:%u</pre>
其中"e:"为uweb特殊url协议意为"edit",即"编辑"。当后面紧跟url网址的情况下会重定向网址。
重启uweb后长按链接弹出菜单选"国内镜像",浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。
- [长按工具条图像按钮](../urls/index.html)。
- 长按设置,选中"自定义重定向"。
- 长按设置,选中"自定义资源重定向"。此选项除访问url重定向之外还可重定向网页中一切资源。
更多重定向网址:
www.bilibili.com::www.ibilibili.com
pan.baidu.com::pan.baiduwp.com
www.docin.com::www.docin365.com
wenku.baidu.com::wenku.baiduvvv.com
detail.tmall.com::detail.tmallvvv.com
detail.m.tmall.com::detail.m.tmallvvv.com
item.taobao.com::item.taobaovvv.com
h5.m.taobao.com::h5.m.taobaovvv.com
jd.com::jdvvv.com
item.yhd.com::item.yhdvvv.com
goods.kaola.com::goods.kaolavvv.com
product.dangdang.com::product.dangdangvvv.com
item.gome.com.cn::item.gomevvv.com.cn