update termux doc

This commit is contained in:
James Feng Cao 2023-08-20 09:11:48 +08:00
parent 33d2db03b7
commit 3239bb8dec
9 changed files with 79 additions and 26 deletions

View File

@ -93,7 +93,9 @@ export default {
const url = request.url;
let iSlash = url.indexOf('/',11);
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);
const targetUrl = new URL(nUrl);

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-06-26T08:17:34+08:00</lastmod>
<lastmod>2023-08-20T09:08:11+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -401,7 +401,7 @@
/>
</url><url>
<loc>/en/termux/</loc>
<lastmod>2022-09-24T14:05:13+08:00</lastmod>
<lastmod>2023-08-20T09:08:11+08:00</lastmod>
</url><url>
<loc>/en/longclick/</loc>
<lastmod>2022-09-24T14:05:13+08:00</lastmod>

View File

@ -57,10 +57,10 @@
<p>Using uweb to copy (Long pressing the following links and &quot;open in new tab&quot; to fix/send/receive):</p>
<ul>
<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 &quot;updateonly&quot; 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 &quot;updateonly&quot; versions</a> by long click this link.</li>
<li>both devices: uweb to checke option &quot;Use termux&quot; 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 &quot;files:///data/data/com.termux/&quot;, long click &quot;files&quot; folder to send to network.</li>
<li>target device: uweb to visit &quot;files:///data/data/com.termux/&quot;, long click &quot;right arrow&quot; button to receive from network.</li>
<li>source device: uweb to visit <a href="files:///data/data/com.termux/">termux folder</a> by long click, then long click &quot;files&quot; folder to send to network.</li>
<li>target device: uweb to visit <a href="files:///data/data/com.termux/">termux folder</a> by long click, then long click &quot;right arrow&quot; button to receive from network.</li>
</ul>
<h5 id="using-ssh-to-copy">Using ssh to copy</h5>
<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 &quot;v&quot; to launch uweb file manager on the current working directory, long click any file link to share.</p>
</div>
<p>Last Modified: 24 September 2022<br>
add en/.../tips.md<br>
<p>Last Modified: 20 August 2023<br>
reword in termux.md<br>
<pre></pre>
</p>
<script>

View File

@ -4,14 +4,14 @@
<sitemap>
<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>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
</sitemap>

View File

@ -127,8 +127,6 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
在浏览器文件管理器中长按文件名,弹出菜单中选择分享,系统会优先弹出相应的文件编辑器。
配置文件列表中直接点击文件名即可编辑。
免魔法直接使用newbing/chatgpt/必应写作/AI画图 总要求:长按底部&amp;quot;PC&amp;quot;按钮选择user-agent为&amp;quot;edge&amp;quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。
方法0:
使用重定向访问国外技术网址使用cloudflare workers 全局重定向代码。请帮助改良维护workers代码。
方法1(不再维护):
点击一键安装必应AI
或者分步安装:
@ -139,7 +137,10 @@ Click to append to &amp;quot;hosts&amp;quot;, edit the last part as magic url do
点击界面入口
可配置魔法url, 上述hosts文件作相应修改。 详情
方法2: 可以采用超级书签/直接界面+脚本+hosts。
其中超级书签固定bingchat入口。</description>
其中超级书签固定bingchat入口。
脚本重定向api至魔法师.
hosts防污染。
bingChat能够正常使用时保存为超级书签 (长按底部右箭头按钮),下次再次需要使用时恢复即可 (按设置按钮然后点击超级书签链接)。</description>
</item>
<item>
@ -268,8 +269,9 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引
<guid>/zh/bookmark/</guid>
<description>所有书签都可通过&amp;quot;长按链接-&amp;gt;命令-&amp;gt;书签&amp;quot;保存链接为书签。书签菜单可至特色服务网页安装。
web
AI/chatGPT:
bingChat carrot ainav 网络剪贴板
carrot ainav 网络剪贴板
txtpad
cmd.im
Wait for url from other devices

View File

@ -47,9 +47,9 @@
</ul>
<p>所有书签都可通过&quot;长按链接-&gt;命令-&gt;书签&quot;保存链接为书签。书签菜单可至<a href="../urls/index.html">特色服务网页</a>安装。<br>
<a href="https://web.xml.wiki">web</a><br>
AI/chatGPT:</p>
<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://ainav.org/">ainav</a></li>
</ul>
@ -78,8 +78,8 @@ AI/chatGPT:</p>
<a href="c:gopher gopher://gopherddit.com">reddit gopher</a></p>
</div>
<p>Last Modified: 23 May 2023<br>
enhance default.select with clipboard output<br>
<p>Last Modified: 27 July 2023<br>
reword in termux.md<br>
<pre></pre>
</p>
<script>

View 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>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -61,7 +61,7 @@
/>
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2023-07-18T10:53:14+08:00</lastmod>
<lastmod>2023-07-29T22:35:45+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -223,7 +223,7 @@
<lastmod>2023-02-14T14:46:05+08:00</lastmod>
</url><url>
<loc>/zh/bookmark/</loc>
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
<lastmod>2023-07-27T15:39:20+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View File

@ -69,10 +69,6 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<p>总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。</p>
<ul>
<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>
<ul>
<li>
@ -102,8 +98,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
</ul>
</div>
<p>Last Modified: 18 July 2023<br>
revert back redirect.js<br>
<p>Last Modified: 29 July 2023<br>
reword in termux.md<br>
<pre></pre>
</p>
<script>