mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Sat Jul 9 08:45:16 AM CST 2022
This commit is contained in:
parent
4608c0fc8d
commit
e6a2e5d8d9
89 changed files with 530 additions and 478 deletions
|
@ -38,14 +38,14 @@
|
|||
|
||||
</ul>
|
||||
<p>技巧等级:中级</p>
|
||||
<p>文件预处理配置文件为/sdcard/uweb/default.filecap,每行格式如下:<br>
|
||||
<p>文件预处理配置文件为default.filecap,每行格式如下:<br>
|
||||
[文件后缀]:[mimetype]:[处理命令]</p>
|
||||
<p>其中文件后缀可允许最多两段后缀,譬如"txt.xz","html.gz"。<br>
|
||||
mimetype表示命令处理后的输出内容格式。<br>
|
||||
处理命令与<a href="../cmd/index.html">default.cmds</a>相同,主要可能用到如下替换:<br>
|
||||
%u(网址或文件路径)、%U(编码以后的网址)、%c(当前网址cookie)、%p(密码保护网站中的密码,curl格式)。</p>
|
||||
<p>利用文件预处理,<a href="../index.html">超微浏览器</a>现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。</p>
|
||||
<p>配置/sdcard/uweb/default.filecap如下:</p>
|
||||
<p>配置default.filecap如下:</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>'
|
||||
|
@ -60,9 +60,9 @@ xlsx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
|
|||
pptx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U
|
||||
xz:text/plain:curl %p "%u"|xz -d --</code></pre>
|
||||
<p>安装过相应的<a href="../html5/index.html">html5应用</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>
|
||||
<pre><code>pdf:uweb:echo file:///data/data/info.torinfo.uweb/files/app/pdf.js/web/viewer.html?file=%u
|
||||
djvu:uweb:echo file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=%u
|
||||
epub:uweb:echo file:///data/data/info.torinfo.uweb/files/app/reader/index.html?bookPath==%u</code></pre>
|
||||
<p>长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。</p>
|
||||
<p>如果用户配置中处理命令用到curl,则需要安装<a href="../gnuplot/index.html">Termux</a>,并在Termux中安装curl ("apt install curl")。<br>
|
||||
如果用户不安装Termux,则上述配置命令中的"am"需要全部路径,需用"/system/bin/am"替换。</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue