mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add web extension support
This commit is contained in:
parent
939b257389
commit
2d016e3fdb
8 changed files with 32 additions and 13 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
- 微:不到200K。
|
||||
- 威:支持使用js脚本、url服务、shell命令、内部功能链接定制菜单/(新)按钮/手势; html+js应用增强为本地应用。
|
||||
- 便捷:图书(pdf/djvu)/txt/词典(mdict,kiwix)/命令行/APP/webapp(web extensions)可作为搜索引擎使用。
|
||||
- 快:手机越慢,脚本插件越多越明显。
|
||||
- 高效:最少的操作。
|
||||
- 极致优化:
|
||||
|
|
|
@ -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 &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.
|
||||
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.</description>
|
||||
<description>Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;: support web extensions (.crx for chrome &amp; .xpi for firefox).
|
||||
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.
|
||||
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -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 "https://local/sdcard/..." where the "/sdcard/.." 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 "https://local/sdcard/..." where the "/sdcard/.." 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 "app" (such as "appPDF")</li>
|
||||
<li>"https://local/..." applications (only possible with the option "<a href="../offlinecache/index.html">use offline resources</a>" and installed under the folder "sitecache/local/")</li>
|
||||
|
|
|
@ -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 &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.
|
||||
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.</description>
|
||||
<description>Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;: support web extensions (.crx for chrome &amp; .xpi for firefox).
|
||||
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.
|
||||
PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -98,8 +98,14 @@ Socks proxy</p>
|
|||
</ul>
|
||||
<h3 id="i-internal-links">"i:" 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 "/", then put unzipped file under the folder "[path]/[file name stem]" (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, "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].</p>
|
||||
|
|
|
@ -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 "sitecache/local/"</a>: support web extensions (.crx for chrome & .xpi for firefox).</p>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
11
index.html
11
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue