mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
32 lines
No EOL
2.6 KiB
XML
32 lines
No EOL
2.6 KiB
XML
<?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>https://jamesfengcao.gitee.io/uweb/tags/curl/</link>
|
||
<description>Recent content in curl on </description>
|
||
<generator>Hugo -- gohugo.io</generator>
|
||
<language>en-us</language>
|
||
|
||
<atom:link href="https://jamesfengcao.gitee.io/uweb/tags/curl/index.xml" rel="self" type="application/rss+xml" />
|
||
|
||
|
||
<item>
|
||
<title>利用文件预处理预览/查看/播放一切可下载资源</title>
|
||
<link>https://jamesfengcao.gitee.io/uweb/filecap/</link>
|
||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://jamesfengcao.gitee.io/uweb/filecap/</guid>
|
||
<description>技巧等级:中级
|
||
文件预处理配置文件为/sdcard/uweb/default.filecap,每行格式如下:
|
||
[文件后缀]:[mimetype]:[处理命令]
|
||
其中文件后缀可允许最多两段后缀,譬如&quot;txt.xz&quot;,&quot;html.gz&quot;。
|
||
mimetype表示命令处理后的输出内容格式。
|
||
处理命令与default.cmds相同,主要可能用到如下替换:
|
||
%u(网址或文件路径)、%U(编码以后的网址)、%c(当前网址cookie)、%p(密码保护网站中的密码,curl格式)。
|
||
利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。
|
||
配置/sdcard/uweb/default.filecap如下:
|
||
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::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U' xls::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U' ppt::am start --user 0 -a android.intent.action.VIEW -d 'https://view.officeapps.live.com/op/view.aspx?src=%U' docx::am start --user 0 -a android.</description>
|
||
</item>
|
||
|
||
</channel>
|
||
</rss> |