From 7eccedfeccdefb465426b8b731c3168bcdbda0f4 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Tue, 11 Jun 2024 18:42:38 +0800
Subject: [PATCH] adaptable ebrowser links
---
README.md | 2 +-
README.zh-Hans.md | 2 +-
README.zh.md | 2 +-
ebrowser.md | 83 +++++++
en/_posts/index.xml | 4 +-
en/bookmarklet/index.html | 6 +-
en/ebrowserreadme/index.html | 178 +++++++++++++++
en/index.xml | 11 +-
en/readme/index.html | 6 +-
en/sitemap.xml | 17 +-
en/tags/index.xml | 2 +-
en/tags/javascript/index.xml | 4 +-
en/unlist/index.xml | 7 +
misc/ebrowser/index.html | 337 ++++++++++++++++++++++++++++
misc/ebrowser/webview.js | 419 +++++++++++++++++++++++++++++++++++
sitemap.xml | 4 +-
zh/index.xml | 2 +-
zh/readme/index.html | 6 +-
zh/sitemap.xml | 6 +-
19 files changed, 1066 insertions(+), 32 deletions(-)
create mode 100644 ebrowser.md
create mode 100644 en/ebrowserreadme/index.html
create mode 100644 misc/ebrowser/index.html
create mode 100644 misc/ebrowser/webview.js
diff --git a/README.md b/README.md
index 2c014a7..47826b8 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ Custom paper size PDF export and long vector screenshot, TTS, text reflow, resou
![](https://i.postimg.cc/XJ58ysdN/option1.png)
![](https://i.postimg.cc/0NFnQT6H/option2.png)
-#### [Ebrowser](https://github.com/torappinfo/ebrowser) for Windows, MacOS and Linux
+#### Ebrowser for Windows, MacOS and Linux
Ebrowser is a simple verison of uweb browser on the desktop.
- Fully open source.
- Capture long screenshot as vector graphics.
diff --git a/README.zh-Hans.md b/README.zh-Hans.md
index aa05e91..a15d334 100644
--- a/README.zh-Hans.md
+++ b/README.zh-Hans.md
@@ -53,7 +53,7 @@
配套安装uWeb定制Termux应用,可用地址栏作图(类似matlab功能)、超级计算器(无限精度/π的前万位或更多、无限函数、无限常量)、符号演算(解方程、分解因式、求积分导数)、离线字典查找等。譬如地址栏输入sin(x)**5就直接得到函数图形。利用好第三方代码,才能真正发挥出uWeb的潜能。
-#### [Ebrowser](https://github.com/torappinfo/ebrowser) for Windows, MacOS and Linux
+#### Ebrowser for Windows, MacOS and Linux
可看作超微浏览器台式机简易版,用于弥补普通浏览器访问痛点。
- 支持网站自动镜像,可以使用国内镜像自动访问github等网站,可与国际搜索引擎无缝衔接。
- 同样允许直接访问英文技术网站。
diff --git a/README.zh.md b/README.zh.md
index aa05e91..a15d334 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -53,7 +53,7 @@
配套安装uWeb定制Termux应用,可用地址栏作图(类似matlab功能)、超级计算器(无限精度/π的前万位或更多、无限函数、无限常量)、符号演算(解方程、分解因式、求积分导数)、离线字典查找等。譬如地址栏输入sin(x)**5就直接得到函数图形。利用好第三方代码,才能真正发挥出uWeb的潜能。
-#### [Ebrowser](https://github.com/torappinfo/ebrowser) for Windows, MacOS and Linux
+#### Ebrowser for Windows, MacOS and Linux
可看作超微浏览器台式机简易版,用于弥补普通浏览器访问痛点。
- 支持网站自动镜像,可以使用国内镜像自动访问github等网站,可与国际搜索引擎无缝衔接。
- 同样允许直接访问英文技术网站。
diff --git a/ebrowser.md b/ebrowser.md
new file mode 100644
index 0000000..64f65c5
--- /dev/null
+++ b/ebrowser.md
@@ -0,0 +1,83 @@
+### [Ebrowser](https://github.com/torappinfo/ebrowser) as alternative to [uweb browser](https://github.com/torappinfo/uweb)
+Ebrowser is the minimal browser with the philosophy of [Android uweb browser](https://gitlab.com/jamesfengcao/uweb).
+
+- lightweight (less than 20k bytes) without bundled electron.
+- much less memory footprint than edge/chrome browser and highly performant.
+- keyboard (command line) friendly.
+- customizable.
+
+Note: Usually electron apps are heavyweight as they use browsers for simple things. Ebrowser uses core chromium effectively and very lightweight. Recommend to install electron separately.
+
+#### Install (for Windows, macOS and Linux)
+Install ebrowser with nodejs installed
+
+ npm install ebrowser
+
+Run ebrowser
+
+ electron ~/node_modules/ebrowser
+
+#### Key shortcuts
+- CTRL+G: address bar to show page url
+- CTRL+L: focus to address bar
+- CTRL+T: new Tab
+- CTRL+TAB: switch to next tab
+- CTRL+SHIFT+TAB: switch to previous tab
+- CTRL+W: close Tab
+- CTRL+<-: go backward
+- CTRL+->: go forward
+- CTRL+SHIFT+R: enable global redirection ("gredirect.json")
+- CTRL+R: disable global redirection
+- ESC: remove focus. similar to vi normal mode.
+- F5: page refresh/reload
+- F12: devtools
+- ":" for address bar commands
+- "/" for find-in-page with address bar
+- "!" for ":!" address bar commands
+
+#### Address bar commands
+- "/" for find-in-page
+- ":" for address bar commands
+ - autoc [bookmark/history path w/o ext] : load ".rec" file for autocomplete.
+ - b [bookmarkfilename w/o ext] : bookmark current page in file.
+ - bml [filename w/o extension]: load/execute the javascript file.
+ - cert : allow invalid certificates w/o arguments, otherwise restore to default.
+ - clear : the arguments could be
+ - cache : clear cache
+ - dns : clear dns cache
+ - storage: clear site storage data.
+ - ext [extension path]: load unpacked Chrome extension.
+ - nh/uh for No/Use url history.
+ - nj/uj for No/Use external Javascript files.
+ - nr/ur for No/Use "redirect.json" for domain redirection.
+ - np : no proxy
+ - up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName].
+ - ua [useragentName] : set user agent for future tabs. default user agent w/o arguments.
+ - pdf [filename w/o extension] {[options](https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions)} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
+- ":!" address bar commands
+
+#### Commands in no-focus mode (this mode is similar to vi Normal mode)
+Pressing "ESC" to enter no-focus mode if not sure.
+The commands are defined in "mapkeys.json", which will map keys to address bar commands.
+
+#### Configuration files
+- "config": lines of address bar commands.
+- "search.json": search engines as shortcut-queryUrl pairs.
+- "default.autoc": predefined strings for address bar auto completion.
+- "gredirect.json": global redirection urls as array of urls
+- "redirect.json": domain-replacementDomain pairs, default to be applied.
+- "mapkeys.json": keys-addressbarCommands pairs. The addressbar commands are multiple lines of address bar command separated by "\n".
+- "proxy.json": name-[ProxyConfig](https://www.electronjs.org/docs/latest/api/structures/proxy-config) pairs
+- "uas.json" : name-useragent pairs
+
+#### New usages
+- Vector designing with web tech to replace Adobe Illustrator/Inkscape.
+ - Design with web tech.
+
+ - Printing to pdf with customized paper size.
+ - Magnify the pdf paper size to the required size.
+
+ OR
+
+ - Adjust window width and use addressbar command line ":Pdf {}" to export vector graphics.
+ - Use imageMagick to convert to any other vector graphics format.
\ No newline at end of file
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
index f3be4ca..46fe72d 100644
--- a/en/_posts/index.xml
+++ b/en/_posts/index.xml
@@ -6,7 +6,7 @@
Recent content in _Posts on uweb browser: unlimited powerHugoen
- Fri, 24 May 2024 09:50:14 +0800
+ Tue, 11 Jun 2024 08:12:27 +0800Text selection/processing
@@ -111,7 +111,7 @@
/en/bookmarklet/
Fri, 24 Jun 2022 00:00:00 +0000/en/bookmarklet/
- With a href="../index.html#">uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
+ With uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
Restore context menuCSS styles
diff --git a/en/bookmarklet/index.html b/en/bookmarklet/index.html
index 2ced4d3..da4c486 100644
--- a/en/bookmarklet/index.html
+++ b/en/bookmarklet/index.html
@@ -49,7 +49,7 @@
With a href="../index.html#">uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
+
With uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
lightweight (less than 20k bytes) without bundled electron.
+
much less memory footprint than edge/chrome browser and highly performant.
+
keyboard (command line) friendly.
+
customizable.
+
+
Note: Usually electron apps are heavyweight as they use browsers for simple things. Ebrowser uses core chromium effectively and very lightweight. Recommend to install electron separately.
+
Install (for Windows, macOS and Linux)
+
Install ebrowser with nodejs installed
+
npm install ebrowser
+
+
Run ebrowser
+
electron ~/node_modules/ebrowser
+
+
Key shortcuts
+
+
CTRL+G: address bar to show page url
+
CTRL+L: focus to address bar
+
CTRL+T: new Tab
+
CTRL+TAB: switch to next tab
+
CTRL+SHIFT+TAB: switch to previous tab
+
CTRL+W: close Tab
+
CTRL+<-: go backward
+
CTRL+->: go forward
+
CTRL+SHIFT+R: enable global redirection ("gredirect.json")
nr/ur for No/Use "redirect.json" for domain redirection.
+
np : no proxy
+
up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName].
+
ua [useragentName] : set user agent for future tabs. default user agent w/o arguments.
+
pdf [filename w/o extension] {options} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
+
+
+
":!" address bar commands
+
+
Commands in no-focus mode (this mode is similar to vi Normal mode)
+
Pressing "ESC" to enter no-focus mode if not sure.
+The commands are defined in "mapkeys.json", which will map keys to address bar commands.
+
Configuration files
+
+
"config": lines of address bar commands.
+
"search.json": search engines as shortcut-queryUrl pairs.
+
"default.autoc": predefined strings for address bar auto completion.
+
"gredirect.json": global redirection urls as array of urls
+
"redirect.json": domain-replacementDomain pairs, default to be applied.
+
"mapkeys.json": keys-addressbarCommands pairs. The addressbar commands are multiple lines of address bar command separated by "\n".
Vector designing with web tech to replace Adobe Illustrator/Inkscape.
+
+
+
Design with web tech.
+
+
+
Printing to pdf with customized paper size.
+
+
+
Magnify the pdf paper size to the required size.
+
+
+
OR
+
+
Adjust window width and use addressbar command line ":Pdf {}" to export vector graphics.
+
Use imageMagick to convert to any other vector graphics format.
+
+
+
+
+
+
Last Modified: 11 June 2024
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/en/index.xml b/en/index.xml
index 7a4bb43..76c0d3d 100644
--- a/en/index.xml
+++ b/en/index.xml
@@ -6,7 +6,7 @@
Recent content on uweb browser: unlimited powerHugoen
- Mon, 10 Jun 2024 17:27:55 +0800
+ Tue, 11 Jun 2024 18:34:35 +0800Text selection/processing
@@ -132,7 +132,7 @@
/en/bookmarklet/
Fri, 24 Jun 2022 00:00:00 +0000/en/bookmarklet/
- With a href="../index.html#">uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
+ With uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
Restore context menuUrl services
@@ -211,6 +211,13 @@
/en/gesture/Swipe down from the top to show the address bar; swipe up to the top to hide the address bar. Swipe down to the bottom to hide the toolbar with option "swipe to hide tools"; swipe on the bottom corners to show the toolbar.
Swipe left/right near the toolbar to switch window; fling left/right to switch to the last/first window.
Swiping on the top part of content window (near the top address bar by default) triggers corresponding link in the file "default.
+
+
+ /en/ebrowserreadme/
+ Mon, 01 Jan 0001 00:00:00 +0000
+ /en/ebrowserreadme/
+ Ebrowser as alternative to uweb browser Ebrowser is the minimal browser with the philosophy of Android uweb browser.
lightweight (less than 20k bytes) without bundled electron. much less memory footprint than edge/chrome browser and highly performant. keyboard (command line) friendly. customizable. Note: Usually electron apps are heavyweight as they use browsers for simple things. Ebrowser uses core chromium effectively and very lightweight. Recommend to install electron separately.
Install (for Windows, macOS and Linux) Install ebrowser with nodejs installed
+
/en/mirrors/
diff --git a/en/readme/index.html b/en/readme/index.html
index 6b62f93..afeba1a 100644
--- a/en/readme/index.html
+++ b/en/readme/index.html
@@ -88,7 +88,7 @@
Ebrowser is a simple verison of uweb browser on the desktop.
Fully open source.
@@ -106,8 +106,8 @@
-
Last Modified: 10 June 2024
-rename eweb to ebrowser
+
Last Modified: 11 June 2024
+use adaptable ebrowser links
diff --git a/en/sitemap.xml b/en/sitemap.xml
index 7e50be2..675bb0f 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
/en/_posts/
- 2024-05-24T09:50:14+08:00
+ 2024-06-11T08:12:27+08:00/en/tags/
- 2024-05-24T09:50:14+08:00
+ 2024-06-11T08:12:27+08:00/en/
- 2024-06-10T17:27:55+08:00
+ 2024-06-11T18:34:35+08:00/en/tags/javascript/
- 2024-04-02T11:45:19+08:00
+ 2024-06-11T08:12:27+08:00/en/bookmarklet/
- 2024-04-02T11:45:19+08:00
+ 2024-06-11T08:12:27+08:00
+
+ /en/ebrowserreadme/
+ 2024-06-11T18:18:13+08:00/en/mirrors/2024-04-06T10:20:49+08:00/en/readme/
- 2024-06-10T17:27:55+08:00
+ 2024-06-11T18:34:35+08:00/en/unlist/
- 2024-06-10T17:27:55+08:00
+ 2024-06-11T18:34:35+08:00Recent content in Tags on uweb browser: unlimited power
Hugoen
- Fri, 24 May 2024 09:50:14 +0800
+ Tue, 11 Jun 2024 08:12:27 +0800Clipboard
diff --git a/en/tags/javascript/index.xml b/en/tags/javascript/index.xml
index dfc850d..c9b0c01 100644
--- a/en/tags/javascript/index.xml
+++ b/en/tags/javascript/index.xml
@@ -6,7 +6,7 @@
Recent content in Javascript on uweb browser: unlimited powerHugoen
- Tue, 02 Apr 2024 11:45:19 +0800
+ Tue, 11 Jun 2024 08:12:27 +0800JS/CSS/HTML/preprocessing for domains
@@ -20,7 +20,7 @@
/en/bookmarklet/
Fri, 24 Jun 2022 00:00:00 +0000/en/bookmarklet/
- With a href="../index.html#">uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
+ With uweb browser, long pressing any bookmarklet link, click "Open in new tab", the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use "GET" method for "POST"
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
Restore context menuLong pressed link menu
diff --git a/en/unlist/index.xml b/en/unlist/index.xml
index e19e0ea..b1bfc38 100644
--- a/en/unlist/index.xml
+++ b/en/unlist/index.xml
@@ -7,6 +7,13 @@
Hugoen
+
+
+ /en/ebrowserreadme/
+ Mon, 01 Jan 0001 00:00:00 +0000
+ /en/ebrowserreadme/
+ Ebrowser as alternative to uweb browser Ebrowser is the minimal browser with the philosophy of Android uweb browser.
lightweight (less than 20k bytes) without bundled electron. much less memory footprint than edge/chrome browser and highly performant. keyboard (command line) friendly. customizable. Note: Usually electron apps are heavyweight as they use browsers for simple things. Ebrowser uses core chromium effectively and very lightweight. Recommend to install electron separately.
Install (for Windows, macOS and Linux) Install ebrowser with nodejs installed
+
/en/mirrors/
diff --git a/misc/ebrowser/index.html b/misc/ebrowser/index.html
new file mode 100644
index 0000000..c5447ad
--- /dev/null
+++ b/misc/ebrowser/index.html
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+