mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add google translate menus
This commit is contained in:
parent
fc717a7c90
commit
df40846eb5
6 changed files with 9 additions and 6 deletions
|
@ -77,7 +77,7 @@
|
|||
|
||||
</div>
|
||||
<p>Last Modified: 29 April 2023<br>
|
||||
support .js files under 'css' folder<br>
|
||||
add google translation<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<sitemap>
|
||||
<loc>zh/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
|
||||
<lastmod>2023-04-29T13:54:10+08:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
|
@ -507,6 +507,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov
|
|||
新窗口打开链接:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)
|
||||
站内搜索:;open('i:15site:' + location.hostname)
|
||||
编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
|
||||
免魔法Google翻译至简体
|
||||
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
|
||||
点击安装免魔法google翻译、背景图等
|
||||
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
<p><a href="i:04新窗口打开链接:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)">新窗口打开链接:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)</a></p>
|
||||
<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><a target="_self" href="i:0gdefault.rjs::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,autoDisplay:true,pageLanguage:'auto',includedLanguages:[]},'google_translate_element');}%0A">免魔法Google翻译至简体</a></p>
|
||||
<p>远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:<br>
|
||||
<a target="_self" href="i:0gdefault.rjs:../searchurl/txt/rjs.cfg">点击安装免魔法google翻译、背景图等</a></p>
|
||||
<p>远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):<br>
|
||||
|
@ -74,7 +75,7 @@
|
|||
|
||||
</div>
|
||||
<p>Last Modified: 29 April 2023<br>
|
||||
add google translate for restricted area<br>
|
||||
add google translation<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/zh/</loc>
|
||||
<lastmod>2023-04-29T13:11:23+08:00</lastmod>
|
||||
<lastmod>2023-04-29T13:54:10+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-29T13:54:10+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-29T13:54:10+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
|
|
|
@ -210,6 +210,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov
|
|||
新窗口打开链接:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)
|
||||
站内搜索:;open('i:15site:' + location.hostname)
|
||||
编辑器拼写检查:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
|
||||
免魔法Google翻译至简体
|
||||
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
|
||||
点击安装免魔法google翻译、背景图等
|
||||
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
|
||||
|
|
Loading…
Reference in a new issue