diff --git a/en/_posts/index.xml b/en/_posts/index.xml index bf01398..cfe0038 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -5,11 +5,27 @@ /en/_posts/ Recent content in _posts on Hugo -- gohugo.io - Sat, 02 Jul 2022 00:00:00 +0000 + Thu, 28 Jul 2022 00:00:00 +0000 + + Commands + /en/cmds/ + Thu, 28 Jul 2022 00:00:00 +0000 + + /en/cmds/ + 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 "default.cmds" 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>a.tmp;mv a.tmp default.autoc;>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 + + Site map /en/sitemap/ - Sat, 02 Jul 2022 00:00:00 +0000 + Thu, 28 Jul 2022 00:00:00 +0000 /en/sitemap/ 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 diff --git a/en/cmds/index.html b/en/cmds/index.html new file mode 100644 index 0000000..5525612 --- /dev/null +++ b/en/cmds/index.html @@ -0,0 +1,105 @@ + + + + + + + + Commands + + + +
+ + + +
+
+ +
+

Commands +
+ +

+
    + +
+

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 "default.cmds" 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>a.tmp;mv a.tmp default.autoc;>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

+

logcat.log::logcat -d > logcat.log

+

copy cookie:/clip:printf '%c'

+

config in Download::cd /data/data/info.torinfo.uweb;rm -rf files;mkdir -p /sdcard/Download/uweb;ln -s /sdcard/Download/uweb files

+

html5 in Download::cd /data/data/info.torinfo.uweb/files;rm -rf app;mkdir -p /sdcard/Download/app;ln -s /sdcard/Download/app

+

tgz install::toybox tar -xzf %f -C /

+

Need root permissions:

+

Need termux:
+cd:termux/*:cd %f;exit 1

+

vim:termux/*:vim %f

+

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

+

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

+

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

+

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

+

Send url::printf '%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

+

Sendurl(bookmark)::printf 'i:51../home5:i:0mc16:%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

+

Send url(video)::printf 'i:0mc16:%u'|/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

+

Clipboard2PC:clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -i'

+

ClipboardFromPC:/clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -o'

+

Clipboard broadcast:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast

+

Clipboard from broadcast:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'

+

Clipboard2QR:clip/uweb:qrencode -o /sdcard/Download/a.png;echo file:///sdcard/Download/a.png

+

"Send url" needs to modify Android TV ip address.
+Clipboard2PC needs to modify username, PC needs xsel. ssh needs to be installed inside termux (apt install openssh).
+Clipboard broadcast needs socat(apt install socat)。
+Clipboard2QR needs libqrencode.

+

More commands (click to install)

+

mdme: Show local markdown file

+

texme: Show local tex+markdown file

+

markdeep: Show local markdown+tex+diagrams file

+

remark slide: slide show for local markdown file

+

Code editor, open url in clipboard etc.

+

".cmds" file format

+

Each line has the following format:
+[Name]:[mimetype]:[command line]

+

[command line] can have "%c" (cookie), "%s" (address bar text), "%u" (url), "%t" (title).
+[mimetype] have the following formats:

+
    +
  • regular mimetype such as "text/html" to indicate the content type of the command output.
  • +
  • "clip/clip" to indicate "clipboard" as input and the command output is copied to clipboard.
  • +
  • "/clip": copy the command output to clipboard.
  • +
  • "clip/text/html" : clipboard as input, and the command output is processed as "text/html".
  • +
  • "termux/*": command line is executed under termux.
  • +
  • "/uweb": the command output is processed as links.
  • +
+ +
+ + + diff --git a/en/index.html b/en/index.html index 94532b4..6947e9a 100644 --- a/en/index.html +++ b/en/index.html @@ -61,6 +61,12 @@ +
  • + + Commands + +
  • +
  • Site map @@ -146,11 +152,6 @@ Javascript
  • -
  • - - Commands - -
  • diff --git a/en/index.xml b/en/index.xml index 591acad..53db40b 100644 --- a/en/index.xml +++ b/en/index.xml @@ -5,11 +5,27 @@ /en/ Recent content on Hugo -- gohugo.io - Sat, 02 Jul 2022 00:00:00 +0000 + Thu, 28 Jul 2022 00:00:00 +0000 + + Commands + /en/cmds/ + Thu, 28 Jul 2022 00:00:00 +0000 + + /en/cmds/ + 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 "default.cmds" 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>a.tmp;mv a.tmp default.autoc;>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 + + Site map /en/sitemap/ - Sat, 02 Jul 2022 00:00:00 +0000 + Thu, 28 Jul 2022 00:00:00 +0000 /en/sitemap/ 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 diff --git a/en/sitemap.xml b/en/sitemap.xml index e0181d4..a5f636d 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -3,7 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> /en/ - 2022-07-02T00:00:00+00:00 + 2022-07-28T00:00:00+00:00 /en/_posts/ - 2022-07-02T00:00:00+00:00 + 2022-07-28T00:00:00+00:00 + + /en/cmds/ + 2022-07-28T00:00:00+00:00 /en/sitemap/ - 2022-07-02T00:00:00+00:00 + 2022-07-28T00:00:00+00:00 Javascript
  • Url services
  • Links
  • -
  • Commands
  • +
  • Commands
  • Remote javascript
  • Menu for selections
  • diff --git a/sitemap.xml b/sitemap.xml index a2dfbed..091bd9b 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ en/sitemap.xml - 2022-07-02T00:00:00+00:00 + 2022-07-28T00:00:00+00:00 diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml index 13c3c7b..7c51bc1 100644 --- a/zh/_posts/index.xml +++ b/zh/_posts/index.xml @@ -13,7 +13,7 @@ /zh/html5/ mdict字典搜索引擎: -https://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word= +i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word= 字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。 点击安装超大文件阅读器(支持txt, html, markdown) 点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等) diff --git a/zh/html5/index.html b/zh/html5/index.html index f7ca757..60bc341 100644 --- a/zh/html5/index.html +++ b/zh/html5/index.html @@ -44,7 +44,7 @@

    mdict字典搜索引擎:
    -https://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word=

    +i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word=

    字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。

    点击安装超大文件阅读器(支持txt, html, markdown)
    点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等)
    diff --git a/zh/index.xml b/zh/index.xml index 8c12058..8f5d5de 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -13,7 +13,7 @@ /zh/html5/ mdict字典搜索引擎: -https://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word= +i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word= 字典文件必须位于配置目录应用子目录"app"下。上述字典搜索引擎例子中文件"xxx.mdx"及"xxx.mdd"位于".../app/mdict"下。 点击安装超大文件阅读器(支持txt, html, markdown) 点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等) diff --git a/zh/searchurl/plugins.html b/zh/searchurl/plugins.html index 181e0bf..aa0c34e 100644 --- a/zh/searchurl/plugins.html +++ b/zh/searchurl/plugins.html @@ -16,14 +16,18 @@ 天翼 百度网盘 ),需启动termux一次,以完成应用初始化。 -

  • 点击链接允许插件安装
  • +
  • 点击链接允许插件安装
  • 长按底部工具条设置按钮,勾选文件预处理。
  • 正常退出以保存设置,清理后台并重启浏览器。
  • -

    插件管理系统功能强大,考虑到潜在的安全隐患,使用插件的同学请不要给予超微浏览器或定制termux超级用户的权限。至少要保证每次使用超级用户权限前弹出提醒或警告。本页面亦提供插件关闭插件管理系统,安装完必要的插件后用户应立即关闭插件管理系统。

    -

    开启插件系统以后,点击下面的链接即可直接安装。插件可反复安装,互相冲突的插件会被新安装覆盖。插件多寡不影响性能。部分插件需浏览器重启后才能生效。插件列表:

    +

    插件管理系统功能强大,考虑到潜在的安全隐患,使用插件的同学请不要给予超微浏览器或定制termux超级用户的权限。至少要保证每次使用超级用户权限前弹出提醒或警告。本页面亦提供插件关闭插件管理系统,安装完必要的插件后用户应立即关闭插件管理系统。

    + +

    点击链接关闭插件管理系统并清除文件预处理,清理后台并重启后生效

    +

    开启插件系统以后,点击下面的链接即可直接安装。插件可反复安装,互相冲突的插件会被新安装覆盖。插件多寡不影响性能。部分插件需浏览器重启后才能生效。

    + +

    插件列表 (需安装Termux):