diff --git a/README.zh.md b/README.zh.md
index 7894a56..9c38655 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -4,12 +4,13 @@
[Amazon appstore](https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5)
-Downloads
+下载
[超微浏览器下载及使用技巧](https://uwebzh.netlify.app/zh/)
-(Mirrors: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [netlify](https://uwebzh.netlify.app/zh/) [stormkit](https://uweb.stormkit.dev/zh/) [surge](https://uweb.surge.sh/zh/) [github](https://torappinfo.github.io/uweb/zh/) [torapp](https://torapp.eu.org) [epizy](http://uweb.epizy.com/) [pages](https://muweb.pages.dev/zh/) [render](https://uweb.onrender.com) [bitbucket](https://torappinfo.bitbucket.io/zh/) [vercel](https://uweb.vercel.app/zh/))
+(备用镜像: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [netlify](https://uwebzh.netlify.app/zh/) [stormkit](https://uweb.stormkit.dev/zh/) [surge](https://uweb.surge.sh/zh/) [github](https://torappinfo.github.io/uweb/zh/) [torapp](https://torapp.eu.org) [epizy](http://uweb.epizy.com/) [pages](https://muweb.pages.dev/zh/) [render](https://uweb.onrender.com) [bitbucket](https://torappinfo.bitbucket.io/zh/) [vercel](https://uweb.vercel.app/zh/))
-- 国内可以直接使用newbing/chatgpt
+- 国内可以直接使用bingChat/必应写作/chatgpt
+- 免魔法国内直接使用google翻译
- 微:不到200K。
- 威:支持使用js脚本、url服务、shell命令、内部功能链接定制菜单/(新)按钮/手势; 远程数据皆可成网站。html5应用增强,可匹配本地应用。
- 便捷:图书(pdf/djvu)/txt/词典(mdict,kiwix)/命令行/APP/webapp(web extensions)可作为搜索引擎使用。
diff --git a/en/changelog/index.html b/en/changelog/index.html
index 3cced4c..dc63c06 100644
--- a/en/changelog/index.html
+++ b/en/changelog/index.html
@@ -52,7 +52,8 @@
pagure
Change logs
-991: global url redirection support.
+
998: Bookmarklets to support CSP sites.
+991: global url redirection support.
988: hosts file to support response headers.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
@@ -78,8 +79,8 @@
-
Last Modified: 17 April 2023
-enhance redirection cookie support
+
Last Modified: 29 April 2023
+add google translate in rjs.py
diff --git a/en/index.xml b/en/index.xml
index 60cc73d..71d95ec 100644
--- a/en/index.xml
+++ b/en/index.xml
@@ -209,7 +209,8 @@ sourceforge
powerfolder
pcloud
pagure
-Main features Change logs 991: global url redirection support.
+Main features Change logs 998: Bookmarklets to support CSP sites.
+991: global url redirection support.
988: hosts file to support response headers.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
@@ -344,9 +345,10 @@ Global javascript files locates in the subfolder "js" of app p
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password
Instant page
large size javascript code can be installed to the folder "bookmarklet" (long pressing button "js" to popup menu):
+google translation
Eruda
Performance
-Remote javascript is defined in default.
+Note: Bookmarklets whose names begin with "!
-
diff --git a/en/rjs/index.html b/en/rjs/index.html
index 72f3292..5574de1 100644
--- a/en/rjs/index.html
+++ b/en/rjs/index.html
@@ -53,8 +53,10 @@
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password
Instant page
large size javascript code can be installed to the folder "bookmarklet" (long pressing button "js" to popup menu):
-Eruda
+google translation
+Eruda
Performance
+Note: Bookmarklets whose names begin with "!" are allowed to load remote js on CSP (Content Security Policy) sites.
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the "search" button to popup the menu.):
Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);
Selection to line:;let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);
@@ -65,8 +67,6 @@
New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)
Site search:;open('i:15site:' + location.hostname)
Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
-Google translate
-Google translate to English
Remote script configuration file "default.rjs" whose lines have the following format:
[script name]:[javascript code to return url arrays]
Activated scripts
@@ -77,7 +77,7 @@
Last Modified: 29 April 2023
-support .js files under 'css' folder
+add google translate in rjs.py
diff --git a/en/sitemap.xml b/en/sitemap.xml
index f14b91a..2e8be63 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -58,7 +58,7 @@
/>
/en/
- 2023-04-29T13:34:57+08:00
+ 2023-04-29T21:37:35+08:00
/en/topposts/
- 2023-04-29T13:34:57+08:00
+ 2023-04-29T21:37:35+08:00
/en/changelog/
- 2023-04-17T07:27:43+08:00
+ 2023-04-29T19:23:15+08:00
/en/sitemap/
2023-02-01T09:52:11+08:00
@@ -291,7 +291,7 @@
/>
/en/rjs/
- 2023-04-29T13:34:57+08:00
+ 2023-04-29T21:37:35+08:00
+Note: Bookmarklets whose names begin with "!
diff --git a/sitemap.xml b/sitemap.xml
index 28f05de..d4b252b 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -4,14 +4,14 @@
en/sitemap.xml
- 2023-04-29T13:34:57+08:00
+ 2023-04-29T21:37:35+08:00
zh/sitemap.xml
- 2023-04-29T13:11:23+08:00
+ 2023-04-29T21:47:55+08:00
diff --git a/test/alert.js b/test/alert.js
new file mode 100644
index 0000000..d3f68a4
--- /dev/null
+++ b/test/alert.js
@@ -0,0 +1 @@
+alert("hi");
diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml
index 371f056..e885f84 100644
--- a/zh/_posts/index.xml
+++ b/zh/_posts/index.xml
@@ -104,9 +104,10 @@ c[cssFlag]: For example, "c12" will apply the third and fourth
Sat, 04 Mar 2023 00:00:00 +0000
/zh/tips/
- 免魔法直接使用newbing/chatgpt
-免魔法使用重定向访问国外技术网址
-免魔法google翻译
+ 免魔法国内直接使用系列
+newbing/chatgpt
+使用重定向访问国外技术网址
+google翻译
目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:
diff --git a/zh/index.xml b/zh/index.xml
index 2270eea..3a84734 100644
--- a/zh/index.xml
+++ b/zh/index.xml
@@ -104,9 +104,10 @@ c[cssFlag]: For example, "c12" will apply the third and fourth
Sat, 04 Mar 2023 00:00:00 +0000
/zh/tips/
- 免魔法直接使用newbing/chatgpt
-免魔法使用重定向访问国外技术网址
-免魔法google翻译
+ 免魔法国内直接使用系列
+newbing/chatgpt
+使用重定向访问国外技术网址
+google翻译
目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:
@@ -495,7 +496,8 @@ gozer 广告屏蔽样式
极速网页
大型脚本可安装到"bookmarklet"目录下(长按js按钮):
免魔法google翻译
-google翻译
+免魔法Google翻译至简体
+免魔法Google翻译至英文
Eruda
Performance
移除覆盖物
@@ -508,7 +510,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov
站内搜索:;open('i:15site:' + location.hostname)
编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
-点击安装免魔法google翻译、背景图等
+点击安装背景图等
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
[远程脚本名]:[返回url数组的javascript代码]
其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。
diff --git a/zh/rjs/index.html b/zh/rjs/index.html
index cd2d307..44b4c83 100644
--- a/zh/rjs/index.html
+++ b/zh/rjs/index.html
@@ -53,8 +53,9 @@
<a target=_self" href="i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js">记住密码
极速网页
大型脚本可安装到"bookmarklet"目录下(长按js按钮):
-免魔法google翻译
-google翻译
+免魔法google翻译
+免魔法Google翻译至简体
+免魔法Google翻译至英文
Eruda
Performance
移除覆盖物
@@ -67,14 +68,14 @@
站内搜索:;open('i:15site:' + location.hostname)
编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
-点击安装免魔法google翻译、背景图等
+点击安装背景图等
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
[远程脚本名]:[返回url数组的javascript代码]
其中url可以为本地http脚本地址。譬如'https://local/...' (本地html5应用或离线缓存)。此时,js脚本也可使用.link文件方式调用。
Last Modified: 29 April 2023
-add google translate for restricted area
+add google translate in rjs.py
diff --git a/zh/searchurl/txt/rjs.cfg b/zh/searchurl/txt/rjs.cfg
index 43a02e6..85d11a9 100644
--- a/zh/searchurl/txt/rjs.cfg
+++ b/zh/searchurl/txt/rjs.cfg
@@ -1,6 +1 @@
背景图:;{document.deepCss=function(a,b){if(!a||!a.style)return'';let c=b.replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if(a.currentStyle)return a.style[c]||a.currentStyle[c]||'';let d=document.defaultView||window;return a.style[c]||d.getComputedStyle(a,'').getPropertyValue(b)||''};Array.prototype.indexOf=Array.prototype.indexOf||function(a,b){b=b||0;for(let c=this.length;bBackground images