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
df40846eb5
commit
6e30989d56
5 changed files with 9 additions and 12 deletions
|
@ -11,7 +11,7 @@
|
|||
<sitemap>
|
||||
<loc>zh/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2023-04-29T13:54:10+08:00</lastmod>
|
||||
<lastmod>2023-04-29T14:04:43+08:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
|
@ -494,8 +494,6 @@ gozer 广告屏蔽样式
|
|||
&lt;a target=_self&quot; href=&quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&quot;&gt;记住密码
|
||||
极速网页
|
||||
大型脚本可安装到&quot;bookmarklet&quot;目录下(长按js按钮):
|
||||
免魔法google翻译
|
||||
google翻译
|
||||
Eruda
|
||||
Performance
|
||||
移除覆盖物
|
||||
|
@ -508,6 +506,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov
|
|||
站内搜索:;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翻译至简体
|
||||
免魔法Google翻译至英文
|
||||
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
|
||||
点击安装免魔法google翻译、背景图等
|
||||
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
|
||||
|
|
|
@ -53,9 +53,7 @@
|
|||
<a target=_self" href="i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js">记住密码</a><br>
|
||||
<a target="_self" href="i:0hjs/极速网页.js:https://fastly.jsdelivr.net/npm/instant.page">极速网页</a></p>
|
||||
<p><b>大型脚本</b>可安装到"bookmarklet"目录下(长按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>
|
||||
<p><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/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>
|
||||
<p><b>远程脚本</b>配置文件default.rjs样列如下,点击以下链接自动安装 (清空后台重启浏览器,长按搜索按钮,则弹出远程脚本菜单):</p>
|
||||
|
@ -66,7 +64,8 @@
|
|||
<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><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:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}%0A">免魔法Google翻译至简体</a></p>
|
||||
<p><a target="_self" href="i:0gdefault.rjs::Google translate2en:['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,autoDisplay:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'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>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/zh/</loc>
|
||||
<lastmod>2023-04-29T13:54:10+08:00</lastmod>
|
||||
<lastmod>2023-04-29T14:04:43+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
|
@ -126,7 +126,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/zh/topposts/</loc>
|
||||
<lastmod>2023-04-29T13:54:10+08:00</lastmod>
|
||||
<lastmod>2023-04-29T14:04:43+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:54:10+08:00</lastmod>
|
||||
<lastmod>2023-04-29T14:04:43+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
|
|
|
@ -197,8 +197,6 @@ tgz install::toybox tar -xzf %f -C /
|
|||
&lt;a target=_self&quot; href=&quot;i:0hjs/记住密码.js:../searchurl/txt/passwdsave.js&quot;&gt;记住密码
|
||||
极速网页
|
||||
大型脚本可安装到&quot;bookmarklet&quot;目录下(长按js按钮):
|
||||
免魔法google翻译
|
||||
google翻译
|
||||
Eruda
|
||||
Performance
|
||||
移除覆盖物
|
||||
|
@ -211,6 +209,7 @@ Selection to paragraph:;let g='paragraph';getSelection().modify('mov
|
|||
站内搜索:;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翻译至简体
|
||||
免魔法Google翻译至英文
|
||||
远程及小型脚本可安装到default.rjs文件中。远程脚本对CSP网站仍然有效。:
|
||||
点击安装免魔法google翻译、背景图等
|
||||
远程脚本配置文件default.rjs每行格式如下 (url部分支持js代码运算):
|
||||
|
|
Loading…
Reference in a new issue