mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
76 lines
4.1 KiB
XML
76 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||
<channel>
|
||
<title>国外网址 on </title>
|
||
<link>/zh/tags/%E5%9B%BD%E5%A4%96%E7%BD%91%E5%9D%80/</link>
|
||
<description>Recent content in 国外网址 on </description>
|
||
<generator>Hugo -- gohugo.io</generator>
|
||
<lastBuildDate>Mon, 25 Apr 2022 00:00:00 +0000</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>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
|
||
|
||
<guid>/zh/redirect/</guid>
|
||
<description>github mirror:fastgit
|
||
github mirror 2
|
||
github mirror 3
|
||
点击添加google recaptcha国内镜像
|
||
使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。
|
||
其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。
|
||
本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。
|
||
配置/sdcard/uweb/default.redirect:
|
||
文件每一行格式为:
|
||
域名:正则表达式:替换表达式
|
||
其中正则表达式以java语言规定为准,表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用,但域名会允许CORS跨域访问 (目前仅对&quot;GET&quot; request生效)。
|
||
例子文件内容如下:
|
||
developer.android.com::developer.android.google.cn
|
||
四种使用重定向的方法:
|
||
长按链接
|
||
添加文件&quot;国内镜像.js&quot;至&quot;/sdcard/uweb/longclick&quot;目录下。
|
||
文件内容如下:
|
||
//e:%u 其中&quot;e:&quot;为uweb特殊url协议,意为&quot;edit&quot;,即&quot;编辑&quot;。当后面紧跟url网址的情况下会重定向网址。
|
||
重启uweb后长按链接弹出菜单选&quot;国内镜像&quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。
|
||
长按工具条图像按钮。
|
||
长按设置,选中&quot;自定义重定向&quot;。
|
||
长按设置,选中&quot;自定义资源重定向&quot;。此选项除访问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</description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>加速访问国外网站</title>
|
||
<link>/zh/hosts/</link>
|
||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||
|
||
<guid>/zh/hosts/</guid>
|
||
<description>不少国外网站本身虽可访问,但由于网站需要下载其它网址的资源而导致无法访问。根域名屏蔽可屏蔽文件中域名的一切子域名、孙域名、......,从而主动排除这些网址,最终允许浏览器快速访问。
|
||
使用Android端uweb浏览器。
|
||
域名文件内容如下:
|
||
googleadservices.com
|
||
googlesyndication.com
|
||
adsense.com
|
||
googleapis.com
|
||
google-analytics.com
|
||
googletagservices.com
|
||
twitter.com
|
||
facebook.com
|
||
fbcdn.net
|
||
其它国外网址访问技巧:
|
||
尝试关闭javascript, 譬如程序员网站stackoverflow.com在关闭javascript的情况下国内一般均可快速访问。 关闭网页图片 </description>
|
||
</item>
|
||
|
||
</channel>
|
||
</rss>
|