mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add resource redirection
This commit is contained in:
parent
765740a73f
commit
ad12551ed7
13 changed files with 231 additions and 3 deletions
|
@ -110,6 +110,22 @@ Toggle all checkboxes in forms
|
||||||
Enable selection</description>
|
Enable selection</description>
|
||||||
</item>
|
</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 &quot;default.redirect&quot;:
|
||||||
|
github mirror:fastgit
|
||||||
|
github mirror 2
|
||||||
|
google recaptcha mirror
|
||||||
|
Each line of the file &quot;default.redirect&quot; has the following format:
|
||||||
|
[domain name]:[regular expression]:[replacement expression]
|
||||||
|
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;.
|
||||||
|
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Text selection</title>
|
<title>Text selection</title>
|
||||||
<link>/en/pccopy/</link>
|
<link>/en/pccopy/</link>
|
||||||
|
|
|
@ -125,6 +125,12 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="post">
|
||||||
|
<a href="redirect/index.html">
|
||||||
|
<span>Resource redirection</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<a href="pccopy/index.html">
|
<a href="pccopy/index.html">
|
||||||
<span>Text selection</span>
|
<span>Text selection</span>
|
||||||
|
|
18
en/index.xml
18
en/index.xml
|
@ -64,7 +64,7 @@ Note: "Engines" needs file "engine.search",whose format is sam
|
||||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>/en/sitemap/</guid>
|
<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>
|
||||||
|
|
||||||
<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 &quot;search&quot; button to popup the menu.</description>
|
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &quot;search&quot; button to popup the menu.</description>
|
||||||
</item>
|
</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 &quot;default.redirect&quot;:
|
||||||
|
github mirror:fastgit
|
||||||
|
github mirror 2
|
||||||
|
google recaptcha mirror
|
||||||
|
Each line of the file &quot;default.redirect&quot; has the following format:
|
||||||
|
[domain name]:[regular expression]:[replacement expression]
|
||||||
|
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;.
|
||||||
|
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Text selection</title>
|
<title>Text selection</title>
|
||||||
<link>/en/pccopy/</link>
|
<link>/en/pccopy/</link>
|
||||||
|
|
69
en/redirect/index.html
Normal file
69
en/redirect/index.html
Normal file
|
@ -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 "default.redirect":<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 "default.redirect" has the following format:<br>
|
||||||
|
[domain name]:[regular expression]:[replacement expression]</p>
|
||||||
|
<p>in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]".</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 "url redirection".</li>
|
||||||
|
<li>Long pressing the setting button, enable the option "Resource redirection".</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -202,6 +202,22 @@
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
href="/en/rjs/"
|
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>
|
</url><url>
|
||||||
<loc>/en/tags/clipboard/</loc>
|
<loc>/en/tags/clipboard/</loc>
|
||||||
<lastmod>2022-04-23T00:00:00+00:00</lastmod>
|
<lastmod>2022-04-23T00:00:00+00:00</lastmod>
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="../adblock/index.html">AD blocking</a></li>
|
<li><a href="../adblock/index.html">AD blocking</a></li>
|
||||||
<li><a href="../globalcss/index.html">CSS styles</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>
|
<li><a href="../sitejs/index.html">Javascript and CSS for domains</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<h5 id="tools">Tools</h5>
|
<h5 id="tools">Tools</h5>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
<li><a href="PC">PC</a> 1</li>
|
<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="search%20engine">search engine</a> 1</li>
|
||||||
|
|
||||||
<li><a href="ssh">ssh</a> 1</li>
|
<li><a href="ssh">ssh</a> 1</li>
|
||||||
|
|
|
@ -15,6 +15,15 @@
|
||||||
<description></description>
|
<description></description>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<title>clipboard</title>
|
<title>clipboard</title>
|
||||||
<link>/en/tags/clipboard/</link>
|
<link>/en/tags/clipboard/</link>
|
||||||
|
|
53
en/tags/redirection/index.html
Normal file
53
en/tags/redirection/index.html
Normal file
|
@ -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>
|
26
en/tags/redirection/index.xml
Normal file
26
en/tags/redirection/index.xml
Normal file
|
@ -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 &quot;default.redirect&quot;:
|
||||||
|
github mirror:fastgit
|
||||||
|
github mirror 2
|
||||||
|
google recaptcha mirror
|
||||||
|
Each line of the file &quot;default.redirect&quot; has the following format:
|
||||||
|
[domain name]:[regular expression]:[replacement expression]
|
||||||
|
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;.
|
||||||
|
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
|
@ -32,7 +32,7 @@ Note: "Engines" needs file "engine.search",whose format is sam
|
||||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>/en/sitemap/</guid>
|
<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>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
<header class='header'>
|
<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 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>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
@ -71,7 +75,7 @@ developer.android.com::developer.android.google.cn</p>
|
||||||
<p>重启uweb后长按链接弹出菜单选"国内镜像",浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。</p>
|
<p>重启uweb后长按链接弹出菜单选"国内镜像",浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><a href="../urls">长按工具条图像按钮</a>。</p>
|
<p><a href="../urls/index.html">长按工具条图像按钮</a>。</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>长按设置,选中"自定义重定向"。</p>
|
<p>长按设置,选中"自定义重定向"。</p>
|
||||||
|
|
|
@ -217,6 +217,16 @@
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/zh/redirect/</loc>
|
<loc>/zh/redirect/</loc>
|
||||||
<lastmod>2022-04-25T00:00:00+00:00</lastmod>
|
<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>
|
</url><url>
|
||||||
<loc>/zh/tags/pc/</loc>
|
<loc>/zh/tags/pc/</loc>
|
||||||
<lastmod>2022-04-23T00:00:00+00:00</lastmod>
|
<lastmod>2022-04-23T00:00:00+00:00</lastmod>
|
||||||
|
|
Loading…
Reference in a new issue