From c3173e0f97c06c8bc8384991938eb72ddc9824f4 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Tue, 18 Jun 2024 23:28:12 +0800
Subject: [PATCH] support ebrowser update
---
ebrowser.md | 6 +-
en/ebrowserreadme/index.html | 4 +-
en/index.xml | 4 +-
en/mirrors.md | 2 -
en/mirrors/index.html | 8 +--
en/readme/index.html | 2 +-
en/rjs/index.html | 2 +-
en/sitemap.xml | 8 +--
en/unlist/index.xml | 2 +-
misc/ebrowser/package.json | 47 +++++++++++++++
misc/ebrowser/webview.js | 111 +++++++++++++++++++++++++++++++----
sitemap.xml | 2 +-
zh/search/index.html | 2 +-
13 files changed, 167 insertions(+), 33 deletions(-)
create mode 100644 misc/ebrowser/package.json
diff --git a/ebrowser.md b/ebrowser.md
index 87344a4..7d43624 100644
--- a/ebrowser.md
+++ b/ebrowser.md
@@ -56,6 +56,7 @@ Later on, you can run "npm install electron" to update electron/chromium or "npm
- storage: clear site storage data.
- {[options](https://www.electronjs.org/docs/latest/api/session#sescleardataoptions)}
- ext [extension path]: load unpacked Chrome extension.
+ - gr [gredirect index]: global redirection with corresponding index. Use the first global redirection url if no argument. Disable global redirection with any index out of the range.
- nc/uc : No Cookie forwarding/Use Cookie forwarding with global redirection.
- nh/uh for No/Use url history.
- nj/uj for No/Use external Javascript files.
@@ -63,15 +64,16 @@ Later on, you can run "npm install electron" to update electron/chromium or "npm
- np : no proxy.
- up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName]. ":up" command also disables global and domain redirections, which are not restored by ":np".
- ua [useragentName] : set user agent for future tabs. default user agent w/o arguments.
+ - update [updateurl] : update the app. updateurl is optional.
- 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
+- "!" address bar commands
"!xx ..." evaluates "xx.js" with the whole address bar text as arguments[0].
#### Commands in no-focus mode (this mode is similar to vi Normal mode)
Pressing "ESC" to enter no-focus mode if not sure.
- ":" for address bar commands
- "/" for find-in-page with address bar
-- "!" for ":!" address bar commands
+- "!" for "!" address bar commands
The other commands are defined in "mapkeys.json", which will map keys to address bar commands.
diff --git a/en/ebrowserreadme/index.html b/en/ebrowserreadme/index.html
index bd43ba3..ce9e4ae 100644
--- a/en/ebrowserreadme/index.html
+++ b/en/ebrowserreadme/index.html
@@ -102,6 +102,7 @@ npm install ebrowser
gr [gredirect index]: global redirection with corresponding index. Use the first global redirection url if no argument. Disable global redirection with any index out of the range.
nc/uc : No Cookie forwarding/Use Cookie forwarding with global redirection.
nh/uh for No/Use url history.
nj/uj for No/Use external Javascript files.
@@ -109,6 +110,7 @@ npm install ebrowser
np : no proxy.
up [proxyName] : use proxy. privous proxy or the first proxy in proxy.json w/o [proxyName]. ":up" command also disables global and domain redirections, which are not restored by ":np".
ua [useragentName] : set user agent for future tabs. default user agent w/o arguments.
+
update [updateurl] : update the app. updateurl is optional.
pdf [filename w/o extension] {options} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
@@ -120,7 +122,7 @@ npm install ebrowser
":" for address bar commands
"/" for find-in-page with address bar
-
"!" for ":!" address bar commands
+
"!" for "!" address bar commands
The other commands are defined in "mapkeys.json", which will map keys to address bar commands.