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>
<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>
</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
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
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>
<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>
@ -78,7 +79,7 @@
</div>
<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>
</p>

View file

@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod>
<lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -113,7 +113,7 @@
/>
</url><url>
<loc>/en/topposts/</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod>
<lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -291,7 +291,7 @@
/>
</url><url>
<loc>/en/rjs/</loc>
<lastmod>2023-04-29T19:21:09+08:00</lastmod>
<lastmod>2023-04-29T21:10:54+08:00</lastmod>
<xhtml:link
rel="alternate"
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
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
Note: Bookmarklets whose names begin with &amp;quot;!</description>