uweb浏览器支持运行本地及远程javascript脚本。
大型脚本可安装到”/sdcard/uweb/bookmarklet”目录下:
彩云小译
远程及小型脚本可安装到default.rjs文件中:
点击安装站内搜索、背景图、新窗口打开链接、移除覆盖物等
远程及小型脚本可安装到default.rjs文件中:
点击安装站内搜索、背景图、新窗口打开链接、移除覆盖物等
远程脚本配置文件/sdcard/uweb/default.rjs示例如下:
彩云小译:'https://caiyunapp.com/dest/trs.js' 移除覆盖物:'https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js' diff --git a/searchurl/txt/rjs.txt b/searchurl/txt/rjs.txt index 64570fc2..fade0fd0 100644 --- a/searchurl/txt/rjs.txt +++ b/searchurl/txt/rjs.txt @@ -2,4 +2,3 @@ 背景图:'';{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;bBackground images