From 2d016e3fdbb47a7b6b260d2db5db3728f7cfd27d Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Sat, 22 Oct 2022 06:47:01 +0800
Subject: [PATCH] add web extension support
---
README.md | 6 +++---
README.zh-Hans.md | 1 +
en/_posts/index.xml | 5 +++--
en/html5/index.html | 2 +-
en/index.xml | 5 +++--
en/links/index.html | 10 ++++++++--
en/offlinecache/index.html | 5 +++--
index.html | 11 ++++++++++-
8 files changed, 32 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index f94ab5de..0b53deb5 100644
--- a/README.md
+++ b/README.md
@@ -18,10 +18,10 @@
[render](https://uwebzh.onrender.com/en/)
)
-- Tiny: less than 200k
-- Fast: run fast, even with thousands of user provided css/scripts
+- Tiny: less than 200k.
+- Fast: run fast, even with thousands of user provided css/scripts.
- Efficient: less touches, one click to reach any number of search engines without repeated input.
-- Convenient: any book (pdf/djvu)/dictionary (mdict)/txt/command line/app can be search engine.
+- Convenient: Any book (pdf/djvu)/dictionary (mdict)/txt/command line/app/webapp (web extensions) can be search engine.
- Customizable: user-defined menus, (new) buttons and gestures for user agents, bookmarklets, url services, shell commands, internal functionality links and text processing etc.
- Powerful: enabling html5 applications to work like native; javascript and shell scripting for general processing and more if enhanced by Termux.
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index c681b25c..60c42180 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -19,6 +19,7 @@
- 微:不到200K。
- 威:支持使用js脚本、url服务、shell命令、内部功能链接定制菜单/(新)按钮/手势; html+js应用增强为本地应用。
+- 便捷:图书(pdf/djvu)/txt/词典(mdict,kiwix)/命令行/APP/webapp(web extensions)可作为搜索引擎使用。
- 快:手机越慢,脚本插件越多越明显。
- 高效:最少的操作。
- 极致优化:
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
index cacc8bfd..2f490d67 100644
--- a/en/_posts/index.xml
+++ b/en/_posts/index.xml
@@ -12,8 +12,9 @@
Thu, 20 Oct 2022 00:00:00 +0000/en/offlinecache/
- Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
-PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .xpi for firefox) are just packaged websites. Ex. the "kiwix" extension can be extracted to the folder "sitecache/kiwix", then the kiwix extension can be accessed via url "https://kiwix/www/index.
+ Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox).
+Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
+PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .
diff --git a/en/html5/index.html b/en/html5/index.html
index 6ccfd98b..088c2e01 100644
--- a/en/html5/index.html
+++ b/en/html5/index.html
@@ -62,7 +62,7 @@ Click to install the following html5 apps:
The following mentioned subfolders locate in the configuration folder.
-
The following html5 applications are allowed to read local files referred by "https://local/sdcard/..." where the "/sdcard/.." part is the full path of the file. The below applications can auto choosed any files as file objects.
+
The following html5 applications are allowed to read local files referred by "https://local/sdcard/..." where the "/sdcard/.." part is the full path of the file. The below applications can auto choose any files as file objects.
Locating in a subfolder whose name begins with "app" (such as "appPDF")
"https://local/..." applications (only possible with the option "use offline resources" and installed under the folder "sitecache/local/")
diff --git a/en/index.xml b/en/index.xml
index b2d8f561..588d9575 100644
--- a/en/index.xml
+++ b/en/index.xml
@@ -12,8 +12,9 @@
Thu, 20 Oct 2022 00:00:00 +0000/en/offlinecache/
- Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
-PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .xpi for firefox) are just packaged websites. Ex. the "kiwix" extension can be extracted to the folder "sitecache/kiwix", then the kiwix extension can be accessed via url "https://kiwix/www/index.
+ Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox).
+Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
+PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .
i:0m[bookmarklet index|prefix|?postfix|c[cssFlag]]:[url]
-Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].
+
+
i:0b[path]:[url]
+Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends with "/", then put unzipped file under the folder "[path]/[file name stem]" (for zipped files only, not for tar/tgz).
+
+
+
i:0m[bookmarklet index|prefix|?postfix|c[cssFlag]]:[url]
+Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].
+
[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].
Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
-
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .xpi for firefox) are just packaged websites. Ex. the "kiwix" extension can be extracted to the folder "sitecache/kiwix", then the kiwix extension can be accessed via url "https://kiwix/www/index.html" in the browser. Note: the folder name "kiwix" is used as the domain name in the url.
Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, '?' , '&' , '='. exactly as url]" are loaded first before reaching the network.
+
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .xpi for firefox) are just packaged websites. Ex. the "kiwix" extension can be extracted to the folder "sitecache/local/kiwix", then the kiwix extension can be accessed via url "https://local/kiwix/www/index.html" in the browser. Note: the folder name "local" is used as the domain name in the url.