Compare commits

...

8 Commits

Author SHA1 Message Date
James Feng Cao 398ba8c89a add google translate bookmarklets 2023-04-29 21:48:40 +08:00
James Feng Cao e9ecf66872 add google translate bookmarklets 2023-04-29 21:12:12 +08:00
James Feng Cao 99f6e7d2c7 local bookmarklets to support CSP sites 2023-04-29 19:24:02 +08:00
James Feng Cao bef3445154 add test/alert.js 2023-04-29 17:47:59 +08:00
James Feng Cao 830c97bf91 encoding '+' in links 2023-04-29 15:01:22 +08:00
James Feng Cao 64224d5cc6 minor changes 2023-04-29 14:29:14 +08:00
James Feng Cao 6e30989d56 add google translate menus 2023-04-29 14:05:37 +08:00
James Feng Cao df40846eb5 add google translate menus 2023-04-29 13:54:40 +08:00
15 changed files with 56 additions and 48 deletions

View File

@ -4,12 +4,13 @@
[Amazon appstore](https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5)
<a href="en/download.md" onclick="{let u=location.href; if(u.endsWith('index.html')){location='../../en/changelog/index.html';return false;}}">Downloads</a>
<a href="en/download.md" onclick="{let u=location.href; if(u.endsWith('index.html')){location='../../en/changelog/index.html';return false;}}">下载</a>
[超微浏览器下载及使用技巧](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/))
- <span style="color:red">国内可以直接使用<a href="https://uwebzh.netlify.app/zh/tips/index.html" onclick="{let u=location.href; if(u.endsWith('index.html')){location='../tips/index.html';return false;}}">newbing/chatgpt</a></span>
- <span style="color:red">国内可以直接使用<a href="https://uwebzh.netlify.app/zh/tips/index.html" onclick="{let u=location.href; if(u.endsWith('index.html')){location='../tips/index.html';return false;}}">bingChat/必应写作/chatgpt</a></span>
- <span style="color:red">免魔法国内直接使用google翻译</span>
- 微不到200K。
- 威支持使用js脚本、url服务、shell命令、内部功能链接定制菜单按钮手势; 远程数据皆可成网站。html5应用增强可匹配本地应用。
- 便捷图书pdf/djvu/txt/词典mdict,kiwix/命令行/APP/webapp(web extensions)可作为搜索引擎使用。

View File

@ -52,7 +52,8 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>991: <a href="../redirect/index.html">global url redirection</a> support.<br>
<p>998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
991: <a href="../redirect/index.html">global url redirection</a> support.<br>
988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<br>
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
983: support <a href="../adblock_domain/index.html">&quot;hosts&quot;</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
@ -78,8 +79,8 @@
</ul>
</div>
<p>Last Modified: 17 April 2023<br>
enhance redirection cookie support<br>
<p>Last Modified: 29 April 2023<br>
add google translate in rjs.py<br>
<pre></pre>
</p>

View File

@ -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 &amp;quot;hosts&amp;quot; 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 &amp;quot;js&amp;quot; of app p
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&amp;quot;&amp;gt;Save password
Instant page
large size javascript code can be installed to the folder &amp;quot;bookmarklet&amp;quot; (long pressing button &amp;quot;js&amp;quot; to popup menu):
google translation
Eruda
Performance
Remote javascript is defined in default.</description>
Note: Bookmarklets whose names begin with &amp;quot;!</description>
</item>
<item>

View File

@ -53,8 +53,10 @@
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password</a><br>
<a target="_self" href="i:0hjs/instantPage.js:https://fastly.jsdelivr.net/npm/instant.page">Instant page</a></p>
<p><b>large size javascript code</b> can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):<br>
<a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
<a target="_self" href="i:0hbookmarklet/!googleTranslate.js:https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit:%0A{let d=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">google translation</a></p>
<p><a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
<a target="_self" href="i:0hbookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a></p>
<p>Note: Bookmarklets whose names begin with &quot;!&quot; are allowed to load remote js on CSP (Content Security Policy) sites.</p>
<p><b>Remote javascript</b> is defined in default.rjs. Click the following link to install. (<b>Force exit and re-launch the app</b>, then long press the &quot;search&quot; button to popup the menu.)</p>
<p><a href="i:04Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a></p>
<p><a href="i:04Selection to line:;let g='line';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);</a></p>
@ -65,8 +67,6 @@
<p><a href="i:04New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)">New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)</a></p>
<p><a href="i:04Site search:;open('i:15site:' + location.hostname)">Site search:;open('i:15site:' + location.hostname)</a></p>
<p><a href="i:04Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v">Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v</a></p>
<p><a target="_self" href="i:0gdefault.rjs::google translate:['https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'];b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:[]},'google_translate_element');}%0A">Google translate</a></p>
<p><a target="_self" href="i:0gdefault.rjs::google translate2en:['https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'];location.hash=location.hash+'#googtrans(en)';b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:[]},'google_translate_element');}%0A">Google translate to English</a></p>
<p>Remote script configuration file &quot;default.rjs&quot; whose lines have the following format:<br>
[script name]:[javascript code to return url arrays]</p>
<h4 id="activated-scripts">Activated scripts</h4>
@ -77,7 +77,7 @@
</div>
<p>Last Modified: 29 April 2023<br>
support .js files under &#39;css&#39; folder<br>
add google translate in rjs.py<br>
<pre></pre>
</p>

View File

@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-29T13:34:57+08:00</lastmod>
<lastmod>2023-04-29T21:37:35+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -113,7 +113,7 @@
/>
</url><url>
<loc>/en/topposts/</loc>
<lastmod>2023-04-29T13:34:57+08:00</lastmod>
<lastmod>2023-04-29T21:37:35+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -210,7 +210,7 @@
/>
</url><url>
<loc>/en/changelog/</loc>
<lastmod>2023-04-17T07:27:43+08:00</lastmod>
<lastmod>2023-04-29T19:23:15+08:00</lastmod>
</url><url>
<loc>/en/sitemap/</loc>
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
@ -291,7 +291,7 @@
/>
</url><url>
<loc>/en/rjs/</loc>
<lastmod>2023-04-29T13:34:57+08:00</lastmod>
<lastmod>2023-04-29T21:37:35+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View File

@ -65,7 +65,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 &amp;quot;hosts&amp;quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
@ -144,9 +145,10 @@ Global javascript files locates in the subfolder &amp;quot;js&amp;quot; of app p
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&amp;quot;&amp;gt;Save password
Instant page
large size javascript code can be installed to the folder &amp;quot;bookmarklet&amp;quot; (long pressing button &amp;quot;js&amp;quot; to popup menu):
google translation
Eruda
Performance
Remote javascript is defined in default.</description>
Note: Bookmarklets whose names begin with &amp;quot;!</description>
</item>
</channel>

View File

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-04-29T13:34:57+08:00</lastmod>
<lastmod>2023-04-29T21:37:35+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
<lastmod>2023-04-29T21:47:55+08:00</lastmod>
</sitemap>

1
test/alert.js Normal file
View File

@ -0,0 +1 @@
alert("hi");

View File

@ -104,9 +104,10 @@ c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth
<pubDate>Sat, 04 Mar 2023 00:00:00 +0000</pubDate>
<guid>/zh/tips/</guid>
<description>免魔法直接使用newbing/chatgpt
免魔法使用重定向访问国外技术网址
免魔法google翻译
<description>免魔法国内直接使用系列
newbing/chatgpt
使用重定向访问国外技术网址
google翻译
目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:

View File

@ -104,9 +104,10 @@ c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth
<pubDate>Sat, 04 Mar 2023 00:00:00 +0000</pubDate>
<guid>/zh/tips/</guid>
<description>免魔法直接使用newbing/chatgpt
免魔法使用重定向访问国外技术网址
免魔法google翻译
<description>免魔法国内直接使用系列
newbing/chatgpt
使用重定向访问国外技术网址
google翻译
目录配置及使用外部文件管理器
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见Shell command mode。
准确显示PC网页:
@ -495,7 +496,8 @@ gozer 广告屏蔽样式
极速网页
大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮
免魔法google翻译
google翻译
免魔法Google翻译至简体
免魔法Google翻译至英文
Eruda
Performance
移除覆盖物
@ -508,7 +510,7 @@ Selection to paragraph:;let g=&#39;paragraph&#39;;getSelection().modify(&#39;mov
站内搜索:;open(&#39;i:15site:&#39; + location.hostname)
编辑器拼写检查:;let t=document.getElementsByTagName(&#39;textarea&#39;);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脚本地址。譬如&#39;https://local/...&#39; (本地html5应用或离线缓存)。此时js脚本也可使用.link文件方式调用。</description>

View File

@ -53,8 +53,9 @@
&lt;a target=_self&quot; href=&quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&quot;&gt;记住密码</a><br>
<a target="_self" href="i:0hjs/极速网页.js:https://fastly.jsdelivr.net/npm/instant.page">极速网页</a></p>
<p><b>大型脚本</b>可安装到&quot;bookmarklet&quot;目录下长按js按钮<br>
<a target="_self" href="i:0hbookmarklet/google翻译.js:https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js:%0A{let d=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">免魔法google翻译</a></p>
<p><a target="_self" href="i:0hbookmarklet/google翻译.js:https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit:%0A{let d=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">google翻译</a></p>
<a target="_self" href="i:0hbookmarklet/!google翻译.js:https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js:%0A{let d=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">免魔法google翻译</a></p>
<p><a target="_self" href="i:0hbookmarklet/!Google至简体:https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js:%0A{let d=document;location.hash=location.hash%2B'#googtrans(zh-CN)';b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,autoDisplay:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">免魔法Google翻译至简体</a></p>
<p><a target="_self" href="i:0hbookmarklet/!Google至英文:https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js:%0A{let d=document;location.hash=location.hash%2B'#googtrans(en)';b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,autoDisplay:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">免魔法Google翻译至英文</a></p>
<p><a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a></p>
<p><a target="_self" href="i:0hbookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a><br>
<a target="_self" href="i:0hbookmarklet/移除覆盖物.js:../searchurl/bml/content/rmo.js">移除覆盖物</a></p>
@ -67,14 +68,14 @@
<p><a href="i:04站内搜索:;open('i:15site:' + location.hostname)">站内搜索:;open('i:15site:' + location.hostname)</a></p>
<p><a href="i:04编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v">编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v</a></p>
<p>远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。<br>
<a target="_self" href="i:0gdefault.rjs:../searchurl/txt/rjs.cfg">点击安装免魔法google翻译、背景图等</a></p>
<a target="_self" href="i:0gdefault.rjs:../searchurl/txt/rjs.cfg">点击安装背景图等</a></p>
<p>远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算)<br>
[远程脚本名]:[返回url数组的javascript代码]</p>
<p>其中url可以为本地http脚本地址。譬如'https://local/...' (<a href="../html5/index.html">本地html5应用</a><a href="../offlinecache/index.html">离线缓存</a>)。此时js脚本也可使用<a href="../links/index.html">.link文件</a>方式调用。</p>
</div>
<p>Last Modified: 29 April 2023<br>
add google translate for restricted area<br>
add google translate in rjs.py<br>
<pre></pre>
</p>

View File

@ -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;b<c;){if(this[b]===a)return b;++b}return-1};let e=function(){let a,b=[],c=document.getElementsByTagName('*');for(c=b.slice.call(c,0,c.length);c.length;)(a=document.deepCss(c.shift(),'background-image'))&&(a=/url\(['"]?([^")]+)/.exec(a)||[]),(a=a[1])&&-1==b.indexOf(a)&&(b[b.length]=a);return b}();if(0<e.length){let d=window.open('').document;d.write('<html><head><title>Background images</title></head></body>');for(let f=0;f<e.length;f++)d.write('<img src='),d.write(e[f]),d.write('>');d.write('</body></html>');d.close()}}
google翻译:['https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js'];b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}
googleTranslate2en:['https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js'];location.hash=location.hash+"#googtrans(en)";b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}
google翻译至简体:['https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js'];location.hash=location.hash+"#googtrans(zh-CN)";b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}
google翻译至繁体:['https://fastly.jsdelivr.net/gh/torappinfo/js1@main/element.js'];location.hash=location.hash+"#googtrans(zh-TW)";b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-04-29T12:12:08+08:00</lastmod>
<lastmod>2023-04-29T14:24:45+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
<lastmod>2023-04-29T21:47:55+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -74,7 +74,7 @@
/>
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2023-04-29T12:12:08+08:00</lastmod>
<lastmod>2023-04-29T14:24:45+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -126,7 +126,7 @@
/>
</url><url>
<loc>/zh/topposts/</loc>
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
<lastmod>2023-04-29T21:47:55+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -252,7 +252,7 @@
<lastmod>2022-09-24T14:06:03+08:00</lastmod>
</url><url>
<loc>/zh/rjs/</loc>
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
<lastmod>2023-04-29T21:47:55+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View File

@ -47,9 +47,10 @@
<ul class="tags">
</ul>
<p><a href="#newbing">免魔法直接使用newbing/chatgpt</a><br>
<a href="../redirect/index.html">免魔法使用重定向访问国外技术网址</a><br>
<a href="../rjs/index.html">免魔法google翻译</a></p>
<p><strong>免魔法国内直接使用系列</strong><br>
<a href="#newbing">newbing/chatgpt</a><br>
<a href="../redirect/index.html">使用重定向访问国外技术网址</a><br>
<a href="../rjs/index.html">google翻译</a></p>
<p><strong>目录配置及使用外部文件管理器</strong><br>
超微浏览器可以将配置目录或子目录符号链接至任意外部公共目录。安装有定制termux的用户也可以使用移动设备自带或第三方文件管理器管理超微内部指定目录。具体配置可见<a href="../../en/acmd/index.html">Shell command mode</a></p>
<p><strong>准确显示PC网页</strong>:<br>
@ -99,7 +100,7 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
</div>
<p>Last Modified: 29 April 2023<br>
add google translate for restricted area<br>
fix &#39;&#43;&#39; in links for rjs.py<br>
<pre></pre>
</p>

View File

@ -198,7 +198,8 @@ tgz install::toybox tar -xzf %f -C /
极速网页
大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮
免魔法google翻译
google翻译
免魔法Google翻译至简体
免魔法Google翻译至英文
Eruda
Performance
移除覆盖物
@ -211,7 +212,7 @@ Selection to paragraph:;let g=&#39;paragraph&#39;;getSelection().modify(&#39;mov
站内搜索:;open(&#39;i:15site:&#39; + location.hostname)
编辑器拼写检查:;let t=document.getElementsByTagName(&#39;textarea&#39;);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脚本地址。譬如&#39;https://local/...&#39; (本地html5应用或离线缓存)。此时js脚本也可使用.link文件方式调用。</description>