mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Thu Jul 28 11:46:23 AM CST 2022
This commit is contained in:
parent
9ee06e8a09
commit
69b8d15a8c
11 changed files with 166 additions and 21 deletions
|
@ -5,11 +5,27 @@
|
|||
<link>/en/_posts/</link>
|
||||
<description>Recent content in _posts on </description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Sat, 02 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<lastBuildDate>Thu, 28 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Commands</title>
|
||||
<link>/en/cmds/</link>
|
||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/cmds/</guid>
|
||||
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
|
||||
Configuration file &quot;default.cmds&quot; examples:
|
||||
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete
|
||||
VPN::am start -a android.net.vpn.SETTINGS
|
||||
wireless::am start -a android.settings.WIRELESS_SETTINGS
|
||||
Append query to autocomplete:uweb:cd /data/data/info.torinfo.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&gt;a.tmp;mv a.tmp default.autoc;&gt;query.log;echo file:///data/data/info.torinfo.uweb/files/default.autoc
|
||||
Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache
|
||||
Clear logcat::logcat -c</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Site map</title>
|
||||
<link>/en/sitemap/</link>
|
||||
<pubDate>Sat, 02 Jul 2022 00:00:00 +0000</pubDate>
|
||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/sitemap/</guid>
|
||||
<description>UI Search engines Home screen Quick start UI (gitee) Backup and restore Customization Bottom toolbar button long pressing menus User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Font settings Advanced Content AD blocking CSS styles redirection Javascript and CSS for domains Offline cache Tools Bookmarklets Custom file handling Html5 application File manager Tools Termux GNU bc Gnuplot tcron Offline download Miscellaneous Configuration files Plugins Tips Tips Video Debug </description>
|
||||
|
|
105
en/cmds/index.html
Normal file
105
en/cmds/index.html
Normal file
|
@ -0,0 +1,105 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link rel="stylesheet" href="/uwebzh/style.css" type="text/css" />
|
||||
<title>Commands</title>
|
||||
<script type="text/javascript">
|
||||
function findLang(){
|
||||
let href = location.href;
|
||||
for(let i=href.length-1;i>0;i--){
|
||||
if('/'==href.charAt(i) && '/'==href.charAt(i-3))
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
function nav2(page){
|
||||
let i = findLang();
|
||||
location.href = location.href.substring(0,i+1)+page;
|
||||
}
|
||||
function nav2Lang(lang){
|
||||
let i = findLang();
|
||||
let href = location.href;
|
||||
location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header class='header'>
|
||||
<a class="logo" href="javascript:void(0)" onclick="return nav2('index.html')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html')">Tags</a>
|
||||
|
||||
<nav>
|
||||
</nav>
|
||||
</header>
|
||||
<br />
|
||||
|
||||
<div class="container">
|
||||
<h1 class="title">Commands
|
||||
<br>
|
||||
<span class="subtitle"></span>
|
||||
</h1>
|
||||
<ul class="tags">
|
||||
|
||||
</ul>
|
||||
<p>Click the following links to install commands with <a href="../index.html">uweb browser</a>. <b>Force exit and re-launch the app</b>, then long press the button with clock icon to popup the command menu.</p>
|
||||
<p>Configuration file "default.cmds" examples:</p>
|
||||
<p><a href="i:03Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete">Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete</a></p>
|
||||
<p><a href="i:03VPN::am start -a android.net.vpn.SETTINGS">VPN::am start -a android.net.vpn.SETTINGS</a></p>
|
||||
<p><a href="i:03wireless::am start -a android.settings.WIRELESS_SETTINGS">wireless::am start -a android.settings.WIRELESS_SETTINGS</a></p>
|
||||
<p><a href="i:03Append query to autocomplete:uweb:cd /data/data/info.torinfo.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///data/data/info.torinfo.uweb/files/default.autoc">Append query to autocomplete:uweb:cd /data/data/info.torinfo.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///data/data/info.torinfo.uweb/files/default.autoc</a></p>
|
||||
<p><a href="i:03Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache">Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache</a></p>
|
||||
<p><a href="i:03Clear logcat::logcat -c">Clear logcat::logcat -c</a></p>
|
||||
<p><a href="i:03logcat.log::logcat -d > logcat.log">logcat.log::logcat -d > logcat.log</a></p>
|
||||
<p><a href="i:03copy cookie:/clip:printf '%c'">copy cookie:/clip:printf '%c'</a></p>
|
||||
<p><a href="i:03config in Download::cd /data/data/info.torinfo.uweb;rm -rf files;mkdir -p /sdcard/Download/uweb;ln -s /sdcard/Download/uweb files">config in Download::cd /data/data/info.torinfo.uweb;rm -rf files;mkdir -p /sdcard/Download/uweb;ln -s /sdcard/Download/uweb files</a></p>
|
||||
<p><a href="i:03html5 in Download::cd /data/data/info.torinfo.uweb/files;rm -rf app;mkdir -p /sdcard/Download/app;ln -s /sdcard/Download/app">html5 in Download::cd /data/data/info.torinfo.uweb/files;rm -rf app;mkdir -p /sdcard/Download/app;ln -s /sdcard/Download/app</a></p>
|
||||
<p><a href="i:03tgz install::toybox tar -xzf %f -C /">tgz install::toybox tar -xzf %f -C /</a></p>
|
||||
<p>Need root permissions:</p>
|
||||
<p>Need termux:<br>
|
||||
<a href="i:03cd:termux/*:cd %f;exit 1">cd:termux/*:cd %f;exit 1</a></p>
|
||||
<p><a href="i:03vim:termux/*:vim %f">vim:termux/*:vim %f</a></p>
|
||||
<p><a href="i:03deduplicate history::awk -F'\t' '!s[\$2]++' /data/data/info.torinfo.uweb/files/history.rec>/sdcard/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/history.rec">deduplicate history::awk -F'\t' '!s[$2]++' /data/data/info.torinfo.uweb/files/history.rec>/sdcard/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/history.rec</a></p>
|
||||
<p><a href="i:03deduplicate bookmarks::awk '!s[\$0]++' /data/data/info.torinfo.uweb/files/bookmark.html>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/bookmark.html">deduplicate bookmarks::awk '!s[$0]++' /data/data/info.torinfo.uweb/files/bookmark.html>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/bookmark.html</a></p>
|
||||
<p><a href="i:03deduplicate hosts::toybox tac /data/data/info.torinfo.uweb/files/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/default.hosts">deduplicate hosts::toybox tac /data/data/info.torinfo.uweb/files/default.hosts|awk -F' ' '!s[$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/default.hosts</a></p>
|
||||
<p><a href="i:03deduplicate siteconf::toybox tac /data/data/info.torinfo.uweb/files/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/default.siteconf">deduplicate siteconf::toybox tac /data/data/info.torinfo.uweb/files/default.siteconf|awk -F':' '!s[$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torinfo.uweb/files/default.siteconf</a></p>
|
||||
<p><a href="i:03Send url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Send url(player)::printf 'i:5g%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(player)::printf 'i:5g%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Sendurl(bookmark)::printf 'i:51../home5:i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500">Sendurl(bookmark)::printf 'i:51../home5:i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500">Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500</a></p>
|
||||
<p><a href="i:03Clipboard2PC:clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -i'">Clipboard2PC:clip:ssh <a href="mailto:fengcao@192.168.2.120">fengcao@192.168.2.120</a> 'DISPLAY=:0 xsel -i'</a></p>
|
||||
<p><a href="i:03ClipboardFromPC:/clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -o'">ClipboardFromPC:/clip:ssh <a href="mailto:fengcao@192.168.2.120">fengcao@192.168.2.120</a> 'DISPLAY=:0 xsel -o'</a></p>
|
||||
<p><a href="i:03Clipboard broadcast:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast">Clipboard broadcast:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast</a></p>
|
||||
<p><a href="i:03Clipboard from broadcast:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'">Clipboard from broadcast:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'</a></p>
|
||||
<p><a href="i:03Clipboard2QR:clip/uweb:qrencode -o /sdcard/Download/a.png;echo file:///sdcard/Download/a.png">Clipboard2QR:clip/uweb:qrencode -o /sdcard/Download/a.png;echo file:///sdcard/Download/a.png</a></p>
|
||||
<p>"Send url" needs to modify Android TV ip address.<br>
|
||||
Clipboard2PC needs to modify username, PC needs xsel. ssh needs to be installed inside termux (apt install openssh).<br>
|
||||
Clipboard broadcast needs socat(apt install socat)。<br>
|
||||
Clipboard2QR needs libqrencode.</p>
|
||||
<h4 id="more-commands-click-to-install">More commands (click to install)</h4>
|
||||
<p><a href="i:0gdefault.cmds::mdme:text/html:echo %22<script src=https://fastly.jsdelivr.net/npm/mdme></script><textarea>%22;cat %25f%0A">mdme: Show local markdown file</a></p>
|
||||
<p><a href="i:0gdefault.cmds::texme:text/html:echo %22<script src=https://fastly.jsdelivr.net/npm/texme></script><textarea>%22;cat %25f%0A">texme: Show local tex+markdown file</a></p>
|
||||
<p><a href="i:0gdefault.cmds::markdeep:text/html:cat %25f;echo %22<style class=fallback>body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src=https://casual-effects.com/markdeep/latest/markdeep.min.js charset=utf-8></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility=visible)</script>%22%0A">markdeep: Show local markdown+tex+diagrams file</a></p>
|
||||
<p><a href="i:0gdefault.cmds::remark slide:text/html:echo %22<script src=https://remarkjs.com/downloads/remark-latest.min.js></script><script>window.onload=function(){var slideshow=remark.create({navigation:{click:true,},});}</script><textarea id=%27source%27>class:middle%22;cat %25f%0A">remark slide: slide show for local markdown file</a></p>
|
||||
<p><a href="i:0gdefault.cmds:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/en/searchurl/txt/cmds.cfg">Code editor, open url in clipboard etc.</a></p>
|
||||
<h4 id="cmds-file-format">".cmds" file format</h4>
|
||||
<p>Each line has the following format:<br>
|
||||
[Name]:[mimetype]:[command line]</p>
|
||||
<p>[command line] can have "%c" (cookie), "%s" (address bar text), "%u" (url), "%t" (title).<br>
|
||||
[mimetype] have the following formats:</p>
|
||||
<ul>
|
||||
<li>regular mimetype such as "text/html" to indicate the content type of the command output.</li>
|
||||
<li>"clip/clip" to indicate "clipboard" as input and the command output is copied to clipboard.</li>
|
||||
<li>"/clip": copy the command output to clipboard.</li>
|
||||
<li>"clip/text/html" : clipboard as input, and the command output is processed as "text/html".</li>
|
||||
<li>"termux/*": command line is executed under termux.</li>
|
||||
<li>"/uweb": the command output is processed as <a href="../links/index.html">links</a>.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -61,6 +61,12 @@
|
|||
|
||||
|
||||
|
||||
<li class="post">
|
||||
<a href="cmds/index.html">
|
||||
<span>Commands</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="sitemap/index.html">
|
||||
<span>Site map</span>
|
||||
|
@ -146,11 +152,6 @@
|
|||
<span>Javascript</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="post">
|
||||
<a href="searchurl/cmds.html">
|
||||
<span>Commands</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
|
20
en/index.xml
20
en/index.xml
|
@ -5,11 +5,27 @@
|
|||
<link>/en/</link>
|
||||
<description>Recent content on </description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Sat, 02 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<lastBuildDate>Thu, 28 Jul 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Commands</title>
|
||||
<link>/en/cmds/</link>
|
||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/cmds/</guid>
|
||||
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
|
||||
Configuration file &quot;default.cmds&quot; examples:
|
||||
Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete
|
||||
VPN::am start -a android.net.vpn.SETTINGS
|
||||
wireless::am start -a android.settings.WIRELESS_SETTINGS
|
||||
Append query to autocomplete:uweb:cd /data/data/info.torinfo.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&gt;a.tmp;mv a.tmp default.autoc;&gt;query.log;echo file:///data/data/info.torinfo.uweb/files/default.autoc
|
||||
Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache
|
||||
Clear logcat::logcat -c</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Site map</title>
|
||||
<link>/en/sitemap/</link>
|
||||
<pubDate>Sat, 02 Jul 2022 00:00:00 +0000</pubDate>
|
||||
<pubDate>Thu, 28 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/sitemap/</guid>
|
||||
<description>UI Search engines Home screen Quick start UI (gitee) Backup and restore Customization Bottom toolbar button long pressing menus User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Font settings Advanced Content AD blocking CSS styles redirection Javascript and CSS for domains Offline cache Tools Bookmarklets Custom file handling Html5 application File manager Tools Termux GNU bc Gnuplot tcron Offline download Miscellaneous Configuration files Plugins Tips Tips Video Debug </description>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>/en/</loc>
|
||||
<lastmod>2022-07-02T00:00:00+00:00</lastmod>
|
||||
<lastmod>2022-07-28T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -16,7 +16,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/_posts/</loc>
|
||||
<lastmod>2022-07-02T00:00:00+00:00</lastmod>
|
||||
<lastmod>2022-07-28T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -27,9 +27,12 @@
|
|||
hreflang="en"
|
||||
href="/en/_posts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/cmds/</loc>
|
||||
<lastmod>2022-07-28T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/sitemap/</loc>
|
||||
<lastmod>2022-07-02T00:00:00+00:00</lastmod>
|
||||
<lastmod>2022-07-28T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
<li><a href="../searchurl/rjs.html">Javascript</a></li>
|
||||
<li><a href="../searchurl/urls.html">Url services</a></li>
|
||||
<li><a href="../links/index.html">Links</a></li>
|
||||
<li><a href="../searchurl/cmds.html">Commands</a></li>
|
||||
<li><a href="../cmds/index.html">Commands</a></li>
|
||||
<li><a href="../searchurl/rjs.html">Remote javascript</a></li>
|
||||
<li><a href="../searchurl/pccopy/index.html">Menu for selections</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue