uweb/rjs/index.html

177 lines
5 KiB
HTML
Raw Normal View History

2019-11-05 23:09:18 +00:00
<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="keyword" content="">
2020-03-13 14:56:23 +00:00
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
2019-11-05 23:09:18 +00:00
<title>
2020-02-29 13:18:00 +00:00
运行javascript脚本
2019-11-05 23:09:18 +00:00
</title>
<!-- Custom CSS -->
2020-03-13 14:56:23 +00:00
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
2019-11-05 23:09:18 +00:00
<link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
<!-- ga & ba script hoook -->
<script></script>
</head>
<body>
<div class="site-nav-toggle" id="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
<div class="index-about">
<i> </i>
</div>
<div class="index-container">
<div class="index-left">
<div class="nav" id="nav">
<div class="contents" id="nav-content">
<ul>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/">
2019-11-05 23:09:18 +00:00
<i class="iconfont icon-shouye1"></i>
2020-04-12 11:36:38 +00:00
<span>主页</span>
2019-11-05 23:09:18 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/tags">
2019-11-05 23:09:18 +00:00
<i class="iconfont icon-biaoqian1"></i>
2020-04-12 11:36:38 +00:00
<span>标签</span>
2019-11-05 23:09:18 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/archives">
2019-11-05 23:09:18 +00:00
<i class="iconfont icon-guidang2"></i>
2020-04-12 11:36:38 +00:00
<span>存档</span>
2019-11-05 23:09:18 +00:00
</a>
</li>
</ul>
</div>
<div id="toc" class="toc-article">
</div>
</div>
<div class="search-field" id="search-field">
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input">
2020-04-12 11:36:38 +00:00
<span id="begin-search">搜索</span>
2019-11-05 23:09:18 +00:00
</div>
<div class="search-result-container" id="search-result-container">
</div>
</div>
</div>
<div class="index-about-mobile">
<i> </i>
</div>
</div>
<div class="index-middle">
<!-- Main Content -->
<div class="post-container">
<div class="post-title">
2020-02-29 13:18:00 +00:00
运行javascript脚本
2019-11-05 23:09:18 +00:00
</div>
<div class="post-meta">
2020-04-12 11:36:38 +00:00
<span class="attr">发布于:<span>2020-04-05 10:20:37</span></span>
2019-11-05 23:09:18 +00:00
2020-04-12 11:36:38 +00:00
<span class="attr">标签:/
2019-11-05 23:09:18 +00:00
2020-03-13 14:56:23 +00:00
<a class="tag" href="/uWeb/tags/#javascript" title="javascript">javascript</a>
2019-11-05 23:09:18 +00:00
<span>/</span>
</span>
</div>
<div class="post-content ">
2020-02-29 13:30:24 +00:00
<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>
2020-04-05 02:23:03 +00:00
<p><b>远程及小型脚本可安装到default.rjs文件中</b><br><a target="_self" href="i:0g/sdcard/uweb/default.rjs:https://jamesfengcao.gitee.io/uweb/searchurl/txt/rjs.txt">点击安装站内搜索、背景图、新窗口打开链接、移除覆盖物等</a></p>
2020-04-04 10:04:37 +00:00
<p><b>远程脚本配置文件/sdcard/uweb/default.rjs示例如下</b></p>
2019-11-05 23:09:18 +00:00
<pre>彩云小译:'https://caiyunapp.com/dest/trs.js'
2020-04-04 10:04:37 +00:00
移除覆盖物:'https://jamesfengcao.gitee.io/uweb/searchurl/bml/content/rmo.js'
2019-12-02 07:36:36 +00:00
新窗口打开链接:'';{d=document,b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b);}
2019-11-12 08:00:21 +00:00
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)
2019-11-05 23:09:18 +00:00
</pre>
<p>default.rjs每行格式如下 (url部分支持js代码运算)<br>[远程脚本名]:[返回字符串的javascript代码]</p>
2019-12-02 07:36:36 +00:00
<p>重启浏览器,长按搜索按钮,则弹出远程脚本菜单。</p>
2019-11-05 23:09:18 +00:00
<br>
<div id="comment-container">
</div>
<div id="disqus_thread"></div>
<div id="lv-container">
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<ul class="list-inline text-center">
</ul>
</footer>
</body>
<script>
// We expose some of the variables needed by the front end
window.hexo_search_path = ""
2020-03-13 14:56:23 +00:00
window.hexo_root = "/uWeb/"
2019-11-05 23:09:18 +00:00
window.isPost = true
</script>
2020-03-13 14:56:23 +00:00
<script src="/uWeb/js/index.js"></script>
2019-11-05 23:09:18 +00:00
</html>