uweb/offlinecache/index.html

177 lines
4.9 KiB
HTML
Raw Normal View History

2019-11-10 13:16:57 +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-10 13:16:57 +00:00
<title>
装载网站离线资源
</title>
<!-- Custom CSS -->
2020-03-13 14:56:23 +00:00
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
2019-11-10 13:16:57 +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-10 13:16:57 +00:00
<i class="iconfont icon-shouye1"></i>
2020-03-30 04:05:46 +00:00
<span>HOME</span>
2019-11-10 13:16:57 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/tags">
2019-11-10 13:16:57 +00:00
<i class="iconfont icon-biaoqian1"></i>
2020-03-30 04:05:46 +00:00
<span>TAGS</span>
2019-11-10 13:16:57 +00:00
</a>
</li>
<li>
2020-03-13 14:56:23 +00:00
<a href="/uWeb/archives">
2019-11-10 13:16:57 +00:00
<i class="iconfont icon-guidang2"></i>
2020-03-30 04:05:46 +00:00
<span>ARCHIVES</span>
2019-11-10 13:16:57 +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-03-30 04:05:46 +00:00
<span id="begin-search">search</span>
2019-11-10 13:16:57 +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">
装载网站离线资源
</div>
<div class="post-meta">
2020-03-30 04:05:46 +00:00
<span class="attr">Post<span>2019-11-10 16:44:23</span></span>
2019-11-10 13:16:57 +00:00
</div>
<div class="post-content ">
2019-11-11 02:57:15 +00:00
<p><a href="..">uweb浏览器</a>支持装载网站离线资源。只需要将离线资源存为文件”/sdcard/uweb/sitecache/[域名]/[全部路径,包括文件名,?,&amp;,=, 与url一模一样]”。如果应用内部目录有文件夹”sitejs”存在则“/sdcard/uweb”下的离线资源不再生效此时生效离线资源为内部目录下的”sitecache”文件夹。</p>
2019-11-10 13:16:57 +00:00
<p>打开选项以后超微将自动装载这些离线资源。</p>
2019-11-11 02:57:15 +00:00
<p>离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。</p>
2019-11-10 13:16:57 +00:00
<p>下面以google翻译为例说明如何发现并备份离线资源。</p>
<ul>
<li>首先使用教程”<a href="../rjs">运行远程javascript</a>“配置google翻译。</li>
<li>将文件”/sdcard/uweb/types.sniff”内容清空不要删除文件否则会恢复成默认文件。重启浏览器以后长按设置打开资源嗅探。</li>
<li>准备好合适手段保证google系网站能正常访问长按按钮在主屏运行google翻译。</li>
<li>出现google翻译工具条以后长按设置关闭嗅探。</li>
<li>运行termux安装下载工具wget<br><code>apt update;apt install wget</code></li>
2019-11-15 02:54:01 +00:00
<li>下载必要离线数据termux下运行如下命令<pre><code>cd /sdcard/uweb
mkdir sitecache
cd sitecache
wget -U 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)' -x -i ../sniff.log</code></pre></li>
2019-11-10 13:16:57 +00:00
<li>下载结束后,离线资源就准备妥当,供以后随时使用。</li>
2019-11-15 02:54:01 +00:00
<li>google翻译的情况下要对部分js作修改防止每次访问url不同。</li>
2019-11-10 13:16:57 +00:00
</ul>
<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-10 13:16:57 +00:00
window.isPost = true
</script>
2020-03-13 14:56:23 +00:00
<script src="/uWeb/js/index.js"></script>
2019-11-10 13:16:57 +00:00
</html>