mirror of https://github.com/torappinfo/uweb
rebuilding site Tue Jul 5 09:47:04 PM CST 2022
parent
adea7f49a0
commit
4608c0fc8d
@ -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>
|
@ -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>
|
@ -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>
|
@ -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>
|
Loading…
Reference in New Issue