mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add google translate bookmarklets
This commit is contained in:
parent
99f6e7d2c7
commit
e9ecf66872
10 changed files with 18 additions and 12 deletions
|
@ -80,7 +80,7 @@
|
|||
|
||||
</div>
|
||||
<p>Last Modified: 29 April 2023<br>
|
||||
bookmarklets to support CSP sites<br>
|
||||
fix '+' in links for rjs.py<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -345,6 +345,7 @@ Global javascript files locates in the subfolder &quot;js&quot; of app p
|
|||
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password
|
||||
Instant page
|
||||
large size javascript code can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):
|
||||
google translation
|
||||
Eruda
|
||||
Performance
|
||||
Note: Bookmarklets whose names begin with &quot;!</description>
|
||||
|
|
|
@ -53,7 +53,8 @@
|
|||
<a target=_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">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 "bookmarklet" (long pressing button "js" 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 "!" 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 "search" 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 '+' in links for rjs.py<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -145,6 +145,7 @@ Global javascript files locates in the subfolder &quot;js&quot; of app p
|
|||
&lt;a target=_self&quot; href=&quot;i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js&quot;&gt;Save password
|
||||
Instant page
|
||||
large size javascript code can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):
|
||||
google translation
|
||||
Eruda
|
||||
Performance
|
||||
Note: Bookmarklets whose names begin with &quot;!</description>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue