add google translate bookmarklets

This commit is contained in:
James Feng Cao 2023-04-29 21:12:12 +08:00
parent 99f6e7d2c7
commit e9ecf66872
10 changed files with 18 additions and 12 deletions

View file

@ -80,7 +80,7 @@
</div> </div>
<p>Last Modified: 29 April 2023<br> <p>Last Modified: 29 April 2023<br>
bookmarklets to support CSP sites<br> fix &#39;&#43;&#39; in links for rjs.py<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -345,6 +345,7 @@ 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 &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 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): 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 Eruda
Performance Performance
Note: Bookmarklets whose names begin with &amp;quot;!</description> Note: Bookmarklets whose names begin with &amp;quot;!</description>

View file

@ -53,7 +53,8 @@
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password</a><br> &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> <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> <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> <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>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><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>
@ -78,7 +79,7 @@
</div> </div>
<p>Last Modified: 29 April 2023<br> <p>Last Modified: 29 April 2023<br>
bookmarklets to support CSP sites<br> fix &#39;&#43;&#39; in links for rjs.py<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -58,7 +58,7 @@
/> />
</url><url> </url><url>
<loc>/en/</loc> <loc>/en/</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod> <lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -113,7 +113,7 @@
/> />
</url><url> </url><url>
<loc>/en/topposts/</loc> <loc>/en/topposts/</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod> <lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -291,7 +291,7 @@
/> />
</url><url> </url><url>
<loc>/en/rjs/</loc> <loc>/en/rjs/</loc>
<lastmod>2023-04-29T19:21:09+08:00</lastmod> <lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"

View file

@ -145,6 +145,7 @@ 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 &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 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): 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 Eruda
Performance Performance
Note: Bookmarklets whose names begin with &amp;quot;!</description> Note: Bookmarklets whose names begin with &amp;quot;!</description>

View file

@ -4,14 +4,14 @@
<sitemap> <sitemap>
<loc>en/sitemap.xml</loc> <loc>en/sitemap.xml</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod> <lastmod>2023-04-29T21:10:54+08:00</lastmod>
</sitemap> </sitemap>
<sitemap> <sitemap>
<loc>zh/sitemap.xml</loc> <loc>zh/sitemap.xml</loc>
<lastmod>2023-04-29T14:58:20+08:00</lastmod> <lastmod>2023-04-29T21:10:20+08:00</lastmod>
</sitemap> </sitemap>

View file

@ -495,6 +495,7 @@ gozer 广告屏蔽样式
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&amp;quot;&amp;gt;记住密码 &amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&amp;quot;&amp;gt;记住密码
极速网页 极速网页
大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮 大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮
免魔法google翻译
Eruda Eruda
Performance Performance
移除覆盖物 移除覆盖物

View file

@ -53,7 +53,8 @@
&lt;a target=_self&quot; href=&quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&quot;&gt;记住密码</a><br> &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> <a target="_self" href="i:0hjs/极速网页.js:https://fastly.jsdelivr.net/npm/instant.page">极速网页</a></p>
<p><b>大型脚本</b>可安装到&quot;bookmarklet&quot;目录下长按js按钮<br> <p><b>大型脚本</b>可安装到&quot;bookmarklet&quot;目录下长按js按钮<br>
<a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</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/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> <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> <a target="_self" href="i:0hbookmarklet/移除覆盖物.js:../searchurl/bml/content/rmo.js">移除覆盖物</a></p>
<p><b>远程脚本</b>配置文件default.rjs样列如下点击以下链接自动安装 (清空后台重启浏览器,长按搜索按钮,则弹出远程脚本菜单)</p> <p><b>远程脚本</b>配置文件default.rjs样列如下点击以下链接自动安装 (清空后台重启浏览器,长按搜索按钮,则弹出远程脚本菜单)</p>

View file

@ -29,7 +29,7 @@
/> />
</url><url> </url><url>
<loc>/zh/</loc> <loc>/zh/</loc>
<lastmod>2023-04-29T14:58:20+08:00</lastmod> <lastmod>2023-04-29T21:10:20+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"
@ -126,7 +126,7 @@
/> />
</url><url> </url><url>
<loc>/zh/topposts/</loc> <loc>/zh/topposts/</loc>
<lastmod>2023-04-29T14:58:20+08:00</lastmod> <lastmod>2023-04-29T21:10:20+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"
@ -252,7 +252,7 @@
<lastmod>2022-09-24T14:06:03+08:00</lastmod> <lastmod>2022-09-24T14:06:03+08:00</lastmod>
</url><url> </url><url>
<loc>/zh/rjs/</loc> <loc>/zh/rjs/</loc>
<lastmod>2023-04-29T14:58:20+08:00</lastmod> <lastmod>2023-04-29T21:10:20+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="en" hreflang="en"

View file

@ -197,6 +197,7 @@ tgz install::toybox tar -xzf %f -C /
&amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&amp;quot;&amp;gt;记住密码 &amp;lt;a target=_self&amp;quot; href=&amp;quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&amp;quot;&amp;gt;记住密码
极速网页 极速网页
大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮 大型脚本可安装到&amp;quot;bookmarklet&amp;quot;目录下长按js按钮
免魔法google翻译
Eruda Eruda
Performance Performance
移除覆盖物 移除覆盖物