rebuilding site Wed Apr 13 03:36:30 PM CST 2022
[uweb.git] / searchurl / rjs.html
blobb432f2fceb30396a328221b825580c2ff4f6aa4e
1 <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
2 <title>运行javascript脚本</title></head><body>
3 <h3>运行javascript脚本</h3>
4 <p><a href="../sitejs/">特定网址用户脚本</a></p>
5 <p><b>全局脚本</b>位于js子目录, 长按[☰]按钮配置。点击以下链
6 接安装:<br>
7 <a target=_self" href="i:0h/sdcard/uweb/js/记住密码.js:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/passwdsave.js">记住密码</a><br>
8 <a target="_self" href="i:0h/sdcard/uweb/js/极速网页.js:https://cdn.jsdelivr.net/npm/instant.page">极速网页</a></p>
10 <p><b>大型脚本</b>可安装到&quot;/sdcard/uweb/bookmarklet&quot;目录下(长按js按钮):<br>
11 <a target="_self" href="i:0h/sdcard/uweb/bookmarklet/google翻译.js:https://cdn.jsdelivr.net/gh/damengzhu/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'},'google_translate_element');}}">google翻译</a><br>
12 <a target="_self" href='i:0h/sdcard/uweb/bookmarklet/eruda.js:https://cdn.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
13 <a target="_self" href="i:0h/sdcard/uweb/bookmarklet/彩云小译.js:https://caiyunapp.com/dest/trs.js">彩云小译</a><br>
14 <a target="_self" href="i:0h/sdcard/uweb/bookmarklet/performance.js:https://cdn.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a><br>
15 <a target="_self" href="i:0h/sdcard/uweb/bookmarklet/移除覆盖物.js:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/bml/content/rmo.js">移除覆盖物</a><br>
16 </p>
18 <p><b>远程脚本</b>配置文件default.rjs样列如下,点击以下链接
19 自动安装 (清空后台重启浏览器,长按搜索按钮,则弹出远程脚本菜
20 单):<br>
22 <a href="i:04Selection to sentence:'';let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to sentence:'';let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
23 <a href="i:04Selection to line:'';let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to line:'';let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
24 <a href="i:04Selection to paragraph:'';let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);">Selection to paragraph:'';let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);</a><br><br>
25 <a href="i:04显示数学公式:'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js'">显示数学公式:'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js'</a><br><br>
26 <a href="i:04md内容的html文件显示:'https://cdn.jsdelivr.net/npm/mdme'">md内容的html文件显示:'https://cdn.jsdelivr.net/npm/mdme'</a><br><br>
27 <a href="i:04md+tex内容的html文件:'https://cdn.jsdelivr.net/npm/texme'">md+tex内容的html文件:'https://cdn.jsdelivr.net/npm/texme'</a><br><br>
28 <a href="i:04新窗口打开链接:'';b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)">新窗口打开链接:'';b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)</a><br><br>
29 <a href="i:04站内搜索:'';open('i:15site:' + location.hostname)">站内搜索:'';open('i:15site:' + location.hostname)</a><br><br>
30 <a href="i:04编辑器拼写检查:'';let t=d.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v">编辑器拼写检查:'';let t=d.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v</a><br><br>
31 </p>
32 <p>远程及小型脚本可安装到default.rjs文件中。远程脚本虽对CSP网站无效,勾选&quot;网址附加内容&quot;并添加空文件&quot;siteextra/[完整域名].html&quot;后可运行一切远程脚本:<br><a target="_self" href="i:0g/sdcard/uweb/default.rjs:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/rjs.cfg">点击安装google翻译、背景图等</a></p>
33 <p>远程脚本配置文件/sdcard/uweb/default.rjs每行格式如下 (url部分支持js代码运算):<br>[远程脚本名]:[返回url的javascript代码]</p>
34 <p>其中url可以为<a href="../html5">本地html5应用</a>脚本地址。譬如&#39;https://local/sdcard/uweb/app[XXX]/....../[XXX].js&#39;。此时,js脚本也可使用<a href="../links">.link文件</a>方式调用。</p>
37 </body></html>