From 28da258433b6c13f3fa2d11a3c549a4f9a39979c Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Sat, 24 Sep 2022 14:12:26 +0800 Subject: [PATCH] fix typos from torinfo to torapp --- en/adblock/index.html | 4 +- en/adblock_domain/index.html | 2 +- en/cmds/index.html | 14 +++--- en/filecap/index.html | 6 +-- en/filenames/index.html | 88 ++++++++++++++++++------------------ en/html5/index.html | 12 ++--- en/index.xml | 2 +- en/longclick/index.html | 4 +- en/search/index.html | 5 ++ en/searchurl/config.js | 2 +- en/topposts/index.xml | 2 +- en/urls/index.html | 14 +++--- zh/_posts/index.xml | 14 +++--- zh/adblock/index.html | 4 +- zh/adblock_domain/index.html | 2 +- zh/androidtv/index.html | 2 +- zh/cmds/index.html | 10 ++-- zh/filecap/index.html | 6 +-- zh/filenames/index.html | 88 ++++++++++++++++++------------------ zh/html5/index.html | 12 ++--- zh/index.xml | 16 +++---- zh/longclick/index.html | 4 +- zh/tags/curl/index.xml | 2 +- zh/tags/termux/index.xml | 2 +- zh/topposts/index.xml | 2 +- zh/urls/index.html | 14 +++--- 26 files changed, 169 insertions(+), 164 deletions(-) diff --git a/en/adblock/index.html b/en/adblock/index.html index 584f2fa..a1ba2f6 100644 --- a/en/adblock/index.html +++ b/en/adblock/index.html @@ -68,7 +68,7 @@
  • -

    Long press the setting button, check the option "Block external scripts". UI website has option to also block dubious 3rd party resources. js.allow whitelists js libraries.

    +

    Long press the setting button, check the option "Block external scripts". UI website has option to also block dubious 3rd party resources. js.allow whitelists js libraries.

  • Long press the button [☰], "Disable floating ADs", "Disable banners", "clear all timers", "stop events" and "Sleep ..." are also available.

    @@ -80,7 +80,7 @@

    Click the button "JS" to disable javascript.

  • -

    url.deny: one giant regular expression for blocked urls (java grammar), in which carriage returns (CR or newline) are ignored and "#" is for comments.

    +

    url.deny: one giant regular expression for blocked urls (java grammar), in which carriage returns (CR or newline) are ignored and "#" is for comments.

  • diff --git a/en/adblock_domain/index.html b/en/adblock_domain/index.html index 39990bb..e960f81 100644 --- a/en/adblock_domain/index.html +++ b/en/adblock_domain/index.html @@ -49,7 +49,7 @@
  • adblock
  • -

    hosts blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" are also valid in the hosts file.

    +

    hosts blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" are also valid in the hosts file.

    Each line of the hosts file has the following format:
    [rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]
    The first part [rootDomain] is required and the others are optional. regex is java-grammar regular expression. If the second regex is used, it is recommended to merge the first regex to the second one for performance.

    diff --git a/en/cmds/index.html b/en/cmds/index.html index be2dbe2..9db50f4 100644 --- a/en/cmds/index.html +++ b/en/cmds/index.html @@ -50,13 +50,13 @@

    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

    -

    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

    +

    Append query to autocomplete:uweb:cd /data/data/info.torapp.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.torapp.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;toybox rm -rf files;toybox mkdir -p /sdcard/Download/uweb;toybox ln -s /sdcard/Download/uweb files

    -

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

    +

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

    +

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

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

    Users should change the IP addresses in the following menus accordingly. In all cases, TV side needs to execute "wait for network msg" first. Send message to network (ex. for android TVs):
    Send clipboard:clip/uweb:printf 'i:5ji:5b';cat

    @@ -72,10 +72,10 @@

    wireless::am start -a android.settings.WIRELESS_SETTINGS

    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

    +

    deduplicate history::awk -F'\t' '!s[$2]++' /data/data/info.torapp.uweb/files/history.rec>/sdcard/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torapp.uweb/files/history.rec

    +

    deduplicate bookmarks::awk '!s[$0]++' /data/data/info.torapp.uweb/files/bookmark.html>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torapp.uweb/files/bookmark.html

    +

    deduplicate hosts::toybox tac /data/data/info.torapp.uweb/files/default.hosts|awk -F' ' '!s[$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torapp.uweb/files/default.hosts

    +

    deduplicate siteconf::toybox tac /data/data/info.torapp.uweb/files/default.siteconf|awk -F':' '!s[$1]++' |toybox tac>/sdcard/Download/a.tmp;mv /sdcard/Download/a.tmp /data/data/info.torapp.uweb/files/default.siteconf

    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

    diff --git a/en/filecap/index.html b/en/filecap/index.html index 0069e7f..6fae0e5 100644 --- a/en/filecap/index.html +++ b/en/filecap/index.html @@ -73,9 +73,9 @@ xlsx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U pptx:uweb:echo http://docs.google.com/gview?embedded=true&url=%U xz:text/plain:curl %p "%u"|xz -d --

    Examples for html5 application:

    -
    pdf:uweb:echo file:///data/data/info.torinfo.uweb/files/app/pdf.js/web/viewer.html?file=%u
    -djvu:uweb:echo file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=%u
    -epub:uweb:echo file:///data/data/info.torinfo.uweb/files/app/reader/index.html?bookPath==%u
    +
    pdf:uweb:echo file:///data/data/info.torapp.uweb/files/app/pdf.js/web/viewer.html?file=%u
    +djvu:uweb:echo file:///data/data/info.torapp.uweb/files/app/djvu.html?url=%u
    +epub:uweb:echo file:///data/data/info.torapp.uweb/files/app/reader/index.html?bookPath==%u
    diff --git a/en/filenames/index.html b/en/filenames/index.html index 3c48bbb..b9e0c9a 100644 --- a/en/filenames/index.html +++ b/en/filenames/index.html @@ -48,55 +48,55 @@

    All folders end with character "/" and others are files. All folders/files locate in "/data/data/info.torapp.uweb/files":
    -"css/": global css folder
    -"js/": global script folder
    -"sitejs/": script folder for domains
    -"sitecss/":CSS folder for domains
    -"bookmarklet/":bookmarklets, long pressing the "JS" button to execute.
    -"offline/": to save offline pages
    -"sbookmark/": to save super bookmarks
    -"sitecache/":offline cache
    -"longclick/": menus to appear when long-pressing hypertext (js files)
    -"icon/":customized icons
    +"css/": global css folder
    +"js/": global script folder
    +"sitejs/": script folder for domains
    +"sitecss/":CSS folder for domains
    +"bookmarklet/":bookmarklets, long pressing the "JS" button to execute.
    +"offline/": to save offline pages
    +"sbookmark/": to save super bookmarks
    +"sitecache/":offline cache
    +"longclick/": menus to appear when long-pressing hypertext (js files)
    +"icon/":customized icons
    "app[XXX]/":html5 applications
    -"default.longclick": to configure menus when long-pressing hypertext.
    -"default.uas":user agents
    -"default.urls":service urls
    -"default.acmd":configure address bar functionalities
    -"default.hosts":hosts not allowed to visit
    -"default.redirect":redirect websites
    -"default.cmds":commands
    -"default.link":links
    -"default.rjs":Remote javascript
    -"default.select":menus for selected text
    -"default.input": common phrases for user inputs
    -"default.gesture": to define gestures on the top part of the content window. The file format is same as default.link
    -"default.gesture2": gestures on the right side similar to default.gesture.
    -"default.button": to re-define button pressing functionalities. The file format is same as default.link, each line represents action from the last button to the first.
    -"default.button2": similar to default.button but for long-pressed buttons.
    -"default.filecap":custom file handling
    -"default.rc": check the option "custom file handling" to execute the shell script file during uweb launching. tcron provides extra cron tools.
    -"default.rc2": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.
    -"engine.search": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to home5.search but using "%s" as search keywords.
    -"default.siteconf": to save ua, js disabling, no-image mode, forbids 3rd-party resources (js and others), active scripts, global scripts for sites. Only save the difference to default ones.
    -"default.playrate": fullscreen playing menu. The file format is same as default.link. Playing ratio menu items should have empty link parts such as ".5x:", at least one such menu is required. All other menus must be put after playing ratio menus.
    -"default.autoc": address bar autocomplete candidate strings.
    +"default.longclick": to configure menus when long-pressing hypertext.
    +"default.uas":user agents
    +"default.urls":service urls
    +"default.acmd":configure address bar functionalities
    +"default.hosts":hosts not allowed to visit
    +"default.redirect":redirect websites
    +"default.cmds":commands
    +"default.link":links
    +"default.rjs":Remote javascript
    +"default.select":menus for selected text
    +"default.input": common phrases for user inputs
    +"default.gesture": to define gestures on the top part of the content window. The file format is same as default.link
    +"default.gesture2": gestures on the right side similar to default.gesture.
    +"default.button": to re-define button pressing functionalities. The file format is same as default.link, each line represents action from the last button to the first.
    +"default.button2": similar to default.button but for long-pressed buttons.
    +"default.filecap":custom file handling
    +"default.rc": check the option "custom file handling" to execute the shell script file during uweb launching. tcron provides extra cron tools.
    +"default.rc2": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.
    +"engine.search": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to home5.search but using "%s" as search keywords.
    +"default.siteconf": to save ua, js disabling, no-image mode, forbids 3rd-party resources (js and others), active scripts, global scripts for sites. Only save the difference to default ones.
    +"default.playrate": fullscreen playing menu. The file format is same as default.link. Playing ratio menu items should have empty link parts such as ".5x:", at least one such menu is required. All other menus must be put after playing ratio menus.
    +"default.autoc": address bar autocomplete candidate strings.
    "query.autoc": home screen search autocomplete candidate strings.
    -"home5.html": user defined home screen. home6.html, home6.search, home7.html ... multiple home screen (pressing right arrow button to visit). ".html" files have priority over ".search" files. home4.html, home4.search, home3.html ... (long pressing left arrow button to access).
    -"home5.search":search engines
    -"home.css": home screen styles
    -"bookmark.html": bookmarks
    -"quickstart.html": quick start
    -"colors.txt": background colors
    -"default.css": default CSS style for domains not defined in sitejs folder
    -"night.css": Night mode
    +"home5.html": user defined home screen. home6.html, home6.search, home7.html ... multiple home screen (pressing right arrow button to visit). ".html" files have priority over ".search" files. home4.html, home4.search, home3.html ... (long pressing left arrow button to access).
    +"home5.search":search engines
    +"home.css": home screen styles
    +"bookmark.html": bookmarks
    +"quickstart.html": quick start
    +"colors.txt": background colors
    +"default.css": default CSS style for domains not defined in sitejs folder
    +"night.css": Night mode
    "bookmarklet/videoplayer.js": fullscreen video player
    -"types.sniff": file types for resource sniffer
    +"types.sniff": file types for resource sniffer
    "js.allow": 3rd-party resource white list. One domain per line.
    "url.deny": one giant regular expression for blocked urls (java grammar). "#" to comment and carriage return (CR or new line) is ignored.
    -"sniff.log": resource sniffing result
    -"history.rec": visiting history
    -"query.rec": query history

    +"sniff.log": resource sniffing result
    +"history.rec": visiting history
    +"query.rec": query history

    "shortcut/": dynamical shortcut, if not exist, then default to "bookmark".

    diff --git a/en/html5/index.html b/en/html5/index.html index 1fafd5e..acb3258 100644 --- a/en/html5/index.html +++ b/en/html5/index.html @@ -69,12 +69,12 @@ Click to install the following html5 apps:
    use pdf.js,djvu.js,epub.js, huge markdown viewer for local files

    url examples are as follows:

    Ex. "#offset=10000&500" will retrieve 500 bytes from offset 10000. Click the right arrow button to next page in all above file viewers.

    Configure html5 app subfolder "app" (optional)

    diff --git a/en/index.xml b/en/index.xml index aa10231..54fa227 100644 --- a/en/index.xml +++ b/en/index.xml @@ -200,7 +200,7 @@ trace.moe:https://trace.moe/?url= 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 -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 +Append query to autocomplete:uweb:cd /data/data/info.torapp.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.torapp.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 diff --git a/en/longclick/index.html b/en/longclick/index.html index 12cf340..e19c66f 100644 --- a/en/longclick/index.html +++ b/en/longclick/index.html @@ -50,11 +50,11 @@

    To run commands

    -

    Each line of file "default.longclick" has the following format: (same as default.cmds)
    +

    Each line of file "default.longclick" has the following format: (same as default.cmds)
    [Name]:[mimetype]:[command line]
    in which [command line] can have "%c" (cookie), "%u" (current url), "%t" (title) etc.

    To visit url and load javascript file

    -

    All ".js" files under the folder "longclick" are part of the popup menu.
    +

    All ".js" files under the folder "longclick" are part of the popup menu.
    These javascript files are in the following format:

  • -

    长按设置,选取"拦截外链脚本"。可在界面配置及杂项网页额外拦截第三方可疑资源。可配置白名单js.allow

    +

    长按设置,选取"拦截外链脚本"。可在界面配置及杂项网页额外拦截第三方可疑资源。可配置白名单js.allow

  • 长按[☰]按钮可隐藏浮动信息,移除横幅,清空定时器(防止定时触发不良信息),中断可疑事件(防止用户操作触发),等待(防止延迟触发)。

    @@ -87,7 +87,7 @@

    关闭[JS]脚本。

  • -

    url.deny。需要屏蔽的url正则表达式(java语法),忽视回车,可用"#"开头注释。

    +

    url.deny。需要屏蔽的url正则表达式(java语法),忽视回车,可用"#"开头注释。

  • diff --git a/zh/adblock_domain/index.html b/zh/adblock_domain/index.html index ffebb76..15922da 100644 --- a/zh/adblock_domain/index.html +++ b/zh/adblock_domain/index.html @@ -49,7 +49,7 @@
  • 不良信息屏蔽
  • -

    域名文件可屏蔽文件中域名的一切子域名、孙域名、......,可彻底绝杀一切不良信息。所以用户屏蔽根域名时无需选择提示中出现的整个域名,只需选取最后两段或三段(最后两段不超过6字符如com.cn的域名可取四段)。

    +

    域名文件可屏蔽文件中域名的一切子域名、孙域名、......,可彻底绝杀一切不良信息。所以用户屏蔽根域名时无需选择提示中出现的整个域名,只需选取最后两段或三段(最后两段不超过6字符如com.cn的域名可取四段)。

    下面列表中以"/"结尾者为目录,其余为文件:
    -"css/":全局样式目录
    -"js/": 全局脚本目录
    -"sitejs/":类油猴脚本,针对特定网址
    -"sitecss/":针对特定网址css样式
    -"bookmarklet/":js脚本目录,长按JS按钮可执行。
    -"offline/":离线下载目录
    -"sbookmark/":超级书签默认目录
    -"sitecache/":用户供应网站离线数据
    -"longclick/":长按链接菜单(js)
    -"icon/":图标定制
    +"css/":全局样式目录
    +"js/": 全局脚本目录
    +"sitejs/":类油猴脚本,针对特定网址
    +"sitecss/":针对特定网址css样式
    +"bookmarklet/":js脚本目录,长按JS按钮可执行。
    +"offline/":离线下载目录
    +"sbookmark/":超级书签默认目录
    +"sitecache/":用户供应网站离线数据
    +"longclick/":长按链接菜单(js)
    +"icon/":图标定制
    "app[XXX]/":html5应用目录
    -"default.longclick":长按链接菜单
    -"default.uas":浏览器标识
    -"default.urls":特色服务
    -"default.acmd":浏览器地址栏功能配置
    -"default.hosts":不良信息屏蔽文件
    -"default.redirect":重定向配置
    -"default.cmds":长按“历史”按钮配置
    -"default.link":长按“书签”按钮配置
    -"default.rjs":远程及简单脚本
    -"default.select":长按“链接”按钮配置
    -"default.input":每行一个网页常用输入短语
    -"default.gesture":格式与文件default.link完全相同,定义地址栏下方手势操作
    -"default.gesture2":右边缘手势操作,类似default.gesture。
    -"default.button":格式与文件default.link完全相同,每行从最后一个按钮开始重定义单击功能。
    -"default.button2":类似default.button。每行从最后一个按钮开始重定义长按功能。
    -"default.filecap":文件特殊处理
    -"default.rc":如果勾选“文件预处理”,则uweb启动时运行此shell脚本。可与tcron配合运行定时任务,如存储清理、网页签到等。
    -"default.rc2":如果勾选“文件预处理”,则uweb返回前台时运行此shell脚本。
    -"engine.search":格式同home5.search,搜索引擎url仅支持%s语法。(搜索词部分用%s代替),供自动顺序搜索使用。
    -"default.siteconf":网站独立设置,保存ua、禁用js、无图、禁用第三方(js,可疑资源)、当前激活脚本、全局脚本。当前设置与默认不同才会保存。比如当前不屏蔽第三方js,但屏蔽第三方可疑资源,则屏蔽第三方设置与默认不同,站点设置被保存。
    -"default.playrate":全屏播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如".5x:",倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。
    -"default.autoc":地址栏autocomplete候选字符串
    +"default.longclick":长按链接菜单
    +"default.uas":浏览器标识
    +"default.urls":特色服务
    +"default.acmd":浏览器地址栏功能配置
    +"default.hosts":不良信息屏蔽文件
    +"default.redirect":重定向配置
    +"default.cmds":长按“历史”按钮配置
    +"default.link":长按“书签”按钮配置
    +"default.rjs":远程及简单脚本
    +"default.select":长按“链接”按钮配置
    +"default.input":每行一个网页常用输入短语
    +"default.gesture":格式与文件default.link完全相同,定义地址栏下方手势操作
    +"default.gesture2":右边缘手势操作,类似default.gesture。
    +"default.button":格式与文件default.link完全相同,每行从最后一个按钮开始重定义单击功能。
    +"default.button2":类似default.button。每行从最后一个按钮开始重定义长按功能。
    +"default.filecap":文件特殊处理
    +"default.rc":如果勾选“文件预处理”,则uweb启动时运行此shell脚本。可与tcron配合运行定时任务,如存储清理、网页签到等。
    +"default.rc2":如果勾选“文件预处理”,则uweb返回前台时运行此shell脚本。
    +"engine.search":格式同home5.search,搜索引擎url仅支持%s语法。(搜索词部分用%s代替),供自动顺序搜索使用。
    +"default.siteconf":网站独立设置,保存ua、禁用js、无图、禁用第三方(js,可疑资源)、当前激活脚本、全局脚本。当前设置与默认不同才会保存。比如当前不屏蔽第三方js,但屏蔽第三方可疑资源,则屏蔽第三方设置与默认不同,站点设置被保存。
    +"default.playrate":全屏播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如".5x:",倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。
    +"default.autoc":地址栏autocomplete候选字符串
    "query.autoc":主屏搜索autocomplete候选字符串
    -"home5.html":自定义主屏,home6.html, home6.search, home7.html ... 多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。
    -"home5.search":主屏搜索引擎
    -"home.css":主屏风格
    -"bookmark.html":主书签
    -"quickstart.html":快速访问
    -"colors.txt":护眼背景色
    -"default.css":勾选网址特定样式后无匹配情形下的默认样式
    -"night.css":夜间模式,代替超微内部实现
    +"home5.html":自定义主屏,home6.html, home6.search, home7.html ... 多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ... (长按后退按钮可进)。
    +"home5.search":主屏搜索引擎
    +"home.css":主屏风格
    +"bookmark.html":主书签
    +"quickstart.html":快速访问
    +"colors.txt":护眼背景色
    +"default.css":勾选网址特定样式后无匹配情形下的默认样式
    +"night.css":夜间模式,代替超微内部实现
    "bookmarklet/videoplayer.js":用户定义视频播放
    -"types.sniff":嗅探类型
    +"types.sniff":嗅探类型
    "js.allow":外链js白名单,每行一个域名。
    "url.deny":需要屏蔽的url正则表达式(java语法),忽视回车,可用"#"开头注释。
    -"sniff.log":嗅探结果
    -"history.rec":访问历史
    -"query.rec":查询历史

    +"sniff.log":嗅探结果
    +"history.rec":访问历史
    +"query.rec":查询历史

    应用内部保护目录(/data/data/info.torapp.uweb/files/):
    "shortcut/":动态shortcut刷新目录,若不存在则默认为"bookmark"目录。

    diff --git a/zh/html5/index.html b/zh/html5/index.html index 49965c8..f5c1a5d 100644 --- a/zh/html5/index.html +++ b/zh/html5/index.html @@ -62,18 +62,18 @@ i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,md

    配置default.filecap并打开选项“文件预处理”,清后台重启浏览器后超微可直接阅读应用对应格式文件。
    点击配置pdf.js,djvu.js,epub.js,超大文件阅读器

    超大文件阅读器txtview.html url如下:
    -file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#page=[xxx]
    -file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&[length]
    -file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#page=[xxx]
    -file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&[length]
    +file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#page=[xxx]
    +file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&[length]
    +file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#page=[xxx]
    +file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&[length]
    譬如"#offset=10000&500"会访问超大文件偏移量10000处长度为500的内容。
    所有阅读器均支持箭头按钮(短按前进按钮或长按后退按钮)自动翻页。

    比较有用的是mozilla的pdf.js,可用来显示在线或本地pdf文件。url如下:
    -file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx]
    +file:///data/user/0/info.torapp.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx]
    则浏览器直接跳转到pdf文件指定页。与主屏多引擎搜索及少量脚本结合使用,可对任何pdf文件进行字典检索。

    下面是一些类似的应用:
    djvu.js应用的访问url如下:
    -file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx]

    +file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx]

    epub.js
    sampotts/plyr : video, YouTube and Vimeo player
    videojs/video.js
    diff --git a/zh/index.xml b/zh/index.xml index 41506d8..6adadfa 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -102,18 +102,18 @@ i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,md 配置default.filecap并打开选项“文件预处理”,清后台重启浏览器后超微可直接阅读应用对应格式文件。 点击配置pdf.js,djvu.js,epub.js,超大文件阅读器 超大文件阅读器txtview.html url如下: -file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#page=[xxx] -file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&[length] -file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#page=[xxx] -file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&[length] +file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#page=[xxx] +file:///data/user/0/info.torapp.uweb/files/app/txtview.html?url=[url]#offset=[xxxx]&[length] +file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#page=[xxx] +file:///data/user/0/info.torapp.uweb/files/app/markdeep.html?url=[url]#offset=[xxxx]&[length] 譬如"#offset=10000&500"会访问超大文件偏移量10000处长度为500的内容。 所有阅读器均支持箭头按钮(短按前进按钮或长按后退按钮)自动翻页。 比较有用的是mozilla的pdf.js,可用来显示在线或本地pdf文件。url如下: -file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] +file:///data/user/0/info.torapp.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] 则浏览器直接跳转到pdf文件指定页。与主屏多引擎搜索及少量脚本结合使用,可对任何pdf文件进行字典检索。 下面是一些类似的应用: djvu.js应用的访问url如下: -file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] +file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] epub.js sampotts/plyr : video, YouTube and Vimeo player videojs/video.js @@ -260,7 +260,7 @@ BugMeNot 清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete 本地备份配置::toybox cp -r /data/data/info.torapp.uweb/files /sdcard/Download/uweb 本地恢复配置::toybox cp -r /sdcard/Download/uweb/* /data/data/info.torapp.uweb/files/. -合并查询历史至自动填充: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 +合并查询历史至自动填充:uweb:cd /data/data/info.torapp.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.torapp.uweb/files/default.autoc 清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache 清空logcat::logcat -c 输出logcat.log::logcat -d > logcat.log @@ -789,7 +789,7 @@ mimetype表示命令处理后的输出内容格式。 利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。 配置default.filecap如下: txt:text/html:curl %p "%u" mp3:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>' m4b:text/html:echo '<audio controls width=100% height=100%><source src="%u"></audio>' m3u8:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>' mp4:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>' mkv:text/html:echo '<video controls width=100% height=100%><source src="%u"></video>' doc:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U xls:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U ppt:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U docx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U xlsx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U pptx:uweb:echo https://view.officeapps.live.com/op/view.aspx?src=%U xz:text/plain:curl %p "%u"|xz -d -- 安装过相应的html5应用,则如下配置阅读相应格式文件: -pdf:uweb:echo file:///data/data/info.torinfo.uweb/files/app/pdf.js/web/viewer.html?file=%u djvu:uweb:echo file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=%u epub:uweb:echo file:///data/data/info.torinfo.uweb/files/app/reader/index.html?bookPath==%u 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 +pdf:uweb:echo file:///data/data/info.torapp.uweb/files/app/pdf.js/web/viewer.html?file=%u djvu:uweb:echo file:///data/data/info.torapp.uweb/files/app/djvu.html?url=%u epub:uweb:echo file:///data/data/info.torapp.uweb/files/app/reader/index.html?bookPath==%u 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 如果用户配置中处理命令用到curl,则需要安装Termux,并在Termux中安装curl ("apt install curl")。 diff --git a/zh/longclick/index.html b/zh/longclick/index.html index b4203d9..9ce3b14 100644 --- a/zh/longclick/index.html +++ b/zh/longclick/index.html @@ -50,11 +50,11 @@

    长按链接运行第三方程序

    -

    配置文件default.longclick每行格式如下(同default.cmds
    +

    配置文件default.longclick每行格式如下(同default.cmds
    菜单名:mimetype:命令路径
    命令可以包含%c(当前网址cookie)等,执行时会被相应内容自动替换。

    长按链接运行js文件

    -

    长按链接弹出菜单显示longclick目录下所有js文件供用户挑选执行。
    +

    长按链接弹出菜单显示longclick目录下所有js文件供用户挑选执行。
    js文件格式如下: