add web extension support

This commit is contained in:
James Feng Cao 2022-10-22 06:47:01 +08:00
parent 939b257389
commit 2d016e3fdb
8 changed files with 32 additions and 13 deletions

View file

@ -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.

View file

@ -19,6 +19,7 @@
- 微不到200K。
- 威支持使用js脚本、url服务、shell命令、内部功能链接定制菜单按钮手势; html+js应用增强为本地应用。
- 便捷图书pdf/djvu/txt/词典mdict,kiwix/命令行/APP/webapp(web extensions)可作为搜索引擎使用。
- 快:手机越慢,脚本插件越多越明显。
- 高效:最少的操作。
- 极致优化:

View file

@ -12,8 +12,9 @@
<pubDate>Thu, 20 Oct 2022 00:00:00 +0000</pubDate>
<guid>/en/offlinecache/</guid>
<description>Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, &#39;?&#39; , &#39;&amp;amp;&#39; , &#39;=&#39;. exactly as url]&amp;quot; are loaded first before reaching the network.
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp;amp; .xpi for firefox) are just packaged websites. Ex. the &amp;quot;kiwix&amp;quot; extension can be extracted to the folder &amp;quot;sitecache/kiwix&amp;quot;, then the kiwix extension can be accessed via url &amp;quot;https://kiwix/www/index.</description>
<description>Click to install url service that extracts web apps to the folder &amp;quot;sitecache/local/&amp;quot;: support web extensions (.crx for chrome &amp;amp; .xpi for firefox).
Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, &#39;?&#39; , &#39;&amp;amp;&#39; , &#39;=&#39;. exactly as url]&amp;quot; are loaded first before reaching the network.
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp;amp; .</description>
</item>
<item>

View file

@ -62,7 +62,7 @@ Click to install the following html5 apps:<br>
<p>The following mentioned subfolders locate in the configuration folder.</p>
<ul>
<li>
<p>The following html5 applications are allowed to read local files referred by &quot;https://local/sdcard/...&quot; where the &quot;/sdcard/..&quot; part is the full path of the file. The below applications <span style="color:red">can auto choosed any files as file objects</span>.</p>
<p>The following html5 applications are allowed to read local files referred by &quot;https://local/sdcard/...&quot; where the &quot;/sdcard/..&quot; part is the full path of the file. The below applications <span style="color:red">can auto choose any files as file objects</span>.</p>
<ul>
<li>Locating in a subfolder whose name begins with &quot;app&quot; (such as &quot;appPDF&quot;)</li>
<li>&quot;https://local/...&quot; applications (only possible with the option &quot;<a href="../offlinecache/index.html">use offline resources</a>&quot; and installed under the folder &quot;sitecache/local/&quot;)</li>

View file

@ -12,8 +12,9 @@
<pubDate>Thu, 20 Oct 2022 00:00:00 +0000</pubDate>
<guid>/en/offlinecache/</guid>
<description>Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, &#39;?&#39; , &#39;&amp;amp;&#39; , &#39;=&#39;. exactly as url]&amp;quot; are loaded first before reaching the network.
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp;amp; .xpi for firefox) are just packaged websites. Ex. the &amp;quot;kiwix&amp;quot; extension can be extracted to the folder &amp;quot;sitecache/kiwix&amp;quot;, then the kiwix extension can be accessed via url &amp;quot;https://kiwix/www/index.</description>
<description>Click to install url service that extracts web apps to the folder &amp;quot;sitecache/local/&amp;quot;: support web extensions (.crx for chrome &amp;amp; .xpi for firefox).
Offline resources locate in the folder &amp;quot;sitecache&amp;quot;. With the option &amp;quot;use offline resources&amp;quot; enabled, the corresponding files in &amp;quot;sitecache/[domain name]/[full path including filename, &#39;?&#39; , &#39;&amp;amp;&#39; , &#39;=&#39;. exactly as url]&amp;quot; are loaded first before reaching the network.
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp;amp; .</description>
</item>
<item>

View file

@ -98,8 +98,14 @@ Socks proxy</p>
</ul>
<h3 id="i-internal-links">&quot;i:&quot; internal links:</h3>
<ul>
<li>i:0m[bookmarklet index|prefix|?postfix|c[cssFlag]]:[url]<br>
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</li>
<li>
<p>i:0b[path]:[url]<br>
Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends with &quot;/&quot;, then put unzipped file under the folder &quot;[path]/[file name stem]&quot; (for zipped files only, not for tar/tgz).</p>
</li>
<li>
<p>i:0m[bookmarklet index|prefix|?postfix|c[cssFlag]]:[url]<br>
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</p>
</li>
<li></li>
</ul>
<p>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, &quot;00&quot; as the first local bookmarklet; &quot;01&quot; as the first remote script; then &quot;02&quot; as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</p>

View file

@ -47,8 +47,9 @@
<ul class="tags">
</ul>
<p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p>
<p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, '?' , '&amp;' , '='. exactly as url]&quot; are loaded first before reaching the network.</p>
<p>PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .xpi for firefox) are just packaged websites. Ex. the &quot;kiwix&quot; extension can be extracted to the folder &quot;sitecache/kiwix&quot;, then the kiwix extension can be accessed via url &quot;https://kiwix/www/index.html&quot; in the browser. Note: the folder name &quot;kiwix&quot; is used as the domain name in the url.</p>
<p>PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .xpi for firefox) are just packaged websites. Ex. the &quot;kiwix&quot; extension can be extracted to the folder &quot;sitecache/local/kiwix&quot;, then the kiwix extension can be accessed via url &quot;https://local/kiwix/www/index.html&quot; in the browser. Note: the folder name &quot;local&quot; is used as the domain name in the url.</p>
</div>

View file

@ -1 +1,10 @@
<meta http-equiv="refresh" content="0; url=en/index.html">
<!DOCTYPE html>
<html lang="en">
<head>
<title>en/</title>
<link rel="canonical" href="en/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=en/">
</head>
</html>