uweb/tags/curl/index.xml

32 lines
2.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>http://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="http://jamesfengcao.gitee.io/uweb/tags/curl/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>利用文件预处理预览/查看/播放一切可下载资源</title>
<link>http://jamesfengcao.gitee.io/uweb/filecap/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>http://jamesfengcao.gitee.io/uweb/filecap/</guid>
<description>技巧等级:中级
文件预处理配置文件为/sdcard/uweb/default.filecap每行格式如下
[文件后缀]:[mimetype]:[处理命令]
其中文件后缀可允许最多两段后缀,譬如&amp;quot;txt.xz&amp;quot;,&amp;quot;html.gz&amp;quot;。
mimetype表示命令处理后的输出内容格式。
处理命令与default.cmds相同主要可能用到如下替换
%u网址或文件路径、%U编码以后的网址、%c当前网址cookie、%p密码保护网站中的密码curl格式
利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。
配置/sdcard/uweb/default.filecap如下
txt:text/html:curl %p &#34;%u&#34; mp3:text/html:echo &#39;&amp;lt;audio controls width=100% height=100%&amp;lt;source src=&#34;%u&#34;&amp;lt;/audio&#39; m4b:text/html:echo &#39;&amp;lt;audio controls width=100% height=100%&amp;lt;source src=&#34;%u&#34;&amp;lt;/audio&#39; m3u8:text/html:echo &#39;&amp;lt;video controls width=100% height=100%&amp;lt;source src=&#34;%u&#34;&amp;lt;/video&#39; mp4:text/html:echo &#39;&amp;lt;video controls width=100% height=100%&amp;lt;source src=&#34;%u&#34;&amp;lt;/video&#39; mkv:text/html:echo &#39;&amp;lt;video controls width=100% height=100%&amp;lt;source src=&#34;%u&#34;&amp;lt;/video&#39; doc::am start --user 0 -a android.intent.action.VIEW -d &#39;https://view.officeapps.live.com/op/view.aspx?src=%U&#39; xls::am start --user 0 -a android.intent.action.VIEW -d &#39;https://view.officeapps.live.com/op/view.aspx?src=%U&#39; ppt::am start --user 0 -a android.intent.action.VIEW -d &#39;https://view.officeapps.live.com/op/view.aspx?src=%U&#39; docx::am start --user 0 -a android.</description>
</item>
</channel>
</rss>