add resource redirection

master
James Feng Cao 2 years ago
parent 765740a73f
commit ad12551ed7

@ -110,6 +110,22 @@ Toggle all checkboxes in forms
Enable selection</description>
</item>
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/redirect/</guid>
<description>Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
github mirror:fastgit
github mirror 2
google recaptcha mirror
Each line of the file &amp;quot;default.redirect&amp;quot; has the following format:
[domain name]:[regular expression]:[replacement expression]
in which &amp;quot;[regular expression]&amp;quot; is as defined by java language, and cannot have &amp;quot;:&amp;quot; inside; if empty, it defaults to be same as &amp;quot;[domain name]&amp;quot;.
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &amp;quot;url redirection&amp;quot;.</description>
</item>
<item>
<title>Text selection</title>
<link>/en/pccopy/</link>

@ -125,6 +125,12 @@
</a>
</li>
<li class="post">
<a href="redirect/index.html">
<span>Resource redirection</span>
</a>
</li>
<li class="post">
<a href="pccopy/index.html">
<span>Text selection</span>

@ -64,7 +64,7 @@ Note: &#34;Engines&#34; needs file &#34;engine.search&#34;whose format is sam
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
<guid>/en/sitemap/</guid>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
</item>
<item>
@ -217,6 +217,22 @@ Performance
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &amp;quot;search&amp;quot; button to popup the menu.</description>
</item>
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/redirect/</guid>
<description>Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
github mirror:fastgit
github mirror 2
google recaptcha mirror
Each line of the file &amp;quot;default.redirect&amp;quot; has the following format:
[domain name]:[regular expression]:[replacement expression]
in which &amp;quot;[regular expression]&amp;quot; is as defined by java language, and cannot have &amp;quot;:&amp;quot; inside; if empty, it defaults to be same as &amp;quot;[domain name]&amp;quot;.
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &amp;quot;url redirection&amp;quot;.</description>
</item>
<item>
<title>Text selection</title>
<link>/en/pccopy/</link>

@ -0,0 +1,69 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
<title>Resource redirection</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
</script>
</head>
<body>
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
<nav>
</nav>
</header>
<br />
<div class="container">
<h1 class="title">Resource redirection
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
<li><a href="../tags/redirection">redirection</a> </li>
</ul>
<p>Click the following links to append mirrors to the file &quot;default.redirect&quot;:<br>
<a href="i:0gdefault.redirect::github.com::hub.fastgit.xyz%0A">github mirror:fastgit</a><br>
<a href="i:0gdefault.redirect::github.com::hub.0z.gs%0A">github mirror 2</a></p>
<p><a target="_self" href="i:0gdefault.redirect:http://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/txt/redirect.cfg">google recaptcha mirror</a></p>
<p>Each line of the file &quot;default.redirect&quot; has the following format:<br>
[domain name]:[regular expression]:[replacement expression]</p>
<p>in which &quot;[regular expression]&quot; is as defined by java language, and cannot have &quot;:&quot; inside; if empty, it defaults to be same as &quot;[domain name]&quot;.</p>
<h4 id="ways-to-enable-redirection">Ways to enable redirection:</h4>
<ul>
<li><a href="../urls/index.html">Long the image button</a></li>
<li>Long pressing the setting button, enable the option &quot;url redirection&quot;.</li>
<li>Long pressing the setting button, enable the option &quot;Resource redirection&quot;.</li>
</ul>
</div>
</body>
</html>

@ -202,6 +202,22 @@
hreflang="en"
href="/en/rjs/"
/>
</url><url>
<loc>/en/tags/redirection/</loc>
<lastmod>2022-04-25T00:00:00+00:00</lastmod>
</url><url>
<loc>/en/redirect/</loc>
<lastmod>2022-04-25T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/redirect/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/redirect/"
/>
</url><url>
<loc>/en/tags/clipboard/</loc>
<lastmod>2022-04-23T00:00:00+00:00</lastmod>

@ -73,6 +73,7 @@
<ul>
<li><a href="../adblock/index.html">AD blocking</a></li>
<li><a href="../globalcss/index.html">CSS styles</a></li>
<li><a href="../redirect/index.html">Redirection</a></li>
<li><a href="../sitejs/index.html">Javascript and CSS for domains</a></li>
</ul>
<h5 id="tools">Tools</h5>

@ -15,6 +15,8 @@
<li><a href="PC">PC</a> 1</li>
<li><a href="redirection">redirection</a> 1</li>
<li><a href="search%20engine">search engine</a> 1</li>
<li><a href="ssh">ssh</a> 1</li>

@ -15,6 +15,15 @@
<description></description>
</item>
<item>
<title>redirection</title>
<link>/en/tags/redirection/</link>
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/tags/redirection/</guid>
<description></description>
</item>
<item>
<title>clipboard</title>
<link>/en/tags/clipboard/</link>

@ -0,0 +1,53 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
<title>redirection</title>
<script type="text/javascript">
function findLang(){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
return i;
}
return 0;
}
function nav2(page){
let i = findLang();
location.href = location.href.substring(0,i+1)+page;
}
function nav2Lang(lang){
let i = findLang();
let href = location.href;
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
}
</script>
</head>
<body>
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<nav>
</nav>
</header>
<br />
<div class="container">
<h1 class="title">redirection</h1>
<ul class="posts">
<li class="post">
<a href="../../redirect">
<span>Resource redirection</span>
</a>
</li>
</ul>
<ul>
</div>
</body>
</html>

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>redirection on </title>
<link>/en/tags/redirection/</link>
<description>Recent content in redirection on </description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Mon, 25 Apr 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/redirection/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Resource redirection</title>
<link>/en/redirect/</link>
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/redirect/</guid>
<description>Click the following links to append mirrors to the file &amp;quot;default.redirect&amp;quot;:
github mirror:fastgit
github mirror 2
google recaptcha mirror
Each line of the file &amp;quot;default.redirect&amp;quot; has the following format:
[domain name]:[regular expression]:[replacement expression]
in which &amp;quot;[regular expression]&amp;quot; is as defined by java language, and cannot have &amp;quot;:&amp;quot; inside; if empty, it defaults to be same as &amp;quot;[domain name]&amp;quot;.
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &amp;quot;url redirection&amp;quot;.</description>
</item>
</channel>
</rss>

@ -32,7 +32,7 @@ Note: &#34;Engines&#34; needs file &#34;engine.search&#34;whose format is sam
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
<guid>/en/sitemap/</guid>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
<description>UI Search engines UI (gitee) Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Javascript and CSS for domains Tools Bookmarklets Custom file handling Html5 application Termux Miscellaneous Configuration files Tips Manual </description>
</item>
<item>

@ -30,6 +30,10 @@
<header class='header'>
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
<a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
<nav>
</nav>
</header>
@ -71,7 +75,7 @@ developer.android.com::developer.android.google.cn</p>
<p>重启uweb后长按链接弹出菜单选&quot;国内镜像&quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。</p>
</li>
<li>
<p><a href="../urls">长按工具条图像按钮</a></p>
<p><a href="../urls/index.html">长按工具条图像按钮</a></p>
</li>
<li>
<p>长按设置,选中&quot;自定义重定向&quot;</p>

@ -217,6 +217,16 @@
</url><url>
<loc>/zh/redirect/</loc>
<lastmod>2022-04-25T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/redirect/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/redirect/"
/>
</url><url>
<loc>/zh/tags/pc/</loc>
<lastmod>2022-04-23T00:00:00+00:00</lastmod>

Loading…
Cancel
Save