blog update

master
James Feng Cao 5 years ago
parent 7de406bb15
commit 4e5cd4549d

@ -114,9 +114,10 @@
</div>
<div class="post-content ">
<p><a href="..">uweb浏览器</a>支持运行本地及远程javascript脚本。<br><b>大型脚本可安装到”/sdcard/uweb/bookmarklet”目录下</b><br><a target="_self" href="i:0h/sdcard/uweb/bookmarklet/彩云小译.js:https://caiyunapp.com/dest/trs.js">彩云小译</a></p>
<p><b>远程脚本配置文件/sdcard/uweb/default.rjs如下</b></p>
<p><b>远程及小型脚本可安装到default.rjs文件中</b><br><a target="_self" href="i:0g/sdcard/uweb/efault.rjs:https://jamesfengcao.gitee.io/uweb/searchurl/txt/rjs.txt">点击安装站内搜索、背景图、新窗口打开链接、移除覆盖物等</a></p>
<p><b>远程脚本配置文件/sdcard/uweb/default.rjs示例如下</b></p>
<pre>彩云小译:'https://caiyunapp.com/dest/trs.js'
移除网页覆盖物:'https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js'
移除覆盖物:'https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js'
新窗口打开链接:'';{d=document,b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b);}
google translate:'https://translate.google.cn/translate_a/element.js?cb=googleTranslateElementInit';b=d.body;v=d.createElement('div');v.id='google_translate_element';v.style.display='none';b.insertBefore(v,b.firstChild);p=d.createElement('script');p.text="function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage: 'auto',includedLanguages:'zh-CN,zh-TW,en'},'google_translate_element');}";p.type='text/javascript';b.appendChild(p)
</pre>

@ -25,7 +25,7 @@ input{height: 40px; width: 100%;background-color:transparent;border-radius: 50px
<li><a href="i:258">双列书签</a></li>
<li><a href="i:2516">被调用20秒内按后退键后台装载页面</a></li>
<li><a href="i:2532">使用"query.list"常用查询列表android8+以上webview有bug</a></li>
<li><a href="i:2564">顶部下划弹出地址栏</a></li>
<li><a href="i:2564">顶部下划弹出地址栏(可按两次页内搜索按钮)</a></li>
<li><a href="i:25128">禁止弹出JS确认框</a></li>
<li><a href="i:25256">无安全证书警告</a></li>
<li><a href="i:25512">全屏播放自动横屏</a></li>

@ -1 +1,5 @@
search site:window.open("i:15site:" + location.hostname)
站内搜索:'';window.open('i:15site:' + location.hostname)
背景图:'';{document.deepCss=function(a,b){if(!a||!a.style)return'';let c=b.replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if(a.currentStyle)return a.style[c]||a.currentStyle[c]||'';let d=document.defaultView||window;return a.style[c]||d.getComputedStyle(a,'').getPropertyValue(b)||''};Array.prototype.indexOf=Array.prototype.indexOf||function(a,b){b=b||0;for(let c=this.length;b<c;){if(this[b]===a)return b;++b}return-1};let e=function(){let a,b=[],c=document.getElementsByTagName('*');for(c=b.slice.call(c,0,c.length);c.length;)(a=document.deepCss(c.shift(),'background-image'))&&(a=/url\(['"]?([^")]+)/.exec(a)||[]),(a=a[1])&&-1==b.indexOf(a)&&(b[b.length]=a);return b}();if(0<e.length){let d=window.open('').document;d.write('<html><head><title>Background images</title></head></body>');for(let f=0;f<e.length;f++)d.write('<img src='),d.write(e[f]),d.write('>');d.write('</body></html>');d.close()}}
新窗口打开链接:'';{d=document,b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b);}
移除覆盖物:'https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js'

Loading…
Cancel
Save