mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Tue Jul 5 09:47:04 PM CST 2022
This commit is contained in:
parent
adea7f49a0
commit
4608c0fc8d
14 changed files with 352 additions and 3 deletions
|
@ -99,6 +99,19 @@ It formats as "[input mimetype]/[output mimetype]".
|
|||
&quot;html&quot;: rich text &quot;&quot; (empty): text &quot;.</description>
|
||||
</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 &quot;.css&quot; files under the folder &quot;/sdcard/uweb/css&quot; as global css. Click the following links to install global css files:
|
||||
Clearing font settings
|
||||
The file &quot;/sdcard/uweb/night.css&quot; is used as night mode, click the following links to install one:
|
||||
webview 81+ night mode
|
||||
webview 80- night mode</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Toolbar customization</title>
|
||||
<link>/en/icons/</link>
|
||||
|
@ -124,6 +137,20 @@ These javascript files are in the following format:
|
|||
The very first line can begin with &quot;//&quot; followed by website url that can have &quot;%u&quot; (current url), &quot;%t&quot; (title) etc.</description>
|
||||
</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 &quot;custom file handling&quot; to enable the functionality.
|
||||
The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows:
|
||||
[file extension]:[mimetype]:[command line]
|
||||
The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.
|
||||
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.
|
||||
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Blocking domain trees</title>
|
||||
<link>/en/adblock_domain/</link>
|
||||
|
|
69
en/filecap/index.html
Normal file
69
en/filecap/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>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 "custom file handling" to enable the functionality.</p>
|
||||
<p>The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows:<br>
|
||||
[file extension]:[mimetype]:[command line]</p>
|
||||
<p>The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz".<br>
|
||||
"[mimetype]" indicates the type of "[command line]" output.<br>
|
||||
"[command line]" 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 '<audio controls width=100% height=100%><source src="%u"></audio>'
|
||||
m4b:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>'
|
||||
m3u8:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
|
||||
mp4:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>'
|
||||
mkv:text/html:echo '<video controls width=100% height=100%><source src="%u"></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
45
en/globalcss/index.html
Normal 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 ".css" files under the folder "/sdcard/uweb/css" 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 "/sdcard/uweb/night.css" 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>
|
|
@ -88,6 +88,12 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="globalcss/index.html">
|
||||
<span>CSS样式</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="icons/index.html">
|
||||
<span>Toolbar customization</span>
|
||||
|
@ -100,6 +106,12 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="filecap/index.html">
|
||||
<span>Custom file handling</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="adblock_domain/index.html">
|
||||
<span>Blocking domain trees</span>
|
||||
|
|
27
en/index.xml
27
en/index.xml
|
@ -99,6 +99,19 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;.
|
|||
&quot;html&quot;: rich text &quot;&quot; (empty): text &quot;.</description>
|
||||
</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 &quot;.css&quot; files under the folder &quot;/sdcard/uweb/css&quot; as global css. Click the following links to install global css files:
|
||||
Clearing font settings
|
||||
The file &quot;/sdcard/uweb/night.css&quot; is used as night mode, click the following links to install one:
|
||||
webview 81+ night mode
|
||||
webview 80- night mode</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Toolbar customization</title>
|
||||
<link>/en/icons/</link>
|
||||
|
@ -124,6 +137,20 @@ These javascript files are in the following format:
|
|||
The very first line can begin with &quot;//&quot; followed by website url that can have &quot;%u&quot; (current url), &quot;%t&quot; (title) etc.</description>
|
||||
</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 &quot;custom file handling&quot; to enable the functionality.
|
||||
The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows:
|
||||
[file extension]:[mimetype]:[command line]
|
||||
The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.
|
||||
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.
|
||||
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Blocking domain trees</title>
|
||||
<link>/en/adblock_domain/</link>
|
||||
|
|
|
@ -186,6 +186,19 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/icons/</loc>
|
||||
<lastmod>2022-02-06T00:00:00+00:00</lastmod>
|
||||
|
@ -212,6 +225,32 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/tags/adblock/</loc>
|
||||
</url><url>
|
||||
|
|
43
en/tags/curl/index.html
Normal file
43
en/tags/curl/index.html
Normal 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
24
en/tags/curl/index.xml
Normal 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 &quot;custom file handling&quot; to enable the functionality.
|
||||
The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows:
|
||||
[file extension]:[mimetype]:[command line]
|
||||
The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.
|
||||
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.
|
||||
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -9,13 +9,15 @@
|
|||
|
||||
<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="PC">PC</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>
|
||||
|
||||
|
|
|
@ -60,6 +60,15 @@
|
|||
<description></description>
|
||||
</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>
|
||||
<title>adblock</title>
|
||||
<link>/en/tags/adblock/</link>
|
||||
|
|
|
@ -35,6 +35,12 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="../../filecap">
|
||||
<span>Custom file handling</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<ul>
|
||||
</div>
|
||||
|
|
|
@ -24,5 +24,19 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;.
|
|||
&quot;html&quot;: rich text &quot;&quot; (empty): text &quot;.</description>
|
||||
</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 &quot;custom file handling&quot; to enable the functionality.
|
||||
The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows:
|
||||
[file extension]:[mimetype]:[command line]
|
||||
The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.
|
||||
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.
|
||||
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<meta http-equiv="refresh" content="0; url=zh/index.html">
|
||||
itle>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>zh/</title>
|
||||
<link rel="canonical" href="zh/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
|
|
|
@ -210,6 +210,16 @@
|
|||
</url><url>
|
||||
<loc>/zh/globalcss/</loc>
|
||||
<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>
|
||||
<loc>/zh/filenames/</loc>
|
||||
<lastmod>2022-03-18T00:00:00+00:00</lastmod>
|
||||
|
@ -294,9 +304,29 @@
|
|||
</url><url>
|
||||
<loc>/zh/tags/curl/</loc>
|
||||
<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>
|
||||
<loc>/zh/filecap/</loc>
|
||||
<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>
|
||||
<loc>/zh/html5/</loc>
|
||||
<lastmod>2020-08-20T00:00:00+00:00</lastmod>
|
||||
|
|
Loading…
Reference in a new issue