rebuilding site Tue Jul 5 09:47:04 PM CST 2022

This commit is contained in:
James Feng Cao 2022-07-05 21:47:05 +08:00
parent adea7f49a0
commit 4608c0fc8d
14 changed files with 352 additions and 3 deletions

View file

@ -99,6 +99,19 @@ It formats as "[input mimetype]/[output mimetype]".
&amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description> &amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description>
</item> </item>
<item>
<title>CSS样式</title>
<link>/en/globalcss/</link>
<pubDate>Sun, 03 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/globalcss/</guid>
<description>Uweb browser loads all &amp;quot;.css&amp;quot; files under the folder &amp;quot;/sdcard/uweb/css&amp;quot; as global css. Click the following links to install global css files:
Clearing font settings
The file &amp;quot;/sdcard/uweb/night.css&amp;quot; is used as night mode, click the following links to install one:
webview 81+ night mode
webview 80- night mode</description>
</item>
<item> <item>
<title>Toolbar customization</title> <title>Toolbar customization</title>
<link>/en/icons/</link> <link>/en/icons/</link>
@ -124,6 +137,20 @@ These javascript files are in the following format:
The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description> The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description>
</item> </item>
<item>
<title>Custom file handling</title>
<link>/en/filecap/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>Long press the settings button, check the option &amp;quot;custom file handling&amp;quot; to enable the functionality.
The custom file handling configuration file is &amp;quot;/sdcard/uweb/default.filecap&amp;quot;, each line of it has the format as follows:
[file extension]:[mimetype]:[command line]
The &amp;quot;[file extension]&amp;quot; part can have at most two-segment of extensions such as &amp;quot;txt.xz&amp;quot;,&amp;quot;html.gz&amp;quot;.
&amp;quot;[mimetype]&amp;quot; indicates the type of &amp;quot;[command line]&amp;quot; output.
&amp;quot;[command line]&amp;quot; is same as the one in default.cmds. The most often used replacements are:</description>
</item>
<item> <item>
<title>Blocking domain trees</title> <title>Blocking domain trees</title>
<link>/en/adblock_domain/</link> <link>/en/adblock_domain/</link>

69
en/filecap/index.html Normal file
View 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>Custom file handling</title>
<script type="text/javascript">
function nav2(page){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
location.href = href.substring(0,i+1)+page;
}
return false;
}
</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">Custom file handling
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
<li><a href="../tags/termux">termux</a> </li>
<li><a href="../tags/curl">curl</a> </li>
</ul>
<p>Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality.</p>
<p>The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows:<br>
[file extension]:[mimetype]:[command line]</p>
<p>The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.<br>
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.<br>
&quot;[command line]&quot; is same as the one in <a href="../searchurl/cmds.html">default.cmds</a>. The most often used replacements are:<br>
%u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).</p>
<p>/sdcard/uweb/default.filecap example:</p>
<pre><code>txt:text/html:curl %p "%u"
mp3:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>'
m4b:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>'
m3u8:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>'
mp4:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>'
mkv:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>'
doc:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
xls:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
ppt:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
docx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
xlsx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
pptx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U
xz:text/plain:curl %p "%u"|xz -d --</code></pre>
<p>Examples for <a href="../html5/index.html">html5 application</a>:</p>
<pre><code>pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u</code></pre>
</div>
</body>
</html>

45
en/globalcss/index.html Normal file
View file

@ -0,0 +1,45 @@
<!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>CSS样式</title>
<script type="text/javascript">
function nav2(page){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
location.href = href.substring(0,i+1)+page;
}
return false;
}
</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">CSS样式
<br>
<span class="subtitle"></span>
</h1>
<ul class="tags">
</ul>
<p><a href="../index.html">Uweb browser</a> loads all &quot;.css&quot; files under the folder &quot;/sdcard/uweb/css&quot; as global css. Click the following links to install global css files:</p>
<p><a href="i:0h/sdcard/uweb/css/clearfont.css:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/txt/clearfont.css">Clearing font settings</a></p>
<p>The file &quot;/sdcard/uweb/night.css&quot; is used as night mode, click the following links to install one:<br>
<a href="i:0h/sdcard/uweb/night.css:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/txt/night.css">webview 81+ night mode</a><br>
<a href="i:0h/sdcard/uweb/night.css:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/txt/night_old.css">webview 80- night mode</a></p>
</div>
</body>
</html>

View file

@ -88,6 +88,12 @@
</a> </a>
</li> </li>
<li class="post">
<a href="globalcss/index.html">
<span>CSS样式</span>
</a>
</li>
<li class="post"> <li class="post">
<a href="icons/index.html"> <a href="icons/index.html">
<span>Toolbar customization</span> <span>Toolbar customization</span>
@ -100,6 +106,12 @@
</a> </a>
</li> </li>
<li class="post">
<a href="filecap/index.html">
<span>Custom file handling</span>
</a>
</li>
<li class="post"> <li class="post">
<a href="adblock_domain/index.html"> <a href="adblock_domain/index.html">
<span>Blocking domain trees</span> <span>Blocking domain trees</span>

View file

@ -99,6 +99,19 @@ It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
&amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description> &amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description>
</item> </item>
<item>
<title>CSS样式</title>
<link>/en/globalcss/</link>
<pubDate>Sun, 03 Apr 2022 00:00:00 +0000</pubDate>
<guid>/en/globalcss/</guid>
<description>Uweb browser loads all &amp;quot;.css&amp;quot; files under the folder &amp;quot;/sdcard/uweb/css&amp;quot; as global css. Click the following links to install global css files:
Clearing font settings
The file &amp;quot;/sdcard/uweb/night.css&amp;quot; is used as night mode, click the following links to install one:
webview 81+ night mode
webview 80- night mode</description>
</item>
<item> <item>
<title>Toolbar customization</title> <title>Toolbar customization</title>
<link>/en/icons/</link> <link>/en/icons/</link>
@ -124,6 +137,20 @@ These javascript files are in the following format:
The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description> The very first line can begin with &amp;quot;//&amp;quot; followed by website url that can have &amp;quot;%u&amp;quot; (current url), &amp;quot;%t&amp;quot; (title) etc.</description>
</item> </item>
<item>
<title>Custom file handling</title>
<link>/en/filecap/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>Long press the settings button, check the option &amp;quot;custom file handling&amp;quot; to enable the functionality.
The custom file handling configuration file is &amp;quot;/sdcard/uweb/default.filecap&amp;quot;, each line of it has the format as follows:
[file extension]:[mimetype]:[command line]
The &amp;quot;[file extension]&amp;quot; part can have at most two-segment of extensions such as &amp;quot;txt.xz&amp;quot;,&amp;quot;html.gz&amp;quot;.
&amp;quot;[mimetype]&amp;quot; indicates the type of &amp;quot;[command line]&amp;quot; output.
&amp;quot;[command line]&amp;quot; is same as the one in default.cmds. The most often used replacements are:</description>
</item>
<item> <item>
<title>Blocking domain trees</title> <title>Blocking domain trees</title>
<link>/en/adblock_domain/</link> <link>/en/adblock_domain/</link>

View file

@ -186,6 +186,19 @@
hreflang="en" hreflang="en"
href="/en/tags/windows/" href="/en/tags/windows/"
/> />
</url><url>
<loc>/en/globalcss/</loc>
<lastmod>2022-04-03T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/globalcss/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/globalcss/"
/>
</url><url> </url><url>
<loc>/en/icons/</loc> <loc>/en/icons/</loc>
<lastmod>2022-02-06T00:00:00+00:00</lastmod> <lastmod>2022-02-06T00:00:00+00:00</lastmod>
@ -212,6 +225,32 @@
hreflang="en" hreflang="en"
href="/en/longclick/" href="/en/longclick/"
/> />
</url><url>
<loc>/en/tags/curl/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/curl/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/curl/"
/>
</url><url>
<loc>/en/filecap/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/filecap/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/filecap/"
/>
</url><url> </url><url>
<loc>/en/tags/adblock/</loc> <loc>/en/tags/adblock/</loc>
</url><url> </url><url>

43
en/tags/curl/index.html Normal file
View file

@ -0,0 +1,43 @@
<!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>curl</title>
<script type="text/javascript">
function nav2(page){
let href = location.href;
for(let i=href.length-1;i>0;i--){
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
location.href = href.substring(0,i+1)+page;
}
return false;
}
</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">curl</h1>
<ul class="posts">
<li class="post">
<a href="../../filecap">
<span>Custom file handling</span>
</a>
</li>
</ul>
<ul>
</div>
</body>
</html>

24
en/tags/curl/index.xml Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>curl on </title>
<link>/en/tags/curl/</link>
<description>Recent content in curl on </description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Mon, 24 Aug 2020 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/curl/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Custom file handling</title>
<link>/en/filecap/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>Long press the settings button, check the option &amp;quot;custom file handling&amp;quot; to enable the functionality.
The custom file handling configuration file is &amp;quot;/sdcard/uweb/default.filecap&amp;quot;, each line of it has the format as follows:
[file extension]:[mimetype]:[command line]
The &amp;quot;[file extension]&amp;quot; part can have at most two-segment of extensions such as &amp;quot;txt.xz&amp;quot;,&amp;quot;html.gz&amp;quot;.
&amp;quot;[mimetype]&amp;quot; indicates the type of &amp;quot;[command line]&amp;quot; output.
&amp;quot;[command line]&amp;quot; is same as the one in default.cmds. The most often used replacements are:</description>
</item>
</channel>
</rss>

View file

@ -9,13 +9,15 @@
<li><a href="css">css</a> 1</li> <li><a href="css">css</a> 1</li>
<li><a href="curl">curl</a> 1</li>
<li><a href="javascript">javascript</a> 3</li> <li><a href="javascript">javascript</a> 3</li>
<li><a href="PC">PC</a> 1</li> <li><a href="PC">PC</a> 1</li>
<li><a href="ssh">ssh</a> 1</li> <li><a href="ssh">ssh</a> 1</li>
<li><a href="termux">termux</a> 1</li> <li><a href="termux">termux</a> 2</li>
<li><a href="Windows">Windows</a> 1</li> <li><a href="Windows">Windows</a> 1</li>

View file

@ -60,6 +60,15 @@
<description></description> <description></description>
</item> </item>
<item>
<title>curl</title>
<link>/en/tags/curl/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/tags/curl/</guid>
<description></description>
</item>
<item> <item>
<title>adblock</title> <title>adblock</title>
<link>/en/tags/adblock/</link> <link>/en/tags/adblock/</link>

View file

@ -35,6 +35,12 @@
</a> </a>
</li> </li>
<li class="post">
<a href="../../filecap">
<span>Custom file handling</span>
</a>
</li>
</ul> </ul>
<ul> <ul>
</div> </div>

View file

@ -24,5 +24,19 @@ It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
&amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description> &amp;quot;html&amp;quot;: rich text &amp;quot;&amp;quot; (empty): text &amp;quot;.</description>
</item> </item>
<item>
<title>Custom file handling</title>
<link>/en/filecap/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>Long press the settings button, check the option &amp;quot;custom file handling&amp;quot; to enable the functionality.
The custom file handling configuration file is &amp;quot;/sdcard/uweb/default.filecap&amp;quot;, each line of it has the format as follows:
[file extension]:[mimetype]:[command line]
The &amp;quot;[file extension]&amp;quot; part can have at most two-segment of extensions such as &amp;quot;txt.xz&amp;quot;,&amp;quot;html.gz&amp;quot;.
&amp;quot;[mimetype]&amp;quot; indicates the type of &amp;quot;[command line]&amp;quot; output.
&amp;quot;[command line]&amp;quot; is same as the one in default.cmds. The most often used replacements are:</description>
</item>
</channel> </channel>
</rss> </rss>

View file

@ -1,5 +1,7 @@
<meta http-equiv="refresh" content="0; url=zh/index.html"> <!DOCTYPE html>
itle> <html lang="en">
<head>
<title>zh/</title>
<link rel="canonical" href="zh/"> <link rel="canonical" href="zh/">
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<meta charset="utf-8"> <meta charset="utf-8">

View file

@ -210,6 +210,16 @@
</url><url> </url><url>
<loc>/zh/globalcss/</loc> <loc>/zh/globalcss/</loc>
<lastmod>2022-04-03T00:00:00+00:00</lastmod> <lastmod>2022-04-03T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/globalcss/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/globalcss/"
/>
</url><url> </url><url>
<loc>/zh/filenames/</loc> <loc>/zh/filenames/</loc>
<lastmod>2022-03-18T00:00:00+00:00</lastmod> <lastmod>2022-03-18T00:00:00+00:00</lastmod>
@ -294,9 +304,29 @@
</url><url> </url><url>
<loc>/zh/tags/curl/</loc> <loc>/zh/tags/curl/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod> <lastmod>2020-08-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/tags/curl/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/tags/curl/"
/>
</url><url> </url><url>
<loc>/zh/filecap/</loc> <loc>/zh/filecap/</loc>
<lastmod>2020-08-24T00:00:00+00:00</lastmod> <lastmod>2020-08-24T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/filecap/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/filecap/"
/>
</url><url> </url><url>
<loc>/zh/html5/</loc> <loc>/zh/html5/</loc>
<lastmod>2020-08-20T00:00:00+00:00</lastmod> <lastmod>2020-08-20T00:00:00+00:00</lastmod>