diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 17dea1b..dff65f8 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -99,6 +99,19 @@ It formats as "[input mimetype]/[output mimetype]". "html": rich text "" (empty): text ". + + CSS样式 + /en/globalcss/ + Sun, 03 Apr 2022 00:00:00 +0000 + + /en/globalcss/ + Uweb browser loads all ".css" files under the folder "/sdcard/uweb/css" as global css. Click the following links to install global css files: +Clearing font settings +The file "/sdcard/uweb/night.css" is used as night mode, click the following links to install one: +webview 81+ night mode +webview 80- night mode + + Toolbar customization /en/icons/ @@ -124,6 +137,20 @@ These javascript files are in the following format: The very first line can begin with "//" followed by website url that can have "%u" (current url), "%t" (title) etc. + + Custom file handling + /en/filecap/ + Mon, 24 Aug 2020 00:00:00 +0000 + + /en/filecap/ + Long press the settings button, check the option "custom file handling" to enable the functionality. +The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows: +[file extension]:[mimetype]:[command line] +The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz". +"[mimetype]" indicates the type of "[command line]" output. +"[command line]" is same as the one in default.cmds. The most often used replacements are: + + Blocking domain trees /en/adblock_domain/ diff --git a/en/filecap/index.html b/en/filecap/index.html new file mode 100644 index 0000000..bc317e9 --- /dev/null +++ b/en/filecap/index.html @@ -0,0 +1,69 @@ + + + + + + + + Custom file handling + + + +
+ + +
+
+ +
+

Custom file handling +
+ +

+ +

Long press the settings button, check the option "custom file handling" to enable the functionality.

+

The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows:
+[file extension]:[mimetype]:[command line]

+

The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz".
+"[mimetype]" indicates the type of "[command line]" output.
+"[command line]" is same as the one in default.cmds. The most often used replacements are:
+%u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).

+

/sdcard/uweb/default.filecap example:

+
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 --
+

Examples for html5 application:

+
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
+ +
+ + + diff --git a/en/globalcss/index.html b/en/globalcss/index.html new file mode 100644 index 0000000..9a9439b --- /dev/null +++ b/en/globalcss/index.html @@ -0,0 +1,45 @@ + + + + + + + + CSS样式 + + + +
+ + +
+
+ +
+

CSS样式 +
+ +

+ +

Uweb browser loads all ".css" files under the folder "/sdcard/uweb/css" as global css. Click the following links to install global css files:

+

Clearing font settings

+

The file "/sdcard/uweb/night.css" is used as night mode, click the following links to install one:
+webview 81+ night mode
+webview 80- night mode

+ +
+ + + diff --git a/en/index.html b/en/index.html index 4004ce4..0fc0b3e 100644 --- a/en/index.html +++ b/en/index.html @@ -88,6 +88,12 @@ +
  • + + CSS样式 + +
  • +
  • Toolbar customization @@ -100,6 +106,12 @@
  • +
  • + + Custom file handling + +
  • +
  • Blocking domain trees diff --git a/en/index.xml b/en/index.xml index 679e352..3708fda 100644 --- a/en/index.xml +++ b/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;. + + CSS样式 + /en/globalcss/ + Sun, 03 Apr 2022 00:00:00 +0000 + + /en/globalcss/ + 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 + + Toolbar customization /en/icons/ @@ -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. + + Custom file handling + /en/filecap/ + Mon, 24 Aug 2020 00:00:00 +0000 + + /en/filecap/ + 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: + + Blocking domain trees /en/adblock_domain/ diff --git a/en/sitemap.xml b/en/sitemap.xml index 3fe4d7b..93253cd 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -186,6 +186,19 @@ hreflang="en" href="/en/tags/windows/" /> + + /en/globalcss/ + 2022-04-03T00:00:00+00:00 + + /en/icons/ 2022-02-06T00:00:00+00:00 @@ -212,6 +225,32 @@ hreflang="en" href="/en/longclick/" /> + + /en/tags/curl/ + 2020-08-24T00:00:00+00:00 + + + + /en/filecap/ + 2020-08-24T00:00:00+00:00 + + /en/tags/adblock/ diff --git a/en/tags/curl/index.html b/en/tags/curl/index.html new file mode 100644 index 0000000..e6058b5 --- /dev/null +++ b/en/tags/curl/index.html @@ -0,0 +1,43 @@ + + + + + + + + curl + + + +
    + + +
    +
    + +
    +

    curl

    + +
      +
    + + + diff --git a/en/tags/curl/index.xml b/en/tags/curl/index.xml new file mode 100644 index 0000000..a7a2d01 --- /dev/null +++ b/en/tags/curl/index.xml @@ -0,0 +1,24 @@ + + + + curl on + /en/tags/curl/ + Recent content in curl on + Hugo -- gohugo.io + Mon, 24 Aug 2020 00:00:00 +0000 + + Custom file handling + /en/filecap/ + Mon, 24 Aug 2020 00:00:00 +0000 + + /en/filecap/ + 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: + + + + diff --git a/en/tags/index.html b/en/tags/index.html index f577e31..1796bf2 100644 --- a/en/tags/index.html +++ b/en/tags/index.html @@ -9,13 +9,15 @@
  • css 1
  • +
  • curl 1
  • +
  • javascript 3
  • PC 1
  • ssh 1
  • -
  • termux 1
  • +
  • termux 2
  • Windows 1
  • diff --git a/en/tags/index.xml b/en/tags/index.xml index dcdef48..eebe6a0 100644 --- a/en/tags/index.xml +++ b/en/tags/index.xml @@ -60,6 +60,15 @@
    + + curl + /en/tags/curl/ + Mon, 24 Aug 2020 00:00:00 +0000 + + /en/tags/curl/ + + + adblock /en/tags/adblock/ diff --git a/en/tags/termux/index.html b/en/tags/termux/index.html index 0866496..6bbfbf1 100644 --- a/en/tags/termux/index.html +++ b/en/tags/termux/index.html @@ -35,6 +35,12 @@ +
  • + + Custom file handling + +
  • +