mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
172 lines
4.7 KiB
HTML
172 lines
4.7 KiB
HTML
<!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="">
|
||
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
|
||
|
||
<title>
|
||
|
||
装载网站离线资源
|
||
|
||
</title>
|
||
|
||
<!-- Custom CSS -->
|
||
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
|
||
<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>
|
||
<a href="/uWeb/">
|
||
<i class="iconfont icon-shouye1"></i>
|
||
<span>主页</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="/uWeb/tags">
|
||
<i class="iconfont icon-biaoqian1"></i>
|
||
<span>标签</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="/uWeb/archives">
|
||
<i class="iconfont icon-guidang2"></i>
|
||
<span>存档</span>
|
||
</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">
|
||
<span id="begin-search">搜索</span>
|
||
</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">
|
||
<span class="attr">发布于:<span>2019-11-10 16:44:23</span></span>
|
||
|
||
|
||
|
||
|
||
</div>
|
||
<div class="post-content ">
|
||
<p><a href="..">uweb浏览器</a>支持装载网站离线资源。只需要将离线资源存为文件”/sdcard/uweb/sitecache/[域名]/[全部路径,包括文件名,?,&,=, 与url一模一样]”。如果应用内部目录有文件夹”sitejs”存在,则“/sdcard/uweb”下的离线资源不再生效,此时生效离线资源为内部目录下的”sitecache”文件夹。</p>
|
||
<p>打开选项以后超微将自动装载这些离线资源。</p>
|
||
<p>离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。</p>
|
||
<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>
|
||
<li>下载必要离线数据,termux下运行如下命令:<br><code>cd /sdcard/uweb<br>mkdir sitecache<br>cd sitecache<br>wget -x -i ../sniff.log</code></li>
|
||
<li>下载结束后,离线资源就准备妥当,供以后随时使用。</li>
|
||
</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 = ""
|
||
window.hexo_root = "/uWeb/"
|
||
window.isPost = true
|
||
</script>
|
||
<script src="/uWeb/js/index.js"></script>
|
||
|
||
|
||
|
||
|
||
</html>
|