From 3b6a36a2faa6586c423250d1e7ddaa6cc8253445 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Sun, 12 Feb 2023 22:03:54 +0800 Subject: [PATCH] Add profile switching for user configurations/http auth etc. --- README.md | 2 +- assets/help_zh.html~ | 144 ------------------------- en/_posts/index.xml | 1 + en/bookmark/index.html | 2 +- en/changelog/index.html | 3 +- en/index.html | 2 +- en/index.xml | 9 +- en/links/index.html | 28 +++-- en/readme/index.html | 2 +- en/searchurl/cmds.html | 33 ------ en/searchurl/func.html | 4 +- en/searchurl/txt/zim.html~ | 0 en/searchurl/urls.html | 66 ------------ en/topposts/index.xml | 6 +- en/unlist/index.xml | 2 +- zh/androidtv/index.html | 4 +- zh/bookmark/index.html | 2 +- zh/index.html | 2 +- zh/links/index.html | 16 +-- zh/searchurl/cmds.html | 19 ---- zh/searchurl/default.hosts.tar.gz | Bin 358 -> 0 bytes zh/searchurl/func.html | 4 +- zh/searchurl/sdcard/uweb/default.hosts | 31 ------ zh/searchurl/urls.html | 86 --------------- zh/searchurl/useragreement.html | 46 -------- 25 files changed, 51 insertions(+), 463 deletions(-) delete mode 100644 assets/help_zh.html~ delete mode 100644 en/searchurl/cmds.html delete mode 100644 en/searchurl/txt/zim.html~ delete mode 100644 en/searchurl/urls.html delete mode 100644 zh/searchurl/cmds.html delete mode 100644 zh/searchurl/default.hosts.tar.gz delete mode 100644 zh/searchurl/sdcard/uweb/default.hosts delete mode 100644 zh/searchurl/urls.html delete mode 100644 zh/searchurl/useragreement.html diff --git a/README.md b/README.md index 6bdd9b6e..2cd1dd3e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -### Uweb browser for geeks: unlimited power with html5 & termux +### Uweb browser: unlimited power 中文 [Amazon appstore](https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5) diff --git a/assets/help_zh.html~ b/assets/help_zh.html~ deleted file mode 100644 index 8533d2bc..00000000 --- a/assets/help_zh.html~ +++ /dev/null @@ -1,144 +0,0 @@ -使用攻略 -
使用攻略 English
-

访问以下网站并点击网页内部功能链接可扩充浏览器功能。
- 更新、插件、设置及使用技巧 ( -gitlab -repo -codeberg -netlify -fleek -stormkit -surge -github -试验 -试验1 -试验2 -试验3 -试验4 -试验5 - -试验6 -试验7 -试验8 - -试验9 -试验10 -试验11 -试验12 -试验13 -试验14 -试验15 -试验16 - -试验17 - -bitbucket -vercel -pages -)
- 高级用户: 点击本页面文件名链接弹出文本编辑器,部分链接为文件目录,长按可显示目录路径; 如果目录存在,点击可进入。创建目录并放入指定类型的文件,可以扩展浏览器功能。

-常用链接::
-界面配置及杂项(gitee镜像)
-高级个性化定制
-内部目录
-下载
-离线网页
-分类书签
-超级书签
- -出错报告
-项目主页
-空白便签
-
- -主屏查询举例::
-在主屏中间输入框或顶部地址栏内输入“进口牛奶”,再点击上面“值得买”。
-
- -提示:: - - -顶部工具条::
-从浏览器顶部往下拉或短按底部工具条页面搜索可显示。
-
- -底部工具条::
-左/右下角滑动或顶部/地址栏下方下拉可显示。
- - -更多工具: - -注:可通过关闭[JS]/[IMG]来屏蔽广告,这种屏蔽方式没有性能损失。
-
- -系统设置::
- - -功能选择:: - - -书签文件::
-用户可随意编辑文件bookmark.html,插入CSS样式。但最好仍然让每个书签占一行,可简化管理。
-
- -长按链接:: - - -高级配置:: - - - diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 67f25605..8e8fa1d8 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -111,6 +111,7 @@ The following html5 applications are allowed to read local files referred by &am /en/links/ Click the following links to install menus popped by long pressing the bookmark button (with star as icon): VPN +Switch configuration Wait for network msg Certificate info Backup to box.com diff --git a/en/bookmark/index.html b/en/bookmark/index.html index e37081cb..4a412ce5 100644 --- a/en/bookmark/index.html +++ b/en/bookmark/index.html @@ -47,7 +47,7 @@ -

Wait for url from other devices
+

Wait for url from other devices
berify: reverse image search for video

Bookmarks with secrets (POST instead of GET)

The search engine (".search") file can be used as bookmarks with secret. Here is an example bookmark for webdav cloud storage (replace "xxx" with real user and password):
diff --git a/en/changelog/index.html b/en/changelog/index.html index 9aa440f9..581ed25c 100644 --- a/en/changelog/index.html +++ b/en/changelog/index.html @@ -51,7 +51,8 @@

pagure

Main features

Change logs

-

968: multiple links support for single MENU/(New)Button/GESTURE definition.
+

971: multiple type profiles to switch website logins, http auth, user configurations and more orthogonally.
+968: multiple links support for single MENU/(New)Button/GESTURE definition.
964: site source html preprocessing before rendering with user site extra html.
961: webdav/http file upload support with "i:0u" links.
956: Search engines (.search file) to apply same folder "home.css". Use POST type search engine as bookmark for auto login.
diff --git a/en/index.html b/en/index.html index 0255cbe7..b2c26087 100644 --- a/en/index.html +++ b/en/index.html @@ -1,7 +1,7 @@ - + diff --git a/en/index.xml b/en/index.xml index 2a78a1f9..4ad7c0a2 100644 --- a/en/index.xml +++ b/en/index.xml @@ -94,11 +94,11 @@ github sourceforge powerfolder pagure -Main features Change logs 968: multiple links support for single MENU/(New)Button/GESTURE definition. +Main features Change logs 971: multiple type profiles to switch website logins, http auth, user configurations and more orthogonally. +968: multiple links support for single MENU/(New)Button/GESTURE definition. 964: site source html preprocessing before rendering with user site extra html. 961: webdav/http file upload support with "i:0u" links. -956: Search engines (.search file) to apply same folder "home.css". Use POST type search engine as bookmark for auto login. -955: Address bar: ":!" or "!" for command line support (. +956: Search engines (.search file) to apply same folder "home.css". Use POST type search engine as bookmark for auto login. @@ -176,6 +176,7 @@ Note: "Engines" needs file "engine.search",whose format is sam /en/links/ Click the following links to install menus popped by long pressing the bookmark button (with star as icon): VPN +Switch configuration Wait for network msg Certificate info Backup to box.com @@ -456,7 +457,7 @@ Swiping on the top part of content window (near the top address bar by default) Mon, 01 Jan 0001 00:00:00 +0000 /en/readme/ - Uweb browser for geeks: unlimited power with html5 & termux 中文 + Uweb browser: unlimited power 中文 Amazon appstore Downloads Uweb browser: downloads, plugins and tips diff --git a/en/links/index.html b/en/links/index.html index 9e0ff413..144c5427 100644 --- a/en/links/index.html +++ b/en/links/index.html @@ -49,8 +49,9 @@

Click the following links to install menus popped by long pressing the bookmark button (with star as icon):
VPN

-

Wait for network msg

-

Certificate info

+

Switch configuration

+

Wait for network msg

+

Certificate info

Backup to box.com

Restore from box.com

upload to box.com

@@ -112,6 +113,15 @@ The command line could be a ".js", ".sh" or other executable Click to install the example file ".js"

  • +

    :c[command]

    +
      +
    • close
      +":cclose" to close the current window/tab.
    • +
    • profile [parent folder] [file/folder] [optional ID]
      +Ex. ":cprofile . files" to switch configurations
    • +
    +
  • +
  • :p [width in milliInch]x[height] [top margin]:[right margin]:[bottom margin]:[left margin]
    Generate/Print PDF file in the "/sdcard/Download" folder, all units are milliinch.
    Ex. ":p x" or ":px" for screen width and infinite height (as long vector screenshot).
    @@ -154,20 +164,20 @@ Read partial data from url.
    Append [string] to the address bar text.

  • -

    i:1b
    +

    i:1c
    Show web certificate.

  • -

    i:1c
    -Wait to receive url from the network and open the url.

    +

    i:1d:::
    +Launch app for specific .

  • -

    i:1c1
    -Wait to receive url from the network and open the url (not showing ip)

    +

    i:1w
    +Wait to receive url from the network and open the url.

  • -

    i:1d:::
    -Launch app for specific .

    +

    i:1w1
    +Wait to receive url from the network and open the url (not showing ip)

  • i:1e
    diff --git a/en/readme/index.html b/en/readme/index.html index c4a6772c..9f325ca5 100644 --- a/en/readme/index.html +++ b/en/readme/index.html @@ -47,7 +47,7 @@

    -

    Uweb browser for geeks: unlimited power with html5 & termux

    +

    Uweb browser: unlimited power

    中文

    Amazon appstore
    Downloads

    diff --git a/en/searchurl/cmds.html b/en/searchurl/cmds.html deleted file mode 100644 index 09e1b659..00000000 --- a/en/searchurl/cmds.html +++ /dev/null @@ -1,33 +0,0 @@ - -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'

    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/searchurl/func.html b/en/searchurl/func.html index ed9b3445..503aee07 100644 --- a/en/searchurl/func.html +++ b/en/searchurl/func.html @@ -32,7 +32,7 @@ body>ul{padding-left:0;}
  • -
  • +
  • ----------------5---------------
  • @@ -57,7 +57,7 @@ body>ul{padding-left:0;}
  • -
  • +