mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
update termux doc
This commit is contained in:
parent
33d2db03b7
commit
3239bb8dec
9 changed files with 79 additions and 26 deletions
|
@ -93,7 +93,9 @@ export default {
|
||||||
const url = request.url;
|
const url = request.url;
|
||||||
let iSlash = url.indexOf('/',11);
|
let iSlash = url.indexOf('/',11);
|
||||||
let nUrl = url.substring(iSlash+1);
|
let nUrl = url.substring(iSlash+1);
|
||||||
if(!nUrl.startsWith(SYDNEY_ORIGIN))
|
let iColon = nUrl.indexOf(':',3)+3;
|
||||||
|
if(!nUrl.startsWith('syndey.bing.com',iColon) &&
|
||||||
|
!nUrl.startsWith('www.bing.com/turing',iColon))
|
||||||
return await goUrl(request, nUrl);
|
return await goUrl(request, nUrl);
|
||||||
const targetUrl = new URL(nUrl);
|
const targetUrl = new URL(nUrl);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>/en/_posts/</loc>
|
<loc>/en/_posts/</loc>
|
||||||
<lastmod>2023-06-26T08:17:34+08:00</lastmod>
|
<lastmod>2023-08-20T09:08:11+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -401,7 +401,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/termux/</loc>
|
<loc>/en/termux/</loc>
|
||||||
<lastmod>2022-09-24T14:05:13+08:00</lastmod>
|
<lastmod>2023-08-20T09:08:11+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/longclick/</loc>
|
<loc>/en/longclick/</loc>
|
||||||
<lastmod>2022-09-24T14:05:13+08:00</lastmod>
|
<lastmod>2022-09-24T14:05:13+08:00</lastmod>
|
||||||
|
|
|
@ -57,10 +57,10 @@
|
||||||
<p>Using uweb to copy (Long pressing the following links and "open in new tab" to fix/send/receive):</p>
|
<p>Using uweb to copy (Long pressing the following links and "open in new tab" to fix/send/receive):</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>target device: install termux app.</li>
|
<li>target device: install termux app.</li>
|
||||||
<li>(optional)<a href="d::mkdir -p /data/data/com.termux/files/home/.termux;cd /data/data/com.termux/files;mkdir usr;cd home/.termux;ln -s /system/bin/sh shell:">fix termux quick crash with "updateonly" versions</a></li>
|
<li>(optional)<a href="d::mkdir -p /data/data/com.termux/files/home/.termux;cd /data/data/com.termux/files;mkdir usr;cd home/.termux;ln -s /system/bin/sh shell:">fix termux quick crash with "updateonly" versions</a> by long click this link.</li>
|
||||||
<li>both devices: uweb to checke option "Use termux" in UI configuration page for long time tranferring. Uweb itself does not hold any wakelock thus may have issues for huge data transmission.</li>
|
<li>both devices: uweb to checke option "Use termux" in UI configuration page for long time tranferring. Uweb itself does not hold any wakelock thus may have issues for huge data transmission.</li>
|
||||||
<li>source device: uweb to visit "files:///data/data/com.termux/", long click "files" folder to send to network.</li>
|
<li>source device: uweb to visit <a href="files:///data/data/com.termux/">termux folder</a> by long click, then long click "files" folder to send to network.</li>
|
||||||
<li>target device: uweb to visit "files:///data/data/com.termux/", long click "right arrow" button to receive from network.</li>
|
<li>target device: uweb to visit <a href="files:///data/data/com.termux/">termux folder</a> by long click, then long click "right arrow" button to receive from network.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h5 id="using-ssh-to-copy">Using ssh to copy</h5>
|
<h5 id="using-ssh-to-copy">Using ssh to copy</h5>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -75,8 +75,8 @@
|
||||||
With <a href="https://github.com/rupa/z">z.sh</a> and <a href="https://github.com/shyiko/commacd">commacd</a>, user can reach any folder with few key stokes. Run "v" to launch uweb file manager on the current working directory, long click any file link to share.</p>
|
With <a href="https://github.com/rupa/z">z.sh</a> and <a href="https://github.com/shyiko/commacd">commacd</a>, user can reach any folder with few key stokes. Run "v" to launch uweb file manager on the current working directory, long click any file link to share.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 24 September 2022<br>
|
<p>Last Modified: 20 August 2023<br>
|
||||||
add en/.../tips.md<br>
|
reword in termux.md<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>en/sitemap.xml</loc>
|
<loc>en/sitemap.xml</loc>
|
||||||
|
|
||||||
<lastmod>2023-06-26T08:17:34+08:00</lastmod>
|
<lastmod>2023-08-20T09:08:11+08:00</lastmod>
|
||||||
|
|
||||||
</sitemap>
|
</sitemap>
|
||||||
|
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>zh/sitemap.xml</loc>
|
<loc>zh/sitemap.xml</loc>
|
||||||
|
|
||||||
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
|
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
|
||||||
|
|
||||||
</sitemap>
|
</sitemap>
|
||||||
|
|
||||||
|
|
|
@ -127,8 +127,6 @@ UA为非默认时,点击PC按钮将恢复UA为默认,同时触发不保存UA
|
||||||
在浏览器文件管理器中长按文件名,弹出菜单中选择分享,系统会优先弹出相应的文件编辑器。
|
在浏览器文件管理器中长按文件名,弹出菜单中选择分享,系统会优先弹出相应的文件编辑器。
|
||||||
配置文件列表中直接点击文件名即可编辑。
|
配置文件列表中直接点击文件名即可编辑。
|
||||||
免魔法直接使用newbing/chatgpt/必应写作/AI画图 总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。
|
免魔法直接使用newbing/chatgpt/必应写作/AI画图 总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。
|
||||||
方法0:
|
|
||||||
使用重定向访问国外技术网址,使用cloudflare workers 全局重定向代码。请帮助改良维护workers代码。
|
|
||||||
方法1(不再维护):
|
方法1(不再维护):
|
||||||
点击一键安装必应AI
|
点击一键安装必应AI
|
||||||
或者分步安装:
|
或者分步安装:
|
||||||
|
@ -139,7 +137,10 @@ Click to append to &quot;hosts&quot;, edit the last part as magic url do
|
||||||
点击界面入口
|
点击界面入口
|
||||||
可配置魔法url, 上述hosts文件作相应修改。 详情
|
可配置魔法url, 上述hosts文件作相应修改。 详情
|
||||||
方法2: 可以采用超级书签/直接界面+脚本+hosts。
|
方法2: 可以采用超级书签/直接界面+脚本+hosts。
|
||||||
其中超级书签固定bingchat入口。</description>
|
其中超级书签固定bingchat入口。
|
||||||
|
脚本重定向api至魔法师.
|
||||||
|
hosts防污染。
|
||||||
|
bingChat能够正常使用时保存为超级书签 (长按底部右箭头按钮),下次再次需要使用时恢复即可 (按设置按钮然后点击超级书签链接)。</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
@ -268,8 +269,9 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引
|
||||||
|
|
||||||
<guid>/zh/bookmark/</guid>
|
<guid>/zh/bookmark/</guid>
|
||||||
<description>所有书签都可通过&quot;长按链接-&gt;命令-&gt;书签&quot;保存链接为书签。书签菜单可至特色服务网页安装。
|
<description>所有书签都可通过&quot;长按链接-&gt;命令-&gt;书签&quot;保存链接为书签。书签菜单可至特色服务网页安装。
|
||||||
|
web
|
||||||
AI/chatGPT:
|
AI/chatGPT:
|
||||||
bingChat carrot ainav 网络剪贴板
|
carrot ainav 网络剪贴板
|
||||||
txtpad
|
txtpad
|
||||||
cmd.im
|
cmd.im
|
||||||
Wait for url from other devices
|
Wait for url from other devices
|
||||||
|
|
|
@ -47,9 +47,9 @@
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>所有书签都可通过"长按链接->命令->书签"保存链接为书签。书签菜单可至<a href="../urls/index.html">特色服务网页</a>安装。<br>
|
<p>所有书签都可通过"长按链接->命令->书签"保存链接为书签。书签菜单可至<a href="../urls/index.html">特色服务网页</a>安装。<br>
|
||||||
|
<a href="https://web.xml.wiki">web</a><br>
|
||||||
AI/chatGPT:</p>
|
AI/chatGPT:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://bing.vcanbb.top">bingChat</a></li>
|
|
||||||
<li><a href="https://xx025.github.io/carrot">carrot</a></li>
|
<li><a href="https://xx025.github.io/carrot">carrot</a></li>
|
||||||
<li><a href="https://ainav.org/">ainav</a></li>
|
<li><a href="https://ainav.org/">ainav</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -78,8 +78,8 @@ AI/chatGPT:</p>
|
||||||
<a href="c:gopher gopher://gopherddit.com">reddit gopher</a></p>
|
<a href="c:gopher gopher://gopherddit.com">reddit gopher</a></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 23 May 2023<br>
|
<p>Last Modified: 27 July 2023<br>
|
||||||
enhance default.select with clipboard output<br>
|
reword in termux.md<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
|
|
53
zh/searchurl/txt/dplayer_ku1001.html
Normal file
53
zh/searchurl/txt/dplayer_ku1001.html
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
|
||||||
|
<style>body{margin:0;padding:0}video{width:100%;height:100%}.dplayer-setting-loop,.dplayer-full-in-icon,.dplayer-mobile-play,.dplayer-bezel{display:none!important}.dplayer-info-panel{width:472px!important}.dplayer-info-panel-item-data{width:358px!important}.dplayer-info-panel-item-url .dplayer-info-panel-item-data{white-space:normal!important;word-break:break-all!important}.dplayer-menu,.dplayer-info-panel,.dplayer-setting-box,.dplayer-notice,.dplayer-quality-list,.dplayer-subtitles-box{border-radius:8px!important}.dplayer-play-icon,.dplayer-icons-left{display:inline-block!important}</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="dplayer"></div>
|
||||||
|
<script src="https://fastly.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
|
||||||
|
<script>
|
||||||
|
let sc=location.search.substring(3);
|
||||||
|
var source=/(^.*?)&(title|poster|next)=/.test(sc)?RegExp.$1:sc;
|
||||||
|
if(/(http.+?\b(m3u8|mp4|flv|mpd))(&|@|\||#)/.test(source))source=RegExp.$1;
|
||||||
|
try{document.title=decodeURIComponent(/&title=([^&]+)/.test(sc)?RegExp.$1:(/([^\/&=]+(?<!index)\.(mp4|ogg|webm|m3u8|flv|mkv|mpd))\b/.test(source)?RegExp.$1:source.replace(/^https?:\/\//,'')))}catch(e){};
|
||||||
|
var doption={container:document.getElementById("dplayer"),autoplay:true,video:{url:source},airplay:false,hotkey:false,screenshot:false,preload:"auto"};
|
||||||
|
var dp;
|
||||||
|
if(/&poster=(http.+)(&title=|&next=|$)/.test(sc)){doption.video.pic=RegExp.$1};
|
||||||
|
var insertjs=(jsrc,jfn)=>{let tjs=document.createElement('script');tjs.src=jsrc;tjs.type='text/javascript';let dha=document.getElementsByTagName("head")[0];dha.appendChild(tjs);tjs.onload=jfn};
|
||||||
|
if(/m3u8|gdtv\.php/.test(source)){
|
||||||
|
let vid=document.createElement("video");
|
||||||
|
let vcan=vid.canPlayType("application/x-mpegURL")||vid.canPlayType("application/vnd.apple.mpegURL");
|
||||||
|
if(vcan!="probably"){
|
||||||
|
insertjs("https://fastly.jsdelivr.net/npm/hls.js/dist/hls.min.js",()=>{
|
||||||
|
if(window.Hls&&Hls.isSupported()){
|
||||||
|
doption.video.type="customHls";
|
||||||
|
var hls=new Hls();
|
||||||
|
hls.loadSource(source);
|
||||||
|
hls.on(Hls.Events.MANIFEST_LOADED,function(event,data){
|
||||||
|
if(hls.levels[0].details&&hls.levels[0].details.live){doption.live=true};
|
||||||
|
if(doption.autoplay)doption.autoplay=false;
|
||||||
|
dp=new DPlayer(doption);
|
||||||
|
hls.attachMedia(dp.video);
|
||||||
|
dp.play()
|
||||||
|
});
|
||||||
|
window.hls=hls
|
||||||
|
}else{
|
||||||
|
dp=new DPlayer(doption);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{dp=new DPlayer(doption);}
|
||||||
|
}else{
|
||||||
|
let dtype,tjs;
|
||||||
|
var initPlyrFn=()=>{
|
||||||
|
doption.video.type=dtype;
|
||||||
|
dp=new DPlayer(doption);
|
||||||
|
};
|
||||||
|
if(/.flv(#|\?|$)/i.exec(source)){dtype="flv";tjs="https://cdn.jsdelivr.net/npm/flv.js/dist/flv.min.js";insertjs(tjs,initPlyrFn)}
|
||||||
|
else if(/.mpd(#|\?|$)/i.exec(source)){dtype="shakaDash";tjs="https://cdn.jsdelivr.net/npm/shaka-player/dist/shaka-player.compiled.min.js";doption.video.customType={shakaDash: function(video,player){var src=video.src;var playerShaka=new shaka.Player(video);playerShaka.load(src)}};insertjs(tjs,initPlyrFn)}
|
||||||
|
else{dtype="normal";initPlyrFn()}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>/zh/_posts/</loc>
|
<loc>/zh/_posts/</loc>
|
||||||
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
|
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/zh/tips/</loc>
|
<loc>/zh/tips/</loc>
|
||||||
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
|
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
<lastmod>2023-02-14T14:46:05+08:00</lastmod>
|
<lastmod>2023-02-14T14:46:05+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/zh/bookmark/</loc>
|
<loc>/zh/bookmark/</loc>
|
||||||
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
|
<lastmod>2023-07-27T15:39:20+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
|
|
|
@ -69,10 +69,6 @@ UA为非默认时,点击PC按钮将恢复UA为默认,同时触发不保存UA
|
||||||
<p>总要求:长按底部"PC"按钮选择user-agent为"edge"。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。</p>
|
<p>总要求:长按底部"PC"按钮选择user-agent为"edge"。用户需登录微软网站比如cn.bing.com,帐号已经开通newbing。</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>方法0:<br>
|
|
||||||
<a href="../redirect/index.html">使用重定向访问国外技术网址</a>,使用<a href="../../en/searchurl/cloudflare/pbing.js">cloudflare workers 全局重定向代码</a>。请帮助改良维护workers代码。</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>方法1(不再维护):</p>
|
<p>方法1(不再维护):</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -102,8 +98,8 @@ UA为非默认时,点击PC按钮将恢复UA为默认,同时触发不保存UA
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 18 July 2023<br>
|
<p>Last Modified: 29 July 2023<br>
|
||||||
revert back redirect.js<br>
|
reword in termux.md<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue