diff --git a/en/_posts/index.xml b/en/_posts/index.xml index dff65f8..4fce315 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -21,7 +21,7 @@ Thu, 30 Jun 2022 00:00:00 +0000 /en/filenames/ - All folders end with character "/" and others are files. If option "use in-app config" is checked, then "sitejs/" and "sitecache/" locate inside app internal folder (/data/data/info.torapp.uweb/files), otherwise all folders/files locate in "/sdcard/uweb": + 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 @@ -29,7 +29,11 @@ "bookmarklet/":bookmarklets, long pressing the "JS" button to execute. "offline/": to save offline pages "sbookmark/": to save super bookmarks -"sitecache/":offline cache +"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. @@ -91,7 +95,7 @@ Enable selection google Translate bing translate deepL -The file "/sdcard/uweb/default.select" defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file "default.select" defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as "[input mimetype]/[output mimetype]". @@ -105,9 +109,9 @@ It formats as "[input mimetype]/[output mimetype]". Sun, 03 Apr 2022 00:00:00 +0000 /en/globalcss/ - Uweb browser loads all ".css" files under the folder "/sdcard/uweb/css" as global css. Click the following links to install global css files: + Uweb browser loads all ".css" files under the folder "css" as global css. Click the following links to install global css files: Clearing font settings -The file "/sdcard/uweb/night.css" is used as night mode, click the following links to install one: +The file "night.css" is used as night mode, click the following links to install one: webview 81+ night mode webview 80- night mode @@ -129,10 +133,10 @@ If a new button is defined (file name "20" exists), uweb also Fri, 06 Nov 2020 00:00:00 +0000 /en/longclick/ - To run commands Each line of file "/sdcard/uweb/default.longclick" has the following format: (same as default.cmds) + To run commands 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 "/sdcard/uweb/longclick" are part of the popup menu. +To visit url and load javascript file All ".js" files under the folder "longclick" are part of the popup menu. These javascript files are in the following format: The very first line can begin with "//" followed by website url that can have "%u" (current url), "%t" (title) etc. @@ -144,7 +148,7 @@ The very first line can begin with "//" followed by website ur /en/filecap/ Long press the settings button, check the option "custom file handling" to enable the functionality. -The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows: +The custom file handling configuration file is "default.filecap", each line of it has the format as follows: [file extension]:[mimetype]:[command line] The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz". "[mimetype]" indicates the type of "[command line]" output. @@ -161,6 +165,15 @@ The "[file extension]" part can have at most two-segment of ex Each line of the hosts file has the following format: + + Change log + /en/changelog/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /en/changelog/ + 901: Use in-app files folder for configuration + + Javascript and CSS for domains /en/sitejs/ @@ -168,7 +181,7 @@ Each line of the hosts file has the following format: /en/sitejs/ Javascript (load when page completes, earliest loaded JS should use sitecss). -Need to be named as "[domain root].js", such as "yahoo.com.js" or "finance.yahoo.com.js". The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder "/sdcard/uweb/sitejs" or "/data/data/info.torapp.uweb/files/sitejs". The later folder has the priority. Long press the button "settings", check the option "Run user scripts". +Need to be named as "[domain root].js", such as "yahoo.com.js" or "finance.yahoo.com.js". The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder "sitejs" or "/data/data/info.torapp.uweb/files/sitejs". The later folder has the priority. Long press the button "settings", check the option "Run user scripts". diff --git a/en/adblock/index.html b/en/adblock/index.html index 780b1ec..0c9ba86 100644 --- a/en/adblock/index.html +++ b/en/adblock/index.html @@ -54,7 +54,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.

    @@ -66,7 +66,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 799e8c6..503b186 100644 --- a/en/adblock_domain/index.html +++ b/en/adblock_domain/index.html @@ -35,7 +35,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/changelog/index.html b/en/changelog/index.html new file mode 100644 index 0000000..1ea9fae --- /dev/null +++ b/en/changelog/index.html @@ -0,0 +1,41 @@ + + + + + + + + Change log + + + +
    + + +
    +
    + +
    +

    Change log +
    + +

    + +

    901: Use in-app files folder for configuration

    + +
    + + + diff --git a/en/filecap/index.html b/en/filecap/index.html index bc317e9..85b174e 100644 --- a/en/filecap/index.html +++ b/en/filecap/index.html @@ -38,13 +38,13 @@

    Long press the settings button, check the option "custom file handling" to enable the functionality.

    -

    The custom file handling configuration file is "/sdcard/uweb/default.filecap", each line of it has the format as follows:
    +

    The custom file handling configuration file is "default.filecap", each line of it has the format as follows:
    [file extension]:[mimetype]:[command line]

    The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz".
    "[mimetype]" indicates the type of "[command line]" output.
    "[command line]" is same as the one in default.cmds. The most often used replacements are:
    %u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).

    -

    /sdcard/uweb/default.filecap example:

    +

    default.filecap example:

    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>'
    @@ -59,9 +59,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:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u
    -djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
    -epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u
    +
    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
    diff --git a/en/filenames/index.html b/en/filenames/index.html index dfa3f7c..a0f821b 100644 --- a/en/filenames/index.html +++ b/en/filenames/index.html @@ -33,57 +33,57 @@ -

    All folders end with character "/" and others are files. If option "use in-app config" is checked, then "sitejs/" and "sitecache/" locate inside app internal folder (/data/data/info.torapp.uweb/files), otherwise all folders/files locate in "/sdcard/uweb":
    -"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
    +

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

    -

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

    +"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/globalcss/index.html b/en/globalcss/index.html index 9a9439b..136cebc 100644 --- a/en/globalcss/index.html +++ b/en/globalcss/index.html @@ -33,11 +33,11 @@ -

    Uweb browser loads all ".css" files under the folder "/sdcard/uweb/css" as global css. Click the following links to install global css files:

    -

    Clearing font settings

    -

    The file "/sdcard/uweb/night.css" is used as night mode, click the following links to install one:
    -webview 81+ night mode
    -webview 80- night mode

    +

    Uweb browser loads all ".css" files under the folder "css" as global css. Click the following links to install global css files:

    +

    Clearing font settings

    +

    The file "night.css" is used as night mode, click the following links to install one:
    +webview 81+ night mode
    +webview 80- night mode

    diff --git a/en/index.html b/en/index.html index 0fc0b3e..a4c50f2 100644 --- a/en/index.html +++ b/en/index.html @@ -118,6 +118,12 @@ +
  • + + Change log + +
  • +
  • Javascript and CSS for domains diff --git a/en/index.xml b/en/index.xml index 3708fda..257c914 100644 --- a/en/index.xml +++ b/en/index.xml @@ -21,7 +21,7 @@ Thu, 30 Jun 2022 00:00:00 +0000 /en/filenames/ - All folders end with character &quot;/&quot; and others are files. If option &quot;use in-app config&quot; is checked, then &quot;sitejs/&quot; and &quot;sitecache/&quot; locate inside app internal folder (/data/data/info.torapp.uweb/files), otherwise all folders/files locate in &quot;/sdcard/uweb&quot;: + All folders end with character &quot;/&quot; and others are files. All folders/files locate in &quot;/data/data/info.torapp.uweb/files&quot;: &quot;css/&quot;: global css folder &quot;js/&quot;: global script folder &quot;sitejs/&quot;: script folder for domains @@ -29,7 +29,11 @@ &quot;bookmarklet/&quot;:bookmarklets, long pressing the &quot;JS&quot; button to execute. &quot;offline/&quot;: to save offline pages &quot;sbookmark/&quot;: to save super bookmarks -&quot;sitecache/&quot;:offline cache +&quot;sitecache/&quot;:offline cache +&quot;longclick/&quot;: menus to appear when long-pressing hypertext (js files) +&quot;icon/&quot;:customized icons +&quot;app[XXX]/&quot;:html5 applications +&quot;default.longclick&quot;: to configure menus when long-pressing hypertext. @@ -91,7 +95,7 @@ Enable selection google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. @@ -105,9 +109,9 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;. Sun, 03 Apr 2022 00:00:00 +0000 /en/globalcss/ - Uweb browser loads all &quot;.css&quot; files under the folder &quot;/sdcard/uweb/css&quot; as global css. Click the following links to install global css files: + Uweb browser loads all &quot;.css&quot; files under the folder &quot;css&quot; as global css. Click the following links to install global css files: Clearing font settings -The file &quot;/sdcard/uweb/night.css&quot; is used as night mode, click the following links to install one: +The file &quot;night.css&quot; is used as night mode, click the following links to install one: webview 81+ night mode webview 80- night mode @@ -129,10 +133,10 @@ If a new button is defined (file name &quot;20&quot; exists), uweb also Fri, 06 Nov 2020 00:00:00 +0000 /en/longclick/ - To run commands Each line of file &quot;/sdcard/uweb/default.longclick&quot; has the following format: (same as default.cmds) + To run commands Each line of file &quot;default.longclick&quot; has the following format: (same as default.cmds) [Name]:[mimetype]:[command line] in which [command line] can have &quot;%c&quot; (cookie), &quot;%u&quot; (current url), &quot;%t&quot; (title) etc. -To visit url and load javascript file All &quot;.js&quot; files under the folder &quot;/sdcard/uweb/longclick&quot; are part of the popup menu. +To visit url and load javascript file All &quot;.js&quot; files under the folder &quot;longclick&quot; are part of the popup menu. These javascript files are in the following format: The very first line can begin with &quot;//&quot; followed by website url that can have &quot;%u&quot; (current url), &quot;%t&quot; (title) etc. @@ -144,7 +148,7 @@ The very first line can begin with &quot;//&quot; followed by website ur /en/filecap/ Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality. -The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows: +The custom file handling configuration file is &quot;default.filecap&quot;, each line of it has the format as follows: [file extension]:[mimetype]:[command line] The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;. &quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output. @@ -161,6 +165,15 @@ The &quot;[file extension]&quot; part can have at most two-segment of ex Each line of the hosts file has the following format: + + Change log + /en/changelog/ + Mon, 01 Jan 0001 00:00:00 +0000 + + /en/changelog/ + 901: Use in-app files folder for configuration + + Javascript and CSS for domains /en/sitejs/ @@ -168,7 +181,7 @@ Each line of the hosts file has the following format: /en/sitejs/ Javascript (load when page completes, earliest loaded JS should use sitecss). -Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;/sdcard/uweb/sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. +Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. diff --git a/en/links/index.html b/en/links/index.html index 8d13ffd..960413b 100644 --- a/en/links/index.html +++ b/en/links/index.html @@ -34,8 +34,8 @@

    Clicking the following hypertext will install menus for long pressing the bookmark button (with star as icon):
    -
    Certificate info

    -

    Web fullscreen

    +Certificate info

    +

    Web fullscreen

    Long pressing the bookmark button in uweb browser will popup menus defined in file "default.link". The file format is as follows:
    [Menu name]:[url][space][javascript code]

    in which space and later parts are optional. url and later parts support "%u","%s" etc.. The javascript code will be executed after url is fully loaded.

    diff --git a/en/longclick/index.html b/en/longclick/index.html index d8bf0f0..6ccdff0 100644 --- a/en/longclick/index.html +++ b/en/longclick/index.html @@ -36,11 +36,11 @@

    To run commands

    -

    Each line of file "/sdcard/uweb/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 "/sdcard/uweb/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:

    Click the following links to install menus for long pressing the button "link":
    -google Translate

    -

    bing translate

    -

    deepL

    -

    The file "/sdcard/uweb/default.select" defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
    +google Translate

    +

    bing translate

    +

    deepL

    +

    The file "default.select" defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
    [Name]:[mimetype]:[command line]

    [mimetype] specifies input/output for [command line].
    It formats as "[input mimetype]/[output mimetype]".
    @@ -63,8 +63,8 @@ It formats as "[input mimetype]/[output mimetype]".

  • "uweb": output as a link
  • "termux": output as termux command
  • -

    checked.js: Evaluate checked.js and return value as standard input for the command line. For any file url ending with "/", optionally append "?[prefix][[postfix]]". For example, "file:///sdcard/?.png" lists all .png files under the folder "/sdcard". Select files and process them with checked.js(such as "copy to PC" as the later example).

    -

    /sdcard/uweb/default.select sample file:
    +

    checked.js: Evaluate checked.js and return value as standard input for the command line. For any file url ending with "/", optionally append "?[prefix][[postfix]]". For example, "file:///sdcard/?.png" lists all .png files under the folder "/sdcard". Select files and process them with checked.js(such as "copy to PC" as the later example).

    +

    default.select sample file:
    copy2addressbar:uweb:printf i:15;cat
    copy2PCClipboard::ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
    richtext2PCClipboard:html:ssh [user:password]@192.168.2.102 "DISPLAY=:0 xsel -i"
    diff --git a/en/searchurl/cmds.html b/en/searchurl/cmds.html index 8f6c7c2..3de9601 100644 --- a/en/searchurl/cmds.html +++ b/en/searchurl/cmds.html @@ -3,9 +3,9 @@

    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 "/sdcard/uweb/default.cmds" examples:
    +

    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 /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc

    Backup cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.

    Restore cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.

    Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache

    Clear logcat::logcat -c

    logcat.log::logcat -d > /sdcard/uweb/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]++' /sdcard/uweb/history.rec>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.rec

    deduplicate bookmarks::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html

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

    deduplicate siteconf::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/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/uweb/a.png;echo file:///sdcard/uweb/a.png

    +

    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)。 diff --git a/en/searchurl/config.js b/en/searchurl/config.js index b837b46..be7a58c 100644 --- a/en/searchurl/config.js +++ b/en/searchurl/config.js @@ -18,7 +18,7 @@ let sa = [`

    ul{padding-left:0;}

    Click the following link to activate corresponding functionalities:


    diff --git a/en/searchurl/rjs.html b/en/searchurl/rjs.html index 910e6f0..5ccd195 100644 --- a/en/searchurl/rjs.html +++ b/en/searchurl/rjs.html @@ -4,12 +4,12 @@

    javascript for domains

    Global javascript files locates in subfolder "js". Long press button [☰] to configure. Click the following links to install:
    -Save password
    -Instant page

    +Save password
    +Instant page

    -

    large size javascript code can be installed to the folder "/sdcard/uweb/bookmarklet" (long pressing button "js" to popup menu):
    -Eruda
    -Performance
    +

    large size javascript code can be installed to the folder "bookmarklet" (long pressing button "js" to popup menu):
    +Eruda
    +Performance

    Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the button with icon "search" to popup the menu.):
    @@ -24,7 +24,7 @@ Site search:;open('i:15site:' + location.hostname)

    Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v

    -

    Remote script configuration file "/sdcard/uweb/default.rjs" whose line has the following format: +

    Remote script configuration file "default.rjs" whose lines have the following format: [script name]:[javascript code to return url arrays]

    diff --git a/en/searchurl/search.html b/en/searchurl/search.html index c25a7a6..2442d38 100644 --- a/en/searchurl/search.html +++ b/en/searchurl/search.html @@ -4,13 +4,13 @@

    Clicking the following links to install search engines to uweb's home screen.

    -Recommended engines (append any of following to file "/sdcard/uweb/home5.search"):
    +Recommended engines (append any of following to file "home5.search"):

    Engines:i:40%s_00

    bing image:http://bing.com/images/search?q=

    wolfram:https://www.wolframalpha.com/input/?i=

    wiki:https://en.wikipedia.org/wiki/Special:Search?search=

    -

    YouTube:https://www.youtube.com/results?search_query=

    +

    Youtube:https://www.youtube.com/results?search_query=

    Facebook:https://www.facebook.com/search/str/%s/keywords_search

    Instagram:https://www.instagram.com/explore/tags/%s/

    boardreader:https://boardreader.com/s/%s.html

    diff --git a/en/searchurl/urls.html b/en/searchurl/urls.html index 724cac7..6936378 100644 --- a/en/searchurl/urls.html +++ b/en/searchurl/urls.html @@ -51,13 +51,13 @@ Click the following links to install url services with uweb browser

    google docs:http://docs.google.com/gview?embedded=true&url=

    The following needs corresponding html5 application to be installed:
    -

    txtview:file:///sdcard/uweb/app/txtview.html?url=

    -

    markdeep:file:///sdcard/uweb/app/markdeep.html?url=

    -

    plyr:file:///sdcard/uweb/app/plyr.html?u=

    -

    dplayer:file:///sdcard/uweb/app/dplayer.html?u=

    -

    pdf:file:///sdcard/uweb/app/pdfviewer.html?file=

    -

    epub:file:///sdcard/uweb/app/epub.html?u=

    -

    djvu:file:///sdcard/uweb/app/djvu.html?url=

    +

    txtview:file:///data/data/info.torinfo.uweb/files/app/txtview.html?url=

    +

    markdeep:file:///data/data/info.torinfo.uweb/files/app/markdeep.html?url=

    +

    plyr:file:///data/data/info.torinfo.uweb/files/app/plyr.html?u=

    +

    dplayer:file:///data/data/info.torinfo.uweb/files/app/dplayer.html?u=

    +

    pdf:file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=

    +

    epub:file:///data/data/info.torinfo.uweb/files/app/epub.html?u=

    +

    djvu:file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=

    diff --git a/en/sitejs/index.html b/en/sitejs/index.html index 5ec3841..7cc2021 100644 --- a/en/sitejs/index.html +++ b/en/sitejs/index.html @@ -40,18 +40,18 @@

    Javascript (load when page completes, earliest loaded JS should use sitecss).

    CSS style and earliest loaded JS

    -

    If file "/sdcard/uweb/default.css" exists, the style will be applied to all sites without matching [domain root].css.

    +

    If file "default.css" exists, the style will be applied to all sites without matching [domain root].css.

    "sitejs/.js" , "sitecss/.css" and "sitecss/.js" are applied to all non-http urls (file urls etc.).

    diff --git a/en/sitemap.xml b/en/sitemap.xml index 93253cd..e0181d4 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -277,6 +277,8 @@ hreflang="en" href="/en/categories/" /> + + /en/changelog/ /en/tags/css/ Menu for long pressing hypertext
  • Toolbar
  • Gestures
  • -
  • Font settings
  • +
  • Font settings
  • Advanced

    Content
    diff --git a/en/tags/clipboard/index.xml b/en/tags/clipboard/index.xml index 72f8e04..f61511c 100644 --- a/en/tags/clipboard/index.xml +++ b/en/tags/clipboard/index.xml @@ -16,7 +16,7 @@ google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. diff --git a/en/tags/css/index.xml b/en/tags/css/index.xml index 3feabf3..747ddda 100644 --- a/en/tags/css/index.xml +++ b/en/tags/css/index.xml @@ -12,7 +12,7 @@ /en/sitejs/ Javascript (load when page completes, earliest loaded JS should use sitecss). -Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;/sdcard/uweb/sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. +Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. diff --git a/en/tags/curl/index.xml b/en/tags/curl/index.xml index a7a2d01..4054eb9 100644 --- a/en/tags/curl/index.xml +++ b/en/tags/curl/index.xml @@ -13,7 +13,7 @@ /en/filecap/ Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality. -The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows: +The custom file handling configuration file is &quot;default.filecap&quot;, each line of it has the format as follows: [file extension]:[mimetype]:[command line] The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;. &quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output. diff --git a/en/tags/javascript/index.xml b/en/tags/javascript/index.xml index da183b9..d9774e4 100644 --- a/en/tags/javascript/index.xml +++ b/en/tags/javascript/index.xml @@ -36,10 +36,10 @@ Enable selection Fri, 06 Nov 2020 00:00:00 +0000 /en/longclick/ - To run commands Each line of file &quot;/sdcard/uweb/default.longclick&quot; has the following format: (same as default.cmds) + To run commands Each line of file &quot;default.longclick&quot; has the following format: (same as default.cmds) [Name]:[mimetype]:[command line] in which [command line] can have &quot;%c&quot; (cookie), &quot;%u&quot; (current url), &quot;%t&quot; (title) etc. -To visit url and load javascript file All &quot;.js&quot; files under the folder &quot;/sdcard/uweb/longclick&quot; are part of the popup menu. +To visit url and load javascript file All &quot;.js&quot; files under the folder &quot;longclick&quot; are part of the popup menu. These javascript files are in the following format: The very first line can begin with &quot;//&quot; followed by website url that can have &quot;%u&quot; (current url), &quot;%t&quot; (title) etc. @@ -51,7 +51,7 @@ The very first line can begin with &quot;//&quot; followed by website ur /en/sitejs/ Javascript (load when page completes, earliest loaded JS should use sitecss). -Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;/sdcard/uweb/sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. +Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;. diff --git a/en/tags/pc/index.xml b/en/tags/pc/index.xml index bec5147..613ca76 100644 --- a/en/tags/pc/index.xml +++ b/en/tags/pc/index.xml @@ -16,7 +16,7 @@ google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. diff --git a/en/tags/ssh/index.xml b/en/tags/ssh/index.xml index 02166af..79881db 100644 --- a/en/tags/ssh/index.xml +++ b/en/tags/ssh/index.xml @@ -16,7 +16,7 @@ google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. diff --git a/en/tags/termux/index.xml b/en/tags/termux/index.xml index 1e68537..9e666ad 100644 --- a/en/tags/termux/index.xml +++ b/en/tags/termux/index.xml @@ -16,7 +16,7 @@ google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. @@ -31,7 +31,7 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;. /en/filecap/ Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality. -The custom file handling configuration file is &quot;/sdcard/uweb/default.filecap&quot;, each line of it has the format as follows: +The custom file handling configuration file is &quot;default.filecap&quot;, each line of it has the format as follows: [file extension]:[mimetype]:[command line] The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;. &quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output. diff --git a/en/tags/windows/index.xml b/en/tags/windows/index.xml index 853bd49..a5d7096 100644 --- a/en/tags/windows/index.xml +++ b/en/tags/windows/index.xml @@ -16,7 +16,7 @@ google Translate bing translate deepL -The file &quot;/sdcard/uweb/default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: +The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as &quot;[input mimetype]/[output mimetype]&quot;. diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml index ff6adf2..2835fd8 100644 --- a/zh/_posts/index.xml +++ b/zh/_posts/index.xml @@ -86,7 +86,7 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引 gamezop 点击以下链接可安装模板至分类书签目录。保存至“小说”类别的网站会自动使用阅读模式。 &quot;小说.html&quot;: 自动使用阅读模式 -href=&quot;i:0h/sdcard/uweb/bookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html&quot;&gt;&quot;txt.html&quot;: 在线阅读下载直链(txt/html) +href=&quot;i:0hbookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html&quot;&gt;&quot;txt.html&quot;: 在线阅读下载直链(txt/html) 所有书签都可通过&quot;长按链接-&gt;命令-&gt;书签&quot;保存链接为书签。书签菜单可至特色服务网页安装。 Mirror list mirror.js.org @@ -173,7 +173,7 @@ github mirror 3 使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。 其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。 本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。 -配置/sdcard/uweb/default.redirect: +配置default.redirect: 文件每一行格式为: 域名:正则表达式:替换表达式 其中正则表达式以java语言规定为准,表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用,但域名会允许CORS跨域访问 (目前仅对&quot;GET&quot; request生效)。 @@ -181,7 +181,7 @@ github mirror 3 developer.android.com::developer.android.google.cn 四种使用重定向的方法: 长按链接 -添加文件&quot;国内镜像.js&quot;至&quot;/sdcard/uweb/longclick&quot;目录下。 +添加文件&quot;国内镜像.js&quot;至&quot;longclick&quot;目录下。 文件内容如下: //e:%u 其中&quot;e:&quot;为uweb特殊url协议,意为&quot;edit&quot;,即&quot;编辑&quot;。当后面紧跟url网址的情况下会重定向网址。 重启uweb后长按链接弹出菜单选&quot;国内镜像&quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。 @@ -222,7 +222,7 @@ iciba deepL 点击安装&quot;保存文本&quot;等 重启浏览器,长按“链接”按钮,将弹出菜单。若用户当前窗口并无选中文本,则选取整个页面作相应操作,否则以选中文本为准。 -配置文件&quot;/sdcard/uweb/default.select&quot;定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下: +配置文件&quot;default.select&quot;定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下: [菜单名]:[mimetype]:[命令行] 选中(富)文本作为命令行的标准输入,而标准输出根据mimetype进行相应处理。 mimetype用来表示命令的输入输出类型。格式为&quot;[输入mimetype]/[输出mimetype]&quot;,&quot;[输入mimetype]&quot;可为&quot;html&quot;或空(txt格式)或为以超微配置目录为基准的相对路径.js文件名; 输出可为标准的mimetype或超微特殊扩充。如: @@ -230,7 +230,7 @@ html/text/html: 选中富文本为html格式, 输出mimetype为text/html。 /uweb: 选中文本为txt格式, 输出mimetype为特殊扩充uweb,超微将把输出作为链接来处理。 /termux: 命令运行结果将作为termux下命令运行。 checked.js: 运行配置目录下checked.js,其返回值作为命令行标准输入。对任何目录型(以“/”结尾)文件url,后面可附&quot;?[文件前缀][[文件后缀]]&quot;。譬如&quot;file:///sdcard/?.png&quot;会列举出&quot;/sdcard&quot;目录下所有.png文件。此时选择选定文件,则可利用checked.js复制文件至PC。(参看下面具体配置) -配置/sdcard/uweb/default.select如下: +配置default.select如下: 复制文本到地址栏:uweb:printf i:15;cat 笔记::(cat;echo;echo;)&gt;&gt;notes.txt 富文本笔记:html:(cat;echo '&lt;p&gt;&lt;/p&gt;';echo;)&gt;&gt;notes.html @@ -240,7 +240,7 @@ checked.js: 运行配置目录下checked.js,其返回值作为命令行标准 复制文件至PC:checked.js:while read fname;do scp $fname [user:password]@192.168.2.102:Downloads/.; done 如使用剪贴板功能手机需安装uweb定制Termux,并在termux下安装openssl。 此处假定远程PC的IP地址为192.168.2.102,PC已经开通了ssh服务。建议用户配置ssh服务为免密码登录,此时用户无需将密码写入文件default.select。用户PC上安装有xsel剪贴板工具。使用其它工具请酌情修改。 -采用以上配置,笔记将储存在/sdcard/uweb目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。 +采用以上配置,笔记将储存在应用内部目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。 手机其它应用中的文本可选中后分享给超微浏览器,再由超微浏览器作笔记或进一步分享给PC。如果其它应用无法分享选中文本,这种情况可以先复制文本至剪贴板。长按链接按钮选择适当功能即可复制至PC剪贴板。 Windows PC 对Windows PC而言,vista及以后自带clip.exe,此时配置如下: 复制文本至PC剪贴板::ssh [user:password]@192.168.2.102 clip.exe @@ -254,10 +254,10 @@ pclip Sun, 03 Apr 2022 00:00:00 +0000 /zh/globalcss/ - 超微浏览器自动装载&quot;/sdcard/uweb/css&quot;目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式: + 超微浏览器自动装载&quot;css&quot;目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式: 强制使用默认字体 配合透明状态栏(沉浸) -文件&quot;/sdcard/uweb/night.css&quot;为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式: +文件&quot;night.css&quot;为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式: webview 81+ 夜间模式 webview 80- 夜间模式 @@ -268,7 +268,7 @@ webview 80- 夜间模式 Fri, 18 Mar 2022 00:00:00 +0000 /zh/filenames/ - 下面列表中以&quot;/&quot;结尾者为目录,其余为文件。如果用户勾选“使用内部目录配置”,&quot;sitejs/&quot;,&quot;sitecache/&quot;等位于应用内部保护目录下。否则以下所有文件/目录均位于&quot;/sdcard/uweb&quot;: + 下面列表中以&quot;/&quot;结尾者为目录,其余为文件: &quot;css/&quot;:全局样式目录 &quot;js/&quot;: 全局脚本目录 &quot;sitejs/&quot;:类油猴脚本,针对特定网址 @@ -319,7 +319,7 @@ webview 80- 夜间模式 &quot;history.rec&quot;:访问历史 &quot;query.rec&quot;:查询历史 应用内部保护目录(/data/data/info.torapp.uweb/files/): -&quot;shortcut/&quot;:动态shortcut刷新目录,若不存在则默认为&quot;/sdcard/uweb/bookmark&quot;目录。 +&quot;shortcut/&quot;:动态shortcut刷新目录,若不存在则默认为&quot;bookmark&quot;目录。 @@ -348,10 +348,9 @@ apt upgrade apt install bc 使用书签调用计算器 &quot;长按以下链接-&gt;命令-&gt;书签&quot;可保存链接为书签。书签菜单可至特色服务网页安装。 bc 全能bc -浏览器地址栏作为超级计算器 配置文件/sdcard/uweb/default.acmd如下: +浏览器地址栏作为超级计算器 配置文件default.acmd如下: 计算器:text/html:echo &quot;%s&quot;|bc -l -q -更多bc扩展库: 扩展库可下载至/sdcard/uweb目录) -https://github.com/susca/bc-extensions +更多bc扩展库: https://github.com/susca/bc-extensions http://phodd.net/gnu-bc http://www.numbertheory.org/gnubc/gnubc.html 使用扩展库以后default.acmd配置如下: 计算器:text/html:echo &quot;%s&quot;|bc -l -q extensions.bc scientific_constants.bc @@ -434,9 +433,9 @@ crontab例子内容如下: Mon, 28 Dec 2020 00:00:00 +0000 /zh/logcat/ - 超微浏览器如果闪退,会生成出错文件&quot;/sdcard/uweb/error.log&quot;。 + 超微浏览器如果闪退,会生成出错文件&quot;error.log&quot;。 如果超微或安卓系统或任何应用出现问题,则可利用超微浏览器进行诊断,方法如下: -访问常用命令网页,点击安装logcat相关的两个命令。 清空后台并重启超微浏览器。 长按历史按钮,执行命令&quot;清空logcat&quot;。 触发有问题的功能。 长按历史按钮,执行命令&quot;输出logcat.log&quot;. 检查文件&quot;/sdcard/uweb/logcat.log&quot;内容。 超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。 +访问常用命令网页,点击安装logcat相关的两个命令。 清空后台并重启超微浏览器。 长按历史按钮,执行命令&quot;清空logcat&quot;。 触发有问题的功能。 长按历史按钮,执行命令&quot;输出logcat.log&quot;. 检查文件&quot;logcat.log&quot;内容。 超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。 非dev版本webview可点击如下链接运行devtools。 devtools for com.google.android.webview devtools for com.android.webview @@ -459,7 +458,7 @@ chmod 777 /data/data/com.termux/files/usr/bin/BaiduPCS-Go 登录百度网盘, Termux执行如下命令: BaiduPCS-Go login BaiduPCS-Go config set -appid=266719 -/sdcard/uweb/default.longclick配置如下: +default.longclick配置如下: 百度离线下载:termux/*:BaiduPCS-Go od add &quot;%u&quot;;exit 1 重启超微浏览器,此时长按链接将会出现菜单“百度离线下载”。 离线下载资源至国外网盘,下载完成后在超微浏览器内点击资源下载,弹出菜单选择“百度离线下载”,完成整个流程。 @@ -472,10 +471,10 @@ BaiduPCS-Go config set -appid=266719 Fri, 06 Nov 2020 00:00:00 +0000 /zh/longclick/ - 长按链接运行第三方程序 配置文件/sdcard/uweb/default.longclick每行格式如下(同default.cmds) + 长按链接运行第三方程序 配置文件default.longclick每行格式如下(同default.cmds) 菜单名:mimetype:命令路径 命令可以包含%c(当前网址cookie)等,执行时会被相应内容自动替换。 -长按链接运行js文件 长按链接弹出菜单显示/sdcard/uweb/longclick目录下所有js文件供用户挑选执行。 +长按链接运行js文件 长按链接弹出菜单显示longclick目录下所有js文件供用户挑选执行。 js文件格式如下: 首行可以&quot;//&quot;开头,后面紧跟目标网页url,url中可包含&quot;%u&quot;等,打开网页时会用长按的链接替换。 首行非&quot;//&quot;开头者,整个脚本作用于当前网页,不再打开新网页。 第二行开始为javascript代码,代码中可用arguments来获取參数。其中arguments[1]为长按的链接; arguments[2]为长按链接的文字描述; arguments[0]为js文件名。 @@ -488,7 +487,7 @@ js文件格式如下: /zh/video/ 覆盖安装全屏播放菜单示例:屏幕旋转,退出 本文以超微浏览器为例来说明。 -创建文件&quot;default.playrate&quot;可定制全屏倍速播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如&quot;.5x:&quot;,倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。 长按设置按钮勾选“弹出视频地址”,则视频播放时会弹出真正的播放地址,点击地址播放可避免一切不良信息。如果点击后为下载操作,可长按链接分享给视频播放器。用户亦可配置在线播放或安装插件。嗅探的视频/资源类型可由文件“/sdcard/uweb/types.sniff”控制。 很多视频解析结果在UA为PC的情况下非常干净,没什么不良信息。故用户可在播放前切换UA至PC。如:wn.run/解析结果对PC非常干净。 某些视频网站在全屏播放时都会出现不良信息占住屏幕一部分。点击全屏播放之前,长按[☰]按钮,超微浏览器将弹出全局脚本菜单,勾选“移除浮动不良信息”后再点全屏播放则完美播放。 也可利用全屏播放屏蔽一切不良信息。方法如下: 长按[☰]按钮,勾选“全屏视频”。此选项将让无法全屏播放的网站强制允许全屏播放。 对无法全屏、无法放大的视频网站,可长按[☰]按钮,勾选“强制缩放”,然后手动放大至全屏。 灵活应用JS、图像开关屏蔽一切不良信息:视频搜索前关闭JS开关,进入播放网页前关闭图像显示并打开JS。 视频解析之电视剧: 首先在视频网站搜索电视剧片名,下面会显示不同的剧集,点击它们再用视频解析即可观看。如果直接点击电视剧用视频解析则每次播放均为第一集。 视频搜索预配置(超过400个引擎) +创建文件&quot;default.playrate&quot;可定制全屏倍速播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如&quot;.5x:&quot;,倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。 长按设置按钮勾选“弹出视频地址”,则视频播放时会弹出真正的播放地址,点击地址播放可避免一切不良信息。如果点击后为下载操作,可长按链接分享给视频播放器。用户亦可配置在线播放或安装插件。嗅探的视频/资源类型可由文件“types.sniff”控制。 很多视频解析结果在UA为PC的情况下非常干净,没什么不良信息。故用户可在播放前切换UA至PC。如:wn.run/解析结果对PC非常干净。 某些视频网站在全屏播放时都会出现不良信息占住屏幕一部分。点击全屏播放之前,长按[☰]按钮,超微浏览器将弹出全局脚本菜单,勾选“移除浮动不良信息”后再点全屏播放则完美播放。 也可利用全屏播放屏蔽一切不良信息。方法如下: 长按[☰]按钮,勾选“全屏视频”。此选项将让无法全屏播放的网站强制允许全屏播放。 对无法全屏、无法放大的视频网站,可长按[☰]按钮,勾选“强制缩放”,然后手动放大至全屏。 灵活应用JS、图像开关屏蔽一切不良信息:视频搜索前关闭JS开关,进入播放网页前关闭图像显示并打开JS。 视频解析之电视剧: 首先在视频网站搜索电视剧片名,下面会显示不同的剧集,点击它们再用视频解析即可观看。如果直接点击电视剧用视频解析则每次播放均为第一集。 视频搜索预配置(超过400个引擎) 视频资源: 视频解析配置 mvcat novip bdys z2py ddrk nfmovies 电视直播 OK资源 全国电视直播 免费视频 国外剧 纪录片 网络直播 点击安装&quot;视频播放增强(倍速等),635+版本功能已内置,仅供高级用户定制参考。&quot; @@ -521,7 +520,7 @@ oed索引 Merriam Webster Unabridged 安装mwu至主屏 以下工具需先安装uweb定制Termux应用,并启动一次完成初始化。 -安装tdict词典工具 安装完tdict词典工具以后,对/sdcard/uweb/dict目录下的汉语大字典文件如&quot;dictXXX.xz&quot;可在主屏.search文件配置如下字典查询: +安装tdict词典工具 安装完tdict词典工具以后,对dict目录下的汉语大字典文件如&quot;dictXXX.xz&quot;可在主屏.search文件配置如下字典查询: 汉语大字典:c:zd xz %s dictXXX 字典文件目录可通过修改termux下“~/share”符号链接来改动。也可使用其它压缩方式如zst,此时配置变为&quot;zd zst %s dictXXX&quot;,相应的字典文件名为dictXXX.zst。用户需提供zsttool工具解压文本。 插件页面也提供了词典方案,但如果手动配置会比较麻烦。 @@ -534,16 +533,16 @@ Merriam Webster Unabridged /zh/filecap/ 技巧等级:中级 -文件预处理配置文件为/sdcard/uweb/default.filecap,每行格式如下: +文件预处理配置文件为default.filecap,每行格式如下: [文件后缀]:[mimetype]:[处理命令] 其中文件后缀可允许最多两段后缀,譬如&quot;txt.xz&quot;,&quot;html.gz&quot;。 mimetype表示命令处理后的输出内容格式。 处理命令与default.cmds相同,主要可能用到如下替换: %u(网址或文件路径)、%U(编码以后的网址)、%c(当前网址cookie)、%p(密码保护网站中的密码,curl格式)。 利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。 -配置/sdcard/uweb/default.filecap如下: +配置default.filecap如下: txt:text/html:curl %p "%u" mp3:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>' m4b:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>' m3u8:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>' mp4:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>' mkv:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/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:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 +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 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 如果用户配置中处理命令用到curl,则需要安装Termux,并在Termux中安装curl (&quot;apt install curl&quot;)。 @@ -561,22 +560,22 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e 点击安装epub阅读器(作者:llili) 点击安装djvu阅读器 相应的菜单安装可见浏览器特色服务 -超微配置目录下的子目录名如果以&quot;app&quot;开始(譬如&quot;/sdcard/uweb/appPDF&quot;),则这些&quot;app&quot;开头目录树下放置的html5应用将可获得功能增强。 +超微配置目录下的子目录名如果以&quot;app&quot;开始(譬如&quot;appPDF&quot;),则这些&quot;app&quot;开头目录树下放置的html5应用将可获得功能增强。 配置default.filecap并打开选项“文件预处理”,清后台重启浏览器后超微可直接阅读应用对应格式文件。 点击配置pdf.js,djvu.js,epub.js,超大文件阅读器 超大文件阅读器txtview.html url如下: -file:///sdcard/uweb/app/txtview.html?url=[url]#page=[xxx] -file:///sdcard/uweb/app/txtview.html?url=[url]#offset=[xxxx]&amp;[length] -file:///sdcard/uweb/app/markdeep.html?url=[url]#page=[xxx] -file:///sdcard/uweb/app/markdeep.html?url=[url]#offset=[xxxx]&amp;[length] +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]&amp;[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]&amp;[length] 譬如&quot;#offset=10000&amp;500&quot;会访问超大文件偏移量10000处长度为500的内容。 所有阅读器均支持箭头按钮(短按前进按钮或长按后退按钮)自动翻页。 比较有用的是mozilla的pdf.js,可用来显示在线或本地pdf文件。url如下: -file:///sdcard/uweb/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] +file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] 则浏览器直接跳转到pdf文件指定页。与主屏多引擎搜索及少量脚本结合使用,可对任何pdf文件进行字典检索。 下面是一些类似的应用: djvu.js应用的访问url如下: -file:///sdcard/uweb/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] +file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] epub.js sampotts/plyr : video, YouTube and Vimeo player videojs/video.js @@ -612,7 +611,7 @@ back2:javascript:history.go(-2) 技巧等级:中级 PC剪贴板(高级) uweb浏览器支持一键执行任意预定义命令,这些命令可以与剪贴板交互,可以将结果(文本、图像、音视频)输出到浏览器窗口。 手机推荐安装uweb定制Termux,否则能够执行的命令极其有限。 -预定义命令保存在文件&quot;/sdcard/uweb/default.cmds&quot;中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。 +预定义命令保存在文件&quot;default.cmds&quot;中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。 资深用户可能注意到文件名与default.acmd类似。default.acmd中的命令适合以不同的参数反复执行;而default.cmds一般以单次执行为多。default.acmd结果会显示在浏览器当前窗口;而default.cmds中命令执行结果会显示在新窗口之中。这两个文件格式也完全相同,每行格式如下: [命令名称]:[mimetype]:[命令代码] 命令代码可以是任意命令,其中可以包含%c(当前网址cookie)、%s (地址栏输入)、 %t (当前窗口标题)、 %u (当前窗口url或文件路径)。执行时这些特殊标识将会被相应内容自动替换。 @@ -719,7 +718,7 @@ CCTV17农村 Mon, 01 Jan 0001 00:00:00 +0000 /zh/searchcat/ - 点击本链接自动安装分类多引擎文件至&quot;/sdcard/uweb/bookmark&quot;目录下。 + 点击本链接自动安装分类多引擎文件至&quot;bookmark&quot;目录下。 超微浏览器中通过“设置”-&gt;“总目录”-&gt;“↑”-&gt;“Download”,点击后缀为.search的下载文件,超微浏览器将自动显示分类多引擎搜索。此时可按菜单键(或长按底部工具条后退按钮)选择“添加到桌面”方便以后访问。 .search文件每行格式为如下几种: [搜索引擎名]:[不含%s的url] @@ -765,7 +764,7 @@ fbcdn.net 可使用列出外部脚本小书签生成外部js文件列表,然后长按底部工具栏&quot;js&quot;按钮,执行&quot;网址转链接&quot;菜单命令,长按可疑链接(一般为域名不同的外链),执行“屏蔽根域名”。 长按不良信息链接,点击“图片:屏蔽根域名”,修改弹出域名,一般取最后两段,点击&quot;确定&quot;屏蔽当前图片网址。 部分不良信息没有链接可长按,或虽有链接但长按时不出现图片相关菜单。此时可长按[JS]点击&quot;背景图片&quot;或&quot;看图模式&quot;,再长按不良信息链接点击“图片:屏蔽根域名”,屏蔽图片网址。 -可长按设置开启&quot;资源嗅探&quot;,推荐设置文件&quot;/sdcard/uweb/types.sniff&quot;内容为js,刷新网页后关闭&quot;资源嗅探&quot;选项。在弹出的资源网页上长按链接,屏蔽根域名。 +可长按设置开启&quot;资源嗅探&quot;,推荐设置文件&quot;types.sniff&quot;内容为js,刷新网页后关闭&quot;资源嗅探&quot;选项。在弹出的资源网页上长按链接,屏蔽根域名。 (可选) 长按不良信息链接,点击“屏蔽根域名”,屏蔽链接网址。 (可选) 某些不良信息靠javascript激发,链接中不出现域名,可点击激发至新网址后将新网址根域名屏蔽。 支持域名及整个网址正则表达式 @@ -800,8 +799,8 @@ Termux提供了方便的软件包管理系统,缺省的uWeb地址栏功能配 安装gnuplot 安装 uweb定制Termux应用 Termux下运行以下命令: apt update apt upgrade -apt install gnuplot 地址栏功能配置: 配置文件/sdcard/uweb/default.acmd每行格式如下: -菜单名:mimeType:命令行 命令行可包含参数%s,运行时自动用地址栏输入内容替换。 如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。 配置文件/sdcard/uweb/default.acmd如下: 命令:text/plain:%s 函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s' 函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s' 超级计算器:text/html:echo &quot;%s&quot;|bc -l -q 长按uweb浏览器底部工具条刷新按钮弹出地址栏功能选择,选择“函数作图”,地址栏内输入函数如sin(x)**5就可显示函数图案。 +apt install gnuplot 地址栏功能配置: 配置文件default.acmd每行格式如下: +菜单名:mimeType:命令行 命令行可包含参数%s,运行时自动用地址栏输入内容替换。 如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。 配置文件default.acmd如下: 命令:text/plain:%s 函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s' 函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s' 超级计算器:text/html:echo &quot;%s&quot;|bc -l -q 长按uweb浏览器底部工具条刷新按钮弹出地址栏功能选择,选择“函数作图”,地址栏内输入函数如sin(x)**5就可显示函数图案。 常见问题及诊断 确保gnuplot正确安装,在Termux提示符下,敲入gnuplot,然后回车,保证出现&quot;gnuplot&gt;&quot;。 确保gnuplot正常运行, 在Termux提示符下,执行下面命令: gnuplot -e 'set term svg;set output; plot x' 屏幕输出应该为正常的svg文件(类似html文本)。 Termux应为uweb定制包,否则有一堆设定需要修改。 超微浏览器下长按设置按钮,勾选“标准错误输出”。再次在地址栏执行画图操作,此时浏览器会显示出错信息。 为保证地址栏输入函数符合gnuplot规范,首个测试函数建议为&quot;x&quot;,即整个地址栏内输入为&quot;x&quot;。 @@ -825,7 +824,7 @@ ssh [user:password]@192.168.2.102 &quot;DISPLAY=:0 firefox \&quot;$1\&am 脚本需设置为可执行,Termux下执行命令: chmod 755 /data/data/com.termux/files/usr/bin/pcdownload 这里假定用户已经在台式机上设好ssh服务,台式机IP地址为192.168.2.102,准备用firefox下载。如果下载工具不是图形程序,则上述脚本中可删去“DISPLAY=:0”。 -配置文件/sdcard/uweb/default.longclick如下: +配置文件default.longclick如下: PCdown:/data/data/com.termux/files/usr/bin/pcdownload 重启超微浏览器,点击链接下载时会弹出菜单,选择&quot;PCdown&quot;,台式机会启动firefox下载手机指定文档。 可能大家有疑问,台式机无法登录,为什么手机可以登录?这是因为手机上应用多哈。 @@ -839,8 +838,8 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload /zh/sitejs/ 技巧等级:中级 脚本 (第一时间装载js脚本见下面sitecss条目) -脚本需命名为 &quot;[根域名].js&quot;,譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/sdcard/uweb/sitejs或/data/data/info.torapp.uweb/files/sitejs目录下,数量没有限制,上百万都不成问题。如果内部目录下sitejs存在,则/sdcard/uweb/sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源(包括网站离线资源等)的配置,一旦内部sitejs目录存在,则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名(最后两段不超过6字如com.cn的域名可取四段)。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 -与此类似,用户样式需命名为 &quot;[根域名].css&quot;,譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到/sdcard/uweb/sitecss目录下。 sitecss目录下&quot;[根域名].js&quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“/sdcard/uweb/default.css”存在,访问网址时如果没有与域名匹配的css文件,则使用此默认样式文件。 default.css可作为夜间模式来使用,此时default.css为夜间模式css,而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 文件sitejs/.js 和sitecss/.css, sitecss/.js可作用于一切非http url(本地文件,浏览器界面等)。 +脚本需命名为 &quot;[根域名].js&quot;,譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下,数量没有限制,上百万都不成问题。如果内部目录下sitejs存在,则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源(包括网站离线资源等)的配置,一旦内部sitejs目录存在,则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名(最后两段不超过6字如com.cn的域名可取四段)。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 +与此类似,用户样式需命名为 &quot;[根域名].css&quot;,譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&quot;[根域名].js&quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在,访问网址时如果没有与域名匹配的css文件,则使用此默认样式文件。 default.css可作为夜间模式来使用,此时default.css为夜间模式css,而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 文件sitejs/.js 和sitecss/.css, sitecss/.js可作用于一切非http url(本地文件,浏览器界面等)。 @@ -849,12 +848,9 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload Mon, 01 Jan 0001 00:00:00 +0000 /zh/offlinecache/ - uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件&quot;/sdcard/uweb/sitecache/[域名]/[全部路径,包括文件名,?,&amp;,=, 与url一模一样]&quot;。如果应用内部目录有文件夹&quot;sitejs&quot;存在,则“/sdcard/uweb”下的离线资源不再生效,此时生效离线资源为内部目录下的&quot;sitecache&quot;文件夹。 + uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件&quot;sitecache/[域名]/[全部路径,包括文件名,?,&amp;,=, 与url一模一样]&quot;。 打开选项以后超微将自动装载这些离线资源。 -离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。 -下面以google翻译为例说明如何发现并备份离线资源。 -首先使用教程&quot;运行远程javascript&quot;配置google翻译。 将文件&quot;/sdcard/uweb/types.sniff&quot;内容清空(不要删除文件,否则会恢复成默认文件)。重启浏览器以后长按设置打开资源嗅探。 准备好合适手段保证google系网站能正常访问,长按按钮在主屏运行google翻译。 出现google翻译工具条以后,长按设置关闭嗅探。 运行termux,安装下载工具wget: -apt update;apt install wget 下载必要离线数据,termux下运行如下命令: cd /sdcard/uweb mkdir sitecache cd sitecache wget -U 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)' -x -i ../sniff.log 下载结束后,离线资源就准备妥当,供以后随时使用。 google翻译的情况下,要对部分js作修改,防止每次访问url不同。 +离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。 diff --git a/zh/adblock/index.html b/zh/adblock/index.html index 33be7fa..1b9c4e9 100644 --- a/zh/adblock/index.html +++ b/zh/adblock/index.html @@ -61,7 +61,7 @@
  • -

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

    +

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

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

    @@ -73,7 +73,7 @@

    关闭[JS]脚本。

  • -

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

    +

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

  • diff --git a/zh/adblock_css/index.html b/zh/adblock_css/index.html index 2c8b91e..082d1ce 100644 --- a/zh/adblock_css/index.html +++ b/zh/adblock_css/index.html @@ -38,8 +38,8 @@

    点击以下链接可安装全局样式,清后台重启浏览器,长按底部工具条窗口按钮弹出对话框后勾选上述文件名即可屏蔽不良信息。
    -floppymoose 广告屏蔽样式
    -gozer 广告屏蔽样式

    +floppymoose 广告屏蔽样式
    +gozer 广告屏蔽样式

    超微浏览器支持根域名屏蔽,完全绝杀手机不良信息小厂。但少部分不良信息大厂本身也提供高质量的内容服务,它们可以将不良信息伪装成正常的内容从而逃脱域名绝杀。
    对这一部分不良信息而言,我们可以利用超微浏览器的自定义样式功能加以屏蔽。

    diff --git a/zh/adblock_domain/index.html b/zh/adblock_domain/index.html index c95f0e8..aef536b 100644 --- a/zh/adblock_domain/index.html +++ b/zh/adblock_domain/index.html @@ -35,7 +35,7 @@
  • 不良信息屏蔽
  • -

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

    +

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

    • 可使用列出外部脚本小书签生成外部js文件列表,然后长按底部工具栏"js"按钮,执行"网址转链接"菜单命令,长按可疑链接(一般为域名不同的外链),执行“屏蔽根域名”。

      @@ -47,7 +47,7 @@

      部分不良信息没有链接可长按,或虽有链接但长按时不出现图片相关菜单。此时可长按[JS]点击"背景图片"或"看图模式",再长按不良信息链接点击“图片:屏蔽根域名”,屏蔽图片网址。

    • -

      可长按设置开启"资源嗅探",推荐设置文件"/sdcard/uweb/types.sniff"内容为js,刷新网页后关闭"资源嗅探"选项。在弹出的资源网页上长按链接,屏蔽根域名。

      +

      可长按设置开启"资源嗅探",推荐设置文件"types.sniff"内容为js,刷新网页后关闭"资源嗅探"选项。在弹出的资源网页上长按链接,屏蔽根域名。

    • (可选) 长按不良信息链接,点击“屏蔽根域名”,屏蔽链接网址。

      diff --git a/zh/androidtv/index.html b/zh/androidtv/index.html index 1f363f8..423dcf3 100644 --- a/zh/androidtv/index.html +++ b/zh/androidtv/index.html @@ -35,9 +35,9 @@

    TV端推荐打开自动播放选项,全局脚本打开自动全屏播放,全局样式打开“仅显示图片“,禁止js confirm对话框。

    点击以下链接可直接设置主屏为书签并添加链接。Android TV可从手机端接收视频url并打开,发送见常用服务:
    -等待从网络接收url并打开

    -

    等待接收url沉默版

    -

    书签

    +等待从网络接收url并打开

    +

    等待接收url沉默版

    +

    书签

    点击以下链接添加常用服务:
    添加书签至主屏

    Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引擎文件engine.search中的搜索引擎url如果不包含'%s',则搜索引擎只是简单的固定网页url,此时顺序搜索表现为频道切换。更多信息见多引擎搜索页面。

    diff --git a/zh/bc/index.html b/zh/bc/index.html index bcbda19..e84bb51 100644 --- a/zh/bc/index.html +++ b/zh/bc/index.html @@ -48,11 +48,10 @@ apt install bc bc
    全能bc

    浏览器地址栏作为超级计算器

    -

    配置文件/sdcard/uweb/default.acmd如下:
    +

    配置文件default.acmd如下:
    计算器:text/html:echo "%s"|bc -l -q

    更多bc扩展库:

    -

    扩展库可下载至/sdcard/uweb目录)
    -https://github.com/susca/bc-extensions
    +

    https://github.com/susca/bc-extensions
    http://phodd.net/gnu-bc
    http://www.numbertheory.org/gnubc/gnubc.html

    使用扩展库以后default.acmd配置如下:

    diff --git a/zh/bookmark/index.html b/zh/bookmark/index.html index 61cf8d7..3276c44 100644 --- a/zh/bookmark/index.html +++ b/zh/bookmark/index.html @@ -35,8 +35,8 @@

    gamezop

    点击以下链接可安装模板至分类书签目录。保存至“小说”类别的网站会自动使用阅读模式。
    -"小说.html": 自动使用阅读模式

    -

    href="i:0h/sdcard/uweb/bookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html">"txt.html": 在线阅读下载直链(txt/html)

    +"小说.html": 自动使用阅读模式

    +

    href="i:0hbookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html">"txt.html": 在线阅读下载直链(txt/html)

    所有书签都可通过"长按链接->命令->书签"保存链接为书签。书签菜单可至特色服务网页安装。
    Mirror list
    mirror.js.org

    diff --git a/zh/cmd/index.html b/zh/cmd/index.html index 54e59e2..4ba9b79 100644 --- a/zh/cmd/index.html +++ b/zh/cmd/index.html @@ -42,7 +42,7 @@

    技巧等级:中级 PC剪贴板(高级)

    uweb浏览器支持一键执行任意预定义命令,这些命令可以与剪贴板交互,可以将结果(文本、图像、音视频)输出到浏览器窗口。

    手机推荐安装uweb定制Termux,否则能够执行的命令极其有限。

    -

    预定义命令保存在文件"/sdcard/uweb/default.cmds"中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。

    +

    预定义命令保存在文件"default.cmds"中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。

    资深用户可能注意到文件名与default.acmd类似。default.acmd中的命令适合以不同的参数反复执行;而default.cmds一般以单次执行为多。default.acmd结果会显示在浏览器当前窗口;而default.cmds中命令执行结果会显示在新窗口之中。这两个文件格式也完全相同,每行格式如下:
    [命令名称]:[mimetype]:[命令代码]

    命令代码可以是任意命令,其中可以包含%c(当前网址cookie)、%s (地址栏输入)、 %t (当前窗口标题)、 %u (当前窗口url或文件路径)。执行时这些特殊标识将会被相应内容自动替换。

    diff --git a/zh/filecap/index.html b/zh/filecap/index.html index eadc7e9..aa1f8da 100644 --- a/zh/filecap/index.html +++ b/zh/filecap/index.html @@ -38,14 +38,14 @@

    技巧等级:中级

    -

    文件预处理配置文件为/sdcard/uweb/default.filecap,每行格式如下:
    +

    文件预处理配置文件为default.filecap,每行格式如下:
    [文件后缀]:[mimetype]:[处理命令]

    其中文件后缀可允许最多两段后缀,譬如"txt.xz","html.gz"。
    mimetype表示命令处理后的输出内容格式。
    处理命令与default.cmds相同,主要可能用到如下替换:
    %u(网址或文件路径)、%U(编码以后的网址)、%c(当前网址cookie)、%p(密码保护网站中的密码,curl格式)。

    利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。

    -

    配置/sdcard/uweb/default.filecap如下:

    +

    配置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>'
    @@ -60,9 +60,9 @@ 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:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u
    -djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
    -epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u
    +
    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

    长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。

    如果用户配置中处理命令用到curl,则需要安装Termux,并在Termux中安装curl ("apt install curl")。
    如果用户不安装Termux,则上述配置命令中的"am"需要全部路径,需用"/system/bin/am"替换。

    diff --git a/zh/filemanager/index.html b/zh/filemanager/index.html index 0508eb7..4c5f106 100644 --- a/zh/filemanager/index.html +++ b/zh/filemanager/index.html @@ -34,7 +34,7 @@

    超微浏览器访问以"/"结尾 (包括"/?"及后面参数)的"file://" url,则进入文件管理器。

    -

    对任何目录型(以“/”结尾)文件url,后面可附"?[文件前缀][*[文件后缀]]"。譬如"file:///sdcard/?*.png"会列举出"/sdcard"目录下所有.png文件。"?IMG"列举出所有IMG开头的文件。此时可选定文件,并安装checked.js对选取文件进行批量处理。

    +

    对任何目录型(以“/”结尾)文件url,后面可附"?[文件前缀][*[文件后缀]]"。譬如"file:///sdcard/?*.png"会列举出"/sdcard"目录下所有.png文件。"?IMG"列举出所有IMG开头的文件。此时可选定文件,并安装checked.js对选取文件进行批量处理。

    文件批量处理配置default.select例子:
    图像缩小:checked.js:while read fname;do convert -resize %50x%50 $fname small_$fname; done

    diff --git a/zh/filenames/index.html b/zh/filenames/index.html index a53b423..7aebd8e 100644 --- a/zh/filenames/index.html +++ b/zh/filenames/index.html @@ -33,58 +33,58 @@
    -

    下面列表中以"/"结尾者为目录,其余为文件。如果用户勾选“使用内部目录配置”,"sitejs/","sitecache/"等位于应用内部保护目录下。否则以下所有文件/目录均位于"/sdcard/uweb":
    -"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刷新目录,若不存在则默认为"/sdcard/uweb/bookmark"目录。

    +"shortcut/":动态shortcut刷新目录,若不存在则默认为"bookmark"目录。

    diff --git a/zh/globalcss/index.html b/zh/globalcss/index.html index 105dd6d..1e3d25a 100644 --- a/zh/globalcss/index.html +++ b/zh/globalcss/index.html @@ -33,12 +33,12 @@
    -

    超微浏览器自动装载"/sdcard/uweb/css"目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式:

    -

    强制使用默认字体
    -配合透明状态栏(沉浸)

    -

    文件"/sdcard/uweb/night.css"为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式:
    -webview 81+ 夜间模式
    -webview 80- 夜间模式

    +

    超微浏览器自动装载"css"目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式:

    +

    强制使用默认字体
    +配合透明状态栏(沉浸)

    +

    文件"night.css"为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式:
    +webview 81+ 夜间模式
    +webview 80- 夜间模式

    diff --git a/zh/gnuplot/index.html b/zh/gnuplot/index.html index 10b1592..b7debae 100644 --- a/zh/gnuplot/index.html +++ b/zh/gnuplot/index.html @@ -47,12 +47,12 @@ apt install gnuplot

    地址栏功能配置:

      -
    • 配置文件/sdcard/uweb/default.acmd每行格式如下:
      +
    • 配置文件default.acmd每行格式如下:
      菜单名:mimeType:命令行
    • 命令行可包含参数%s,运行时自动用地址栏输入内容替换。
    • 如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。
    -

    配置文件/sdcard/uweb/default.acmd如下:

    +

    配置文件default.acmd如下:

    命令:text/plain:%s
     函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s'
     函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s'
    diff --git a/zh/html5/index.html b/zh/html5/index.html
    index 5396d90..d21f4ab 100644
    --- a/zh/html5/index.html
    +++ b/zh/html5/index.html
    @@ -33,30 +33,30 @@
       
    -

    点击安装超大文件阅读器(支持txt, html, markdown)
    -点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等)
    -点击安装plyr视频播放器
    -点击安装dplayer视频播放器
    -点击安装pdf阅读器
    -点击安装epub阅读器(作者:llili)
    -点击安装djvu阅读器
    +

    点击安装超大文件阅读器(支持txt, html, markdown)
    +点击安装超大文件阅读器(markdeep版, latex, diagram,graphviz等)
    +点击安装plyr视频播放器
    +点击安装dplayer视频播放器
    +点击安装pdf阅读器
    +点击安装epub阅读器(作者:llili)
    +点击安装djvu阅读器
    相应的菜单安装可见浏览器特色服务

    -

    超微配置目录下的子目录名如果以"app"开始(譬如"/sdcard/uweb/appPDF"),则这些"app"开头目录树下放置的html5应用将可获得功能增强。

    +

    超微配置目录下的子目录名如果以"app"开始(譬如"appPDF"),则这些"app"开头目录树下放置的html5应用将可获得功能增强。

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

    +点击配置pdf.js,djvu.js,epub.js,超大文件阅读器

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

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

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

    +file:///data/data/info.torinfo.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.html b/zh/index.html index 49f183a..97f8802 100644 --- a/zh/index.html +++ b/zh/index.html @@ -44,6 +44,11 @@ 超微浏览器最新版下载 +

  • + + 修改历史 + +
  • 浏览器多搜索引擎一键直达 diff --git a/zh/index.xml b/zh/index.xml index 9d5150b..f911735 100644 --- a/zh/index.xml +++ b/zh/index.xml @@ -86,7 +86,7 @@ Android TV可利用顺序搜索使用箭头按钮切换频道。顺序搜索引 gamezop 点击以下链接可安装模板至分类书签目录。保存至“小说”类别的网站会自动使用阅读模式。 &quot;小说.html&quot;: 自动使用阅读模式 -href=&quot;i:0h/sdcard/uweb/bookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html&quot;&gt;&quot;txt.html&quot;: 在线阅读下载直链(txt/html) +href=&quot;i:0hbookmark/txt.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/zh/searchurl/bookmark/viewtxt.html&quot;&gt;&quot;txt.html&quot;: 在线阅读下载直链(txt/html) 所有书签都可通过&quot;长按链接-&gt;命令-&gt;书签&quot;保存链接为书签。书签菜单可至特色服务网页安装。 Mirror list mirror.js.org @@ -173,7 +173,7 @@ github mirror 3 使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。 其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。 本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。 -配置/sdcard/uweb/default.redirect: +配置default.redirect: 文件每一行格式为: 域名:正则表达式:替换表达式 其中正则表达式以java语言规定为准,表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用,但域名会允许CORS跨域访问 (目前仅对&quot;GET&quot; request生效)。 @@ -181,7 +181,7 @@ github mirror 3 developer.android.com::developer.android.google.cn 四种使用重定向的方法: 长按链接 -添加文件&quot;国内镜像.js&quot;至&quot;/sdcard/uweb/longclick&quot;目录下。 +添加文件&quot;国内镜像.js&quot;至&quot;longclick&quot;目录下。 文件内容如下: //e:%u 其中&quot;e:&quot;为uweb特殊url协议,意为&quot;edit&quot;,即&quot;编辑&quot;。当后面紧跟url网址的情况下会重定向网址。 重启uweb后长按链接弹出菜单选&quot;国内镜像&quot;,浏览器将访问网址的国内镜像。若网址为本地文件,则浏览器会自动调用此类文件编辑器。 @@ -222,7 +222,7 @@ iciba deepL 点击安装&quot;保存文本&quot;等 重启浏览器,长按“链接”按钮,将弹出菜单。若用户当前窗口并无选中文本,则选取整个页面作相应操作,否则以选中文本为准。 -配置文件&quot;/sdcard/uweb/default.select&quot;定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下: +配置文件&quot;default.select&quot;定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下: [菜单名]:[mimetype]:[命令行] 选中(富)文本作为命令行的标准输入,而标准输出根据mimetype进行相应处理。 mimetype用来表示命令的输入输出类型。格式为&quot;[输入mimetype]/[输出mimetype]&quot;,&quot;[输入mimetype]&quot;可为&quot;html&quot;或空(txt格式)或为以超微配置目录为基准的相对路径.js文件名; 输出可为标准的mimetype或超微特殊扩充。如: @@ -230,7 +230,7 @@ html/text/html: 选中富文本为html格式, 输出mimetype为text/html。 /uweb: 选中文本为txt格式, 输出mimetype为特殊扩充uweb,超微将把输出作为链接来处理。 /termux: 命令运行结果将作为termux下命令运行。 checked.js: 运行配置目录下checked.js,其返回值作为命令行标准输入。对任何目录型(以“/”结尾)文件url,后面可附&quot;?[文件前缀][[文件后缀]]&quot;。譬如&quot;file:///sdcard/?.png&quot;会列举出&quot;/sdcard&quot;目录下所有.png文件。此时选择选定文件,则可利用checked.js复制文件至PC。(参看下面具体配置) -配置/sdcard/uweb/default.select如下: +配置default.select如下: 复制文本到地址栏:uweb:printf i:15;cat 笔记::(cat;echo;echo;)&gt;&gt;notes.txt 富文本笔记:html:(cat;echo '&lt;p&gt;&lt;/p&gt;';echo;)&gt;&gt;notes.html @@ -240,7 +240,7 @@ checked.js: 运行配置目录下checked.js,其返回值作为命令行标准 复制文件至PC:checked.js:while read fname;do scp $fname [user:password]@192.168.2.102:Downloads/.; done 如使用剪贴板功能手机需安装uweb定制Termux,并在termux下安装openssl。 此处假定远程PC的IP地址为192.168.2.102,PC已经开通了ssh服务。建议用户配置ssh服务为免密码登录,此时用户无需将密码写入文件default.select。用户PC上安装有xsel剪贴板工具。使用其它工具请酌情修改。 -采用以上配置,笔记将储存在/sdcard/uweb目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。 +采用以上配置,笔记将储存在应用内部目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。 手机其它应用中的文本可选中后分享给超微浏览器,再由超微浏览器作笔记或进一步分享给PC。如果其它应用无法分享选中文本,这种情况可以先复制文本至剪贴板。长按链接按钮选择适当功能即可复制至PC剪贴板。 Windows PC 对Windows PC而言,vista及以后自带clip.exe,此时配置如下: 复制文本至PC剪贴板::ssh [user:password]@192.168.2.102 clip.exe @@ -254,10 +254,10 @@ pclip Sun, 03 Apr 2022 00:00:00 +0000 /zh/globalcss/ - 超微浏览器自动装载&quot;/sdcard/uweb/css&quot;目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式: + 超微浏览器自动装载&quot;css&quot;目录下所有.css文件作为全局样式供用户选用。点击以下配置链接可自动添加为全局样式: 强制使用默认字体 配合透明状态栏(沉浸) -文件&quot;/sdcard/uweb/night.css&quot;为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式: +文件&quot;night.css&quot;为用户自定义夜间模式样式,点击以下配置链接安装不同的夜间模式: webview 81+ 夜间模式 webview 80- 夜间模式 @@ -268,7 +268,7 @@ webview 80- 夜间模式 Fri, 18 Mar 2022 00:00:00 +0000 /zh/filenames/ - 下面列表中以&quot;/&quot;结尾者为目录,其余为文件。如果用户勾选“使用内部目录配置”,&quot;sitejs/&quot;,&quot;sitecache/&quot;等位于应用内部保护目录下。否则以下所有文件/目录均位于&quot;/sdcard/uweb&quot;: + 下面列表中以&quot;/&quot;结尾者为目录,其余为文件: &quot;css/&quot;:全局样式目录 &quot;js/&quot;: 全局脚本目录 &quot;sitejs/&quot;:类油猴脚本,针对特定网址 @@ -319,7 +319,7 @@ webview 80- 夜间模式 &quot;history.rec&quot;:访问历史 &quot;query.rec&quot;:查询历史 应用内部保护目录(/data/data/info.torapp.uweb/files/): -&quot;shortcut/&quot;:动态shortcut刷新目录,若不存在则默认为&quot;/sdcard/uweb/bookmark&quot;目录。 +&quot;shortcut/&quot;:动态shortcut刷新目录,若不存在则默认为&quot;bookmark&quot;目录。 @@ -348,10 +348,9 @@ apt upgrade apt install bc 使用书签调用计算器 &quot;长按以下链接-&gt;命令-&gt;书签&quot;可保存链接为书签。书签菜单可至特色服务网页安装。 bc 全能bc -浏览器地址栏作为超级计算器 配置文件/sdcard/uweb/default.acmd如下: +浏览器地址栏作为超级计算器 配置文件default.acmd如下: 计算器:text/html:echo &quot;%s&quot;|bc -l -q -更多bc扩展库: 扩展库可下载至/sdcard/uweb目录) -https://github.com/susca/bc-extensions +更多bc扩展库: https://github.com/susca/bc-extensions http://phodd.net/gnu-bc http://www.numbertheory.org/gnubc/gnubc.html 使用扩展库以后default.acmd配置如下: 计算器:text/html:echo &quot;%s&quot;|bc -l -q extensions.bc scientific_constants.bc @@ -434,9 +433,9 @@ crontab例子内容如下: Mon, 28 Dec 2020 00:00:00 +0000 /zh/logcat/ - 超微浏览器如果闪退,会生成出错文件&quot;/sdcard/uweb/error.log&quot;。 + 超微浏览器如果闪退,会生成出错文件&quot;error.log&quot;。 如果超微或安卓系统或任何应用出现问题,则可利用超微浏览器进行诊断,方法如下: -访问常用命令网页,点击安装logcat相关的两个命令。 清空后台并重启超微浏览器。 长按历史按钮,执行命令&quot;清空logcat&quot;。 触发有问题的功能。 长按历史按钮,执行命令&quot;输出logcat.log&quot;. 检查文件&quot;/sdcard/uweb/logcat.log&quot;内容。 超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。 +访问常用命令网页,点击安装logcat相关的两个命令。 清空后台并重启超微浏览器。 长按历史按钮,执行命令&quot;清空logcat&quot;。 触发有问题的功能。 长按历史按钮,执行命令&quot;输出logcat.log&quot;. 检查文件&quot;logcat.log&quot;内容。 超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag &quot;webview-log-js-console-messages&quot;以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。 非dev版本webview可点击如下链接运行devtools。 devtools for com.google.android.webview devtools for com.android.webview @@ -459,7 +458,7 @@ chmod 777 /data/data/com.termux/files/usr/bin/BaiduPCS-Go 登录百度网盘, Termux执行如下命令: BaiduPCS-Go login BaiduPCS-Go config set -appid=266719 -/sdcard/uweb/default.longclick配置如下: +default.longclick配置如下: 百度离线下载:termux/*:BaiduPCS-Go od add &quot;%u&quot;;exit 1 重启超微浏览器,此时长按链接将会出现菜单“百度离线下载”。 离线下载资源至国外网盘,下载完成后在超微浏览器内点击资源下载,弹出菜单选择“百度离线下载”,完成整个流程。 @@ -472,10 +471,10 @@ BaiduPCS-Go config set -appid=266719 Fri, 06 Nov 2020 00:00:00 +0000 /zh/longclick/ - 长按链接运行第三方程序 配置文件/sdcard/uweb/default.longclick每行格式如下(同default.cmds) + 长按链接运行第三方程序 配置文件default.longclick每行格式如下(同default.cmds) 菜单名:mimetype:命令路径 命令可以包含%c(当前网址cookie)等,执行时会被相应内容自动替换。 -长按链接运行js文件 长按链接弹出菜单显示/sdcard/uweb/longclick目录下所有js文件供用户挑选执行。 +长按链接运行js文件 长按链接弹出菜单显示longclick目录下所有js文件供用户挑选执行。 js文件格式如下: 首行可以&quot;//&quot;开头,后面紧跟目标网页url,url中可包含&quot;%u&quot;等,打开网页时会用长按的链接替换。 首行非&quot;//&quot;开头者,整个脚本作用于当前网页,不再打开新网页。 第二行开始为javascript代码,代码中可用arguments来获取參数。其中arguments[1]为长按的链接; arguments[2]为长按链接的文字描述; arguments[0]为js文件名。 @@ -488,7 +487,7 @@ js文件格式如下: /zh/video/ 覆盖安装全屏播放菜单示例:屏幕旋转,退出 本文以超微浏览器为例来说明。 -创建文件&quot;default.playrate&quot;可定制全屏倍速播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如&quot;.5x:&quot;,倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。 长按设置按钮勾选“弹出视频地址”,则视频播放时会弹出真正的播放地址,点击地址播放可避免一切不良信息。如果点击后为下载操作,可长按链接分享给视频播放器。用户亦可配置在线播放或安装插件。嗅探的视频/资源类型可由文件“/sdcard/uweb/types.sniff”控制。 很多视频解析结果在UA为PC的情况下非常干净,没什么不良信息。故用户可在播放前切换UA至PC。如:wn.run/解析结果对PC非常干净。 某些视频网站在全屏播放时都会出现不良信息占住屏幕一部分。点击全屏播放之前,长按[☰]按钮,超微浏览器将弹出全局脚本菜单,勾选“移除浮动不良信息”后再点全屏播放则完美播放。 也可利用全屏播放屏蔽一切不良信息。方法如下: 长按[☰]按钮,勾选“全屏视频”。此选项将让无法全屏播放的网站强制允许全屏播放。 对无法全屏、无法放大的视频网站,可长按[☰]按钮,勾选“强制缩放”,然后手动放大至全屏。 灵活应用JS、图像开关屏蔽一切不良信息:视频搜索前关闭JS开关,进入播放网页前关闭图像显示并打开JS。 视频解析之电视剧: 首先在视频网站搜索电视剧片名,下面会显示不同的剧集,点击它们再用视频解析即可观看。如果直接点击电视剧用视频解析则每次播放均为第一集。 视频搜索预配置(超过400个引擎) +创建文件&quot;default.playrate&quot;可定制全屏倍速播放菜单项,格式与文件default.link完全相同。倍速播放菜单链接部分为空,譬如&quot;.5x:&quot;,倍速菜单至少有一个。链接部分非空的菜单必须在所有倍速菜单之后。 长按设置按钮勾选“弹出视频地址”,则视频播放时会弹出真正的播放地址,点击地址播放可避免一切不良信息。如果点击后为下载操作,可长按链接分享给视频播放器。用户亦可配置在线播放或安装插件。嗅探的视频/资源类型可由文件“types.sniff”控制。 很多视频解析结果在UA为PC的情况下非常干净,没什么不良信息。故用户可在播放前切换UA至PC。如:wn.run/解析结果对PC非常干净。 某些视频网站在全屏播放时都会出现不良信息占住屏幕一部分。点击全屏播放之前,长按[☰]按钮,超微浏览器将弹出全局脚本菜单,勾选“移除浮动不良信息”后再点全屏播放则完美播放。 也可利用全屏播放屏蔽一切不良信息。方法如下: 长按[☰]按钮,勾选“全屏视频”。此选项将让无法全屏播放的网站强制允许全屏播放。 对无法全屏、无法放大的视频网站,可长按[☰]按钮,勾选“强制缩放”,然后手动放大至全屏。 灵活应用JS、图像开关屏蔽一切不良信息:视频搜索前关闭JS开关,进入播放网页前关闭图像显示并打开JS。 视频解析之电视剧: 首先在视频网站搜索电视剧片名,下面会显示不同的剧集,点击它们再用视频解析即可观看。如果直接点击电视剧用视频解析则每次播放均为第一集。 视频搜索预配置(超过400个引擎) 视频资源: 视频解析配置 mvcat novip bdys z2py ddrk nfmovies 电视直播 OK资源 全国电视直播 免费视频 国外剧 纪录片 网络直播 点击安装&quot;视频播放增强(倍速等),635+版本功能已内置,仅供高级用户定制参考。&quot; @@ -521,7 +520,7 @@ oed索引 Merriam Webster Unabridged 安装mwu至主屏 以下工具需先安装uweb定制Termux应用,并启动一次完成初始化。 -安装tdict词典工具 安装完tdict词典工具以后,对/sdcard/uweb/dict目录下的汉语大字典文件如&quot;dictXXX.xz&quot;可在主屏.search文件配置如下字典查询: +安装tdict词典工具 安装完tdict词典工具以后,对dict目录下的汉语大字典文件如&quot;dictXXX.xz&quot;可在主屏.search文件配置如下字典查询: 汉语大字典:c:zd xz %s dictXXX 字典文件目录可通过修改termux下“~/share”符号链接来改动。也可使用其它压缩方式如zst,此时配置变为&quot;zd zst %s dictXXX&quot;,相应的字典文件名为dictXXX.zst。用户需提供zsttool工具解压文本。 插件页面也提供了词典方案,但如果手动配置会比较麻烦。 @@ -534,16 +533,16 @@ Merriam Webster Unabridged /zh/filecap/ 技巧等级:中级 -文件预处理配置文件为/sdcard/uweb/default.filecap,每行格式如下: +文件预处理配置文件为default.filecap,每行格式如下: [文件后缀]:[mimetype]:[处理命令] 其中文件后缀可允许最多两段后缀,譬如&quot;txt.xz&quot;,&quot;html.gz&quot;。 mimetype表示命令处理后的输出内容格式。 处理命令与default.cmds相同,主要可能用到如下替换: %u(网址或文件路径)、%U(编码以后的网址)、%c(当前网址cookie)、%p(密码保护网站中的密码,curl格式)。 利用文件预处理,超微浏览器现在可以预览/查看/播放一切可下载资源,并且可以利用不同网站在线服务预览不同的文件,而手机上一个应用都不用装。 -配置/sdcard/uweb/default.filecap如下: +配置default.filecap如下: txt:text/html:curl %p "%u" mp3:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>' m4b:text/html:echo '&lt;audio controls width=100% height=100%>&lt;source src="%u">&lt;/audio>' m3u8:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>' mp4:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/video>' mkv:text/html:echo '&lt;video controls width=100% height=100%>&lt;source src="%u">&lt;/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:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u epub:uweb:echo file:///sdcard/uweb/app/reader/index.html?bookPath==%u 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 +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 长按设置按钮,勾选“文件预处理”,清后台重启浏览器。则网页上点击下载按钮时上述文件类型会自动预览。 如果用户配置中处理命令用到curl,则需要安装Termux,并在Termux中安装curl (&quot;apt install curl&quot;)。 @@ -561,22 +560,22 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e 点击安装epub阅读器(作者:llili) 点击安装djvu阅读器 相应的菜单安装可见浏览器特色服务 -超微配置目录下的子目录名如果以&quot;app&quot;开始(譬如&quot;/sdcard/uweb/appPDF&quot;),则这些&quot;app&quot;开头目录树下放置的html5应用将可获得功能增强。 +超微配置目录下的子目录名如果以&quot;app&quot;开始(譬如&quot;appPDF&quot;),则这些&quot;app&quot;开头目录树下放置的html5应用将可获得功能增强。 配置default.filecap并打开选项“文件预处理”,清后台重启浏览器后超微可直接阅读应用对应格式文件。 点击配置pdf.js,djvu.js,epub.js,超大文件阅读器 超大文件阅读器txtview.html url如下: -file:///sdcard/uweb/app/txtview.html?url=[url]#page=[xxx] -file:///sdcard/uweb/app/txtview.html?url=[url]#offset=[xxxx]&amp;[length] -file:///sdcard/uweb/app/markdeep.html?url=[url]#page=[xxx] -file:///sdcard/uweb/app/markdeep.html?url=[url]#offset=[xxxx]&amp;[length] +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]&amp;[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]&amp;[length] 譬如&quot;#offset=10000&amp;500&quot;会访问超大文件偏移量10000处长度为500的内容。 所有阅读器均支持箭头按钮(短按前进按钮或长按后退按钮)自动翻页。 比较有用的是mozilla的pdf.js,可用来显示在线或本地pdf文件。url如下: -file:///sdcard/uweb/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] +file:///data/data/info.torinfo.uweb/files/app/pdfviewer.html?file=[绝对或相对路径].pdf#page=[xxx] 则浏览器直接跳转到pdf文件指定页。与主屏多引擎搜索及少量脚本结合使用,可对任何pdf文件进行字典检索。 下面是一些类似的应用: djvu.js应用的访问url如下: -file:///sdcard/uweb/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] +file:///data/data/info.torinfo.uweb/files/app/djvu.html?url=[绝对或相对路径或url].pdf#page=[xxx] epub.js sampotts/plyr : video, YouTube and Vimeo player videojs/video.js @@ -612,7 +611,7 @@ back2:javascript:history.go(-2) 技巧等级:中级 PC剪贴板(高级) uweb浏览器支持一键执行任意预定义命令,这些命令可以与剪贴板交互,可以将结果(文本、图像、音视频)输出到浏览器窗口。 手机推荐安装uweb定制Termux,否则能够执行的命令极其有限。 -预定义命令保存在文件&quot;/sdcard/uweb/default.cmds&quot;中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。 +预定义命令保存在文件&quot;default.cmds&quot;中。重启浏览器,长按历史按钮,超微将弹出菜单供用户点击执行。 资深用户可能注意到文件名与default.acmd类似。default.acmd中的命令适合以不同的参数反复执行;而default.cmds一般以单次执行为多。default.acmd结果会显示在浏览器当前窗口;而default.cmds中命令执行结果会显示在新窗口之中。这两个文件格式也完全相同,每行格式如下: [命令名称]:[mimetype]:[命令代码] 命令代码可以是任意命令,其中可以包含%c(当前网址cookie)、%s (地址栏输入)、 %t (当前窗口标题)、 %u (当前窗口url或文件路径)。执行时这些特殊标识将会被相应内容自动替换。 @@ -719,7 +718,7 @@ CCTV17农村 Mon, 01 Jan 0001 00:00:00 +0000 /zh/searchcat/ - 点击本链接自动安装分类多引擎文件至&quot;/sdcard/uweb/bookmark&quot;目录下。 + 点击本链接自动安装分类多引擎文件至&quot;bookmark&quot;目录下。 超微浏览器中通过“设置”-&gt;“总目录”-&gt;“↑”-&gt;“Download”,点击后缀为.search的下载文件,超微浏览器将自动显示分类多引擎搜索。此时可按菜单键(或长按底部工具条后退按钮)选择“添加到桌面”方便以后访问。 .search文件每行格式为如下几种: [搜索引擎名]:[不含%s的url] @@ -765,7 +764,7 @@ fbcdn.net 可使用列出外部脚本小书签生成外部js文件列表,然后长按底部工具栏&quot;js&quot;按钮,执行&quot;网址转链接&quot;菜单命令,长按可疑链接(一般为域名不同的外链),执行“屏蔽根域名”。 长按不良信息链接,点击“图片:屏蔽根域名”,修改弹出域名,一般取最后两段,点击&quot;确定&quot;屏蔽当前图片网址。 部分不良信息没有链接可长按,或虽有链接但长按时不出现图片相关菜单。此时可长按[JS]点击&quot;背景图片&quot;或&quot;看图模式&quot;,再长按不良信息链接点击“图片:屏蔽根域名”,屏蔽图片网址。 -可长按设置开启&quot;资源嗅探&quot;,推荐设置文件&quot;/sdcard/uweb/types.sniff&quot;内容为js,刷新网页后关闭&quot;资源嗅探&quot;选项。在弹出的资源网页上长按链接,屏蔽根域名。 +可长按设置开启&quot;资源嗅探&quot;,推荐设置文件&quot;types.sniff&quot;内容为js,刷新网页后关闭&quot;资源嗅探&quot;选项。在弹出的资源网页上长按链接,屏蔽根域名。 (可选) 长按不良信息链接,点击“屏蔽根域名”,屏蔽链接网址。 (可选) 某些不良信息靠javascript激发,链接中不出现域名,可点击激发至新网址后将新网址根域名屏蔽。 支持域名及整个网址正则表达式 @@ -800,8 +799,8 @@ Termux提供了方便的软件包管理系统,缺省的uWeb地址栏功能配 安装gnuplot 安装 uweb定制Termux应用 Termux下运行以下命令: apt update apt upgrade -apt install gnuplot 地址栏功能配置: 配置文件/sdcard/uweb/default.acmd每行格式如下: -菜单名:mimeType:命令行 命令行可包含参数%s,运行时自动用地址栏输入内容替换。 如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。 配置文件/sdcard/uweb/default.acmd如下: 命令:text/plain:%s 函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s' 函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s' 超级计算器:text/html:echo &quot;%s&quot;|bc -l -q 长按uweb浏览器底部工具条刷新按钮弹出地址栏功能选择,选择“函数作图”,地址栏内输入函数如sin(x)**5就可显示函数图案。 +apt install gnuplot 地址栏功能配置: 配置文件default.acmd每行格式如下: +菜单名:mimeType:命令行 命令行可包含参数%s,运行时自动用地址栏输入内容替换。 如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。 配置文件default.acmd如下: 命令:text/plain:%s 函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s' 函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s' 超级计算器:text/html:echo &quot;%s&quot;|bc -l -q 长按uweb浏览器底部工具条刷新按钮弹出地址栏功能选择,选择“函数作图”,地址栏内输入函数如sin(x)**5就可显示函数图案。 常见问题及诊断 确保gnuplot正确安装,在Termux提示符下,敲入gnuplot,然后回车,保证出现&quot;gnuplot&gt;&quot;。 确保gnuplot正常运行, 在Termux提示符下,执行下面命令: gnuplot -e 'set term svg;set output; plot x' 屏幕输出应该为正常的svg文件(类似html文本)。 Termux应为uweb定制包,否则有一堆设定需要修改。 超微浏览器下长按设置按钮,勾选“标准错误输出”。再次在地址栏执行画图操作,此时浏览器会显示出错信息。 为保证地址栏输入函数符合gnuplot规范,首个测试函数建议为&quot;x&quot;,即整个地址栏内输入为&quot;x&quot;。 @@ -825,7 +824,7 @@ ssh [user:password]@192.168.2.102 &quot;DISPLAY=:0 firefox \&quot;$1\&am 脚本需设置为可执行,Termux下执行命令: chmod 755 /data/data/com.termux/files/usr/bin/pcdownload 这里假定用户已经在台式机上设好ssh服务,台式机IP地址为192.168.2.102,准备用firefox下载。如果下载工具不是图形程序,则上述脚本中可删去“DISPLAY=:0”。 -配置文件/sdcard/uweb/default.longclick如下: +配置文件default.longclick如下: PCdown:/data/data/com.termux/files/usr/bin/pcdownload 重启超微浏览器,点击链接下载时会弹出菜单,选择&quot;PCdown&quot;,台式机会启动firefox下载手机指定文档。 可能大家有疑问,台式机无法登录,为什么手机可以登录?这是因为手机上应用多哈。 @@ -839,8 +838,8 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload /zh/sitejs/ 技巧等级:中级 脚本 (第一时间装载js脚本见下面sitecss条目) -脚本需命名为 &quot;[根域名].js&quot;,譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到/sdcard/uweb/sitejs或/data/data/info.torapp.uweb/files/sitejs目录下,数量没有限制,上百万都不成问题。如果内部目录下sitejs存在,则/sdcard/uweb/sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源(包括网站离线资源等)的配置,一旦内部sitejs目录存在,则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名(最后两段不超过6字如com.cn的域名可取四段)。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 -与此类似,用户样式需命名为 &quot;[根域名].css&quot;,譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到/sdcard/uweb/sitecss目录下。 sitecss目录下&quot;[根域名].js&quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“/sdcard/uweb/default.css”存在,访问网址时如果没有与域名匹配的css文件,则使用此默认样式文件。 default.css可作为夜间模式来使用,此时default.css为夜间模式css,而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 文件sitejs/.js 和sitecss/.css, sitecss/.js可作用于一切非http url(本地文件,浏览器界面等)。 +脚本需命名为 &quot;[根域名].js&quot;,譬如baidu.com.js 或tieba.baidu.com.js 。此脚本将自动作用于所有相同根域名的网址上。如有多个脚本满足条件,以最长文件名为准。 这些脚本需放到sitejs或/data/data/info.torapp.uweb/files/sitejs目录下,数量没有限制,上百万都不成问题。如果内部目录下sitejs存在,则sitejs不起任何作用。内部sitejs目录的存在同时也影响一切对安全敏感的资源(包括网站离线资源等)的配置,一旦内部sitejs目录存在,则这些资源必须位于内部目录才会生效。 长按窗口按钮,勾选“执行网址用户脚本”。 脚本执行对浏览器无性能影响,即使有百万脚本存在。 目前支持两段、三段及少数四段域名(最后两段不超过6字如com.cn的域名可取四段)。所以脚本请不要以很长的域名来命名。 样式及第一时间装载js脚本 +与此类似,用户样式需命名为 &quot;[根域名].css&quot;,譬如baidu.com.css 或tieba.baidu.com.css。 样式文件需放到sitecss目录下。 sitecss目录下&quot;[根域名].js&quot;文件会在第一时间装载。 长按窗口按钮,勾选“使用网址用户样式”。 如果文件“default.css”存在,访问网址时如果没有与域名匹配的css文件,则使用此默认样式文件。 default.css可作为夜间模式来使用,此时default.css为夜间模式css,而黑色主题类网址对应的域名为空文件。此种设定情况下仅白色主题网页会使用夜间模式css。 文件sitejs/.js 和sitecss/.css, sitecss/.js可作用于一切非http url(本地文件,浏览器界面等)。 @@ -849,12 +848,9 @@ PCdown:/data/data/com.termux/files/usr/bin/pcdownload Mon, 01 Jan 0001 00:00:00 +0000 /zh/offlinecache/ - uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件&quot;/sdcard/uweb/sitecache/[域名]/[全部路径,包括文件名,?,&amp;,=, 与url一模一样]&quot;。如果应用内部目录有文件夹&quot;sitejs&quot;存在,则“/sdcard/uweb”下的离线资源不再生效,此时生效离线资源为内部目录下的&quot;sitecache&quot;文件夹。 + uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件&quot;sitecache/[域名]/[全部路径,包括文件名,?,&amp;,=, 与url一模一样]&quot;。 打开选项以后超微将自动装载这些离线资源。 -离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。 -下面以google翻译为例说明如何发现并备份离线资源。 -首先使用教程&quot;运行远程javascript&quot;配置google翻译。 将文件&quot;/sdcard/uweb/types.sniff&quot;内容清空(不要删除文件,否则会恢复成默认文件)。重启浏览器以后长按设置打开资源嗅探。 准备好合适手段保证google系网站能正常访问,长按按钮在主屏运行google翻译。 出现google翻译工具条以后,长按设置关闭嗅探。 运行termux,安装下载工具wget: -apt update;apt install wget 下载必要离线数据,termux下运行如下命令: cd /sdcard/uweb mkdir sitecache cd sitecache wget -U 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)' -x -i ../sniff.log 下载结束后,离线资源就准备妥当,供以后随时使用。 google翻译的情况下,要对部分js作修改,防止每次访问url不同。 +离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。 diff --git a/zh/links/index.html b/zh/links/index.html index 086919b..871e87b 100644 --- a/zh/links/index.html +++ b/zh/links/index.html @@ -34,11 +34,11 @@

    点击以下链接可安装至常用链接
    -
    显示网站安全证书
    -迅雷盘离线

    -

    网页全屏

    -

    点击安装Cookie延期,地址栏内删除特殊字符,站内搜索,seedr离线下载等
    -点击安装离线下载(pcloud,furk,微云等)

    +显示网站安全证书
    +迅雷盘离线

    +

    网页全屏

    +

    点击安装Cookie延期,地址栏内删除特殊字符,站内搜索,seedr离线下载等
    +点击安装离线下载(pcloud,furk,微云等)

    酷安扫描

    uweb浏览器中长按书签按钮可弹出常用链接菜单,这些链接定义在文件"default.link"中,改动过的文件清后台重启动后生效。每行格式如下:
    [菜单名]:[url][空格][javascript脚本]
    diff --git a/zh/loadbt/index.html b/zh/loadbt/index.html index e8f9089..7cabf80 100644 --- a/zh/loadbt/index.html +++ b/zh/loadbt/index.html @@ -69,7 +69,7 @@ BaiduPCS-Go login
    BaiduPCS-Go config set -appid=266719

  • -

    /sdcard/uweb/default.longclick配置如下:
    +

    default.longclick配置如下:
    百度离线下载:termux/*:BaiduPCS-Go od add "%u";exit 1

  • diff --git a/zh/logcat/index.html b/zh/logcat/index.html index f4760a4..e0cc266 100644 --- a/zh/logcat/index.html +++ b/zh/logcat/index.html @@ -33,7 +33,7 @@
    -

    超微浏览器如果闪退,会生成出错文件"/sdcard/uweb/error.log"。

    +

    超微浏览器如果闪退,会生成出错文件"error.log"。

    如果超微或安卓系统或任何应用出现问题,则可利用超微浏览器进行诊断,方法如下:

    • 访问常用命令网页,点击安装logcat相关的两个命令。
    • @@ -41,7 +41,7 @@
    • 长按历史按钮,执行命令"清空logcat"。
    • 触发有问题的功能。
    • 长按历史按钮,执行命令"输出logcat.log".
    • -
    • 检查文件"/sdcard/uweb/logcat.log"内容。
    • +
    • 检查文件"logcat.log"内容。

    超微浏览器是手机上调试javascript脚本的最佳工具,无需打包就可有多种方式运行javascript代码。webview dev版自带devtools,运行此工具,打开flag "webview-log-js-console-messages"以后所有js出错信息及console输出会被复制到logcat中。然后用户可根据上一段所述方法诊断。

    非dev版本webview可点击如下链接运行devtools。
    diff --git a/zh/longclick/index.html b/zh/longclick/index.html index a059be9..42dcbc4 100644 --- a/zh/longclick/index.html +++ b/zh/longclick/index.html @@ -36,11 +36,11 @@

    长按链接运行第三方程序

    -

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

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

    长按链接运行js文件

    -

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

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

    • 首行可以"//"开头,后面紧跟目标网页url,url中可包含"%u"等,打开网页时会用长按的链接替换。
    • diff --git a/zh/offlinecache/index.html b/zh/offlinecache/index.html index a992a54..f6e7f8d 100644 --- a/zh/offlinecache/index.html +++ b/zh/offlinecache/index.html @@ -33,26 +33,9 @@
      -

      uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件"/sdcard/uweb/sitecache/[域名]/[全部路径,包括文件名,?,&,=, 与url一模一样]"。如果应用内部目录有文件夹"sitejs"存在,则“/sdcard/uweb”下的离线资源不再生效,此时生效离线资源为内部目录下的"sitecache"文件夹。

      -

      打开选项以后超微将自动装载这些离线资源。

      +

      uweb浏览器支持装载网站离线资源。只需要将离线资源存为文件"sitecache/[域名]/[全部路径,包括文件名,?,&,=, 与url一模一样]"。
      +打开选项以后超微将自动装载这些离线资源。

      离线资源可作为缓存提高浏览器性能; 可作为国外网站部分备份修复服务访问; 也可替换部分网站资源达到定制网站的作用。

      -

      下面以google翻译为例说明如何发现并备份离线资源。

      -
        -
      • 首先使用教程"运行远程javascript"配置google翻译。
      • -
      • 将文件"/sdcard/uweb/types.sniff"内容清空(不要删除文件,否则会恢复成默认文件)。重启浏览器以后长按设置打开资源嗅探。
      • -
      • 准备好合适手段保证google系网站能正常访问,长按按钮在主屏运行google翻译。
      • -
      • 出现google翻译工具条以后,长按设置关闭嗅探。
      • -
      • 运行termux,安装下载工具wget:
        -apt update;apt install wget
      • -
      • 下载必要离线数据,termux下运行如下命令: -
        cd /sdcard/uweb
        -mkdir sitecache
        -cd sitecache
        -wget -U 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)' -x -i ../sniff.log
        -
      • -
      • 下载结束后,离线资源就准备妥当,供以后随时使用。
      • -
      • google翻译的情况下,要对部分js作修改,防止每次访问url不同。
      • -
      diff --git a/zh/pccopy/index.html b/zh/pccopy/index.html index e2d181b..02d7fd1 100644 --- a/zh/pccopy/index.html +++ b/zh/pccopy/index.html @@ -44,26 +44,26 @@

    点击以下链接可安装长按“链接”按钮菜单:
    -google划词翻译
    -bing翻译
    -papago翻译

    -

    iciba
    -百度翻译
    -有道翻译
    -搜狗翻译

    -

    彩云小译
    -deepL

    -

    点击安装"保存文本"等

    +google划词翻译
    +bing翻译
    +papago翻译

    +

    iciba
    +百度翻译
    +有道翻译
    +搜狗翻译

    +

    彩云小译
    +deepL

    +

    点击安装"保存文本"等

    重启浏览器,长按“链接”按钮,将弹出菜单。若用户当前窗口并无选中文本,则选取整个页面作相应操作,否则以选中文本为准。

    -

    配置文件"/sdcard/uweb/default.select"定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下:
    +

    配置文件"default.select"定义了超微浏览器对选中(富)文本/元素进行的操作。没有任何选中元素则以整个网页为操作对象。每行格式如下:
    [菜单名]:[mimetype]:[命令行]

    选中(富)文本作为命令行的标准输入,而标准输出根据mimetype进行相应处理。
    mimetype用来表示命令的输入输出类型。格式为"[输入mimetype]/[输出mimetype]","[输入mimetype]"可为"html"或空(txt格式)或为以超微配置目录为基准的相对路径.js文件名; 输出可为标准的mimetype或超微特殊扩充。如:
    html/text/html: 选中富文本为html格式, 输出mimetype为text/html。
    /uweb: 选中文本为txt格式, 输出mimetype为特殊扩充uweb,超微将把输出作为链接来处理。
    /termux: 命令运行结果将作为termux下命令运行。
    -checked.js: 运行配置目录下checked.js,其返回值作为命令行标准输入。对任何目录型(以“/”结尾)文件url,后面可附"?[文件前缀][[文件后缀]]"。譬如"file:///sdcard/?.png"会列举出"/sdcard"目录下所有.png文件。此时选择选定文件,则可利用checked.js复制文件至PC。(参看下面具体配置)

    -

    配置/sdcard/uweb/default.select如下:
    +checked.js: 运行配置目录下checked.js,其返回值作为命令行标准输入。对任何目录型(以“/”结尾)文件url,后面可附"?[文件前缀][[文件后缀]]"。譬如"file:///sdcard/?.png"会列举出"/sdcard"目录下所有.png文件。此时选择选定文件,则可利用checked.js复制文件至PC。(参看下面具体配置)

    +

    配置default.select如下:
    复制文本到地址栏:uweb:printf i:15;cat
    笔记::(cat;echo;echo;)>>notes.txt
    富文本笔记:html:(cat;echo '<p></p>';echo;)>>notes.html
    @@ -73,7 +73,7 @@ html/text/html: 选中富文本为html格式, 输出mimetype为text/html。
    复制文件至PC:checked.js:while read fname;do scp $fname [user:password]@192.168.2.102:Downloads/.; done

    如使用剪贴板功能手机需安装uweb定制Termux,并在termux下安装openssl。
    此处假定远程PC的IP地址为192.168.2.102,PC已经开通了ssh服务。建议用户配置ssh服务为免密码登录,此时用户无需将密码写入文件default.select。用户PC上安装有xsel剪贴板工具。使用其它工具请酌情修改。

    -

    采用以上配置,笔记将储存在/sdcard/uweb目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。

    +

    采用以上配置,笔记将储存在应用内部目录下文件note.txt或note.html中(富文本)。命名笔记储存文件则由用户在地址栏输入框内指定。

    手机其它应用中的文本可选中后分享给超微浏览器,再由超微浏览器作笔记或进一步分享给PC。如果其它应用无法分享选中文本,这种情况可以先复制文本至剪贴板。长按链接按钮选择适当功能即可复制至PC剪贴板。

    Windows PC

    对Windows PC而言,vista及以后自带clip.exe,此时配置如下:
    diff --git a/zh/pcdown/index.html b/zh/pcdown/index.html index 540f316..5f80ce3 100644 --- a/zh/pcdown/index.html +++ b/zh/pcdown/index.html @@ -53,7 +53,7 @@ apt install openssl

    脚本需设置为可执行,Termux下执行命令:
    chmod 755 /data/data/com.termux/files/usr/bin/pcdownload

    这里假定用户已经在台式机上设好ssh服务,台式机IP地址为192.168.2.102,准备用firefox下载。如果下载工具不是图形程序,则上述脚本中可删去“DISPLAY=:0”。

    -

    配置文件/sdcard/uweb/default.longclick如下:
    +

    配置文件default.longclick如下:
    PCdown:/data/data/com.termux/files/usr/bin/pcdownload

    重启超微浏览器,点击链接下载时会弹出菜单,选择"PCdown",台式机会启动firefox下载手机指定文档。

    可能大家有疑问,台式机无法登录,为什么手机可以登录?这是因为手机上应用多哈。

    diff --git a/zh/redirect/index.html b/zh/redirect/index.html index c675856..24ee995 100644 --- a/zh/redirect/index.html +++ b/zh/redirect/index.html @@ -37,14 +37,14 @@
  • 国外网址
  • -

    github mirror:fastgit
    -github mirror 2
    -github mirror 3

    -

    点击添加google recaptcha国内镜像

    +

    github mirror:fastgit
    +github mirror 2
    +github mirror 3

    +

    点击添加google recaptcha国内镜像

    使用服务器在国外的搜索引擎体验往往不如国内的引擎。由于网站屏蔽的原因,两者之间索引权重差别很大。国外受欢迎的技术类网站因此难以在百度上搜到;国外引擎能搜到但由于其中不少结果无法访问而体验糟糕。

    其实,很多技术类网站在国内早有镜像,但由于镜像并非众所周知,其索引权重在百度上微不足道,非专门搜索不可得。

    本文介绍一种技术,可重定向国外网址至国内镜像,极大的提高国外引擎的体验,让更多用户更客观的理解全球技术。

    -

    配置/sdcard/uweb/default.redirect:
    +

    配置default.redirect:
    文件每一行格式为:
    域名:正则表达式:替换表达式

    其中正则表达式以java语言规定为准,表达式中不能包含':'。正则表达式为空时系统默认为与域名相同。正则表达式,替换表达式同时为空时无重定向作用,但域名会允许CORS跨域访问 (目前仅对"GET" request生效)。

    @@ -54,7 +54,7 @@ developer.android.com::developer.android.google.cn

    • 长按链接
      -添加文件"国内镜像.js"至"/sdcard/uweb/longclick"目录下。
      +添加文件"国内镜像.js"至"longclick"目录下。
      文件内容如下:

      //e:%u

      其中"e:"为uweb特殊url协议,意为"edit",即"编辑"。当后面紧跟url网址的情况下会重定向网址。

      diff --git a/zh/searchcat/index.html b/zh/searchcat/index.html index 1da9f34..cec2db1 100644 --- a/zh/searchcat/index.html +++ b/zh/searchcat/index.html @@ -35,7 +35,7 @@
    • 搜索
    -

    点击本链接自动安装分类多引擎文件至"/sdcard/uweb/bookmark"目录下

    +

    点击本链接自动安装分类多引擎文件至"bookmark"目录下

    超微浏览器中通过“设置”->“总目录”->“↑”->“Download”,点击后缀为.search的下载文件,超微浏览器将自动显示分类多引擎搜索。此时可按菜单键(或长按底部工具条后退按钮)选择“添加到桌面”方便以后访问。

    .search文件每行格式为如下几种:
    [搜索引擎名]:[不含%s的url]
    diff --git a/zh/searchurl/backup.html b/zh/searchurl/backup.html index 6ead87a..ec17619 100644 --- a/zh/searchurl/backup.html +++ b/zh/searchurl/backup.html @@ -11,7 +11,7 @@ input{height:40px;width:100%;border-radius:50px;} 备份与恢复

    支持安卓6+。

    -

    备份目录"/sdcard/uweb"至坚果云 恢复

    +

    备份uweb目录至坚果云 恢复

    备份Cookie至坚果云(webview 76+,注意账号信息泄露危险) 恢复

    @@ -27,7 +27,7 @@ input{height:40px;width:100%;border-radius:50px;}

    坚果云 易云
    -uweb目录 +uweb目录 Cookie (webview 76+)

    diff --git a/zh/searchurl/cmds.html b/zh/searchurl/cmds.html index 3703962..bfd8556 100644 --- a/zh/searchurl/cmds.html +++ b/zh/searchurl/cmds.html @@ -2,14 +2,14 @@ 配置浏览器常用命令

    配置浏览器常用命令

    -超微浏览器下点击配置链接可自动添加常用命令,强制清空后台重启后长按历史按钮可用。

    +超微浏览器下点击配置链接可自动添加常用命令,强制清空后台重启后长按历史按钮可用。

    其中备份/恢复Cookie需android6+, webview76+。
    -打开剪贴板内链接、代码编辑器、淘宝比价 (淘宝app内分享复制链接后在超微内直接执行此命令)、本地markdown显示(支持数学公式、各类图表)等
    +打开剪贴板内链接、代码编辑器、淘宝比价 (淘宝app内分享复制链接后在超微内直接执行此命令)、本地markdown显示(支持数学公式、各类图表)等

    -

    配置文件"/sdcard/uweb/default.cmds"示例:
    +

    配置文件"default.cmds"示例:
    -

    清空浏览数据::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete

    VPN::am start -a android.net.vpn.SETTINGS

    无线::am start -a android.settings.WIRELESS_SETTINGS

    合并查询历史至自动填充:uweb:cd /sdcard/uweb;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///sdcard/uweb/default.autoc

    备份Cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/.

    恢复Cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/.

    清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache

    清空logcat::logcat -c

    输出logcat.log::logcat -d > /sdcard/uweb/logcat.log

    复制cookie:/clip:printf '%c'

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

    下面配置需要root权限:

    解冻微信::su -c 'pm enable com.tencent.mm'

    冻结微信::su -c 'pm disable com.tencent.mm'

    解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'

    冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'

    下面配置需要termux:

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

    vim:termux/*:vim %f

    历史去重::awk -F'\t' '!s[\$2]++' /sdcard/uweb/history.rec>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/history.rec

    书签去重::awk '!s[\$0]++' /sdcard/uweb/bookmark.html>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/bookmark.html

    hosts去重::toybox tac /sdcard/uweb/default.hosts|awk -F' ' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.hosts

    网站设置去重::toybox tac /sdcard/uweb/default.siteconf|awk -F':' '!s[\$1]++' |toybox tac>/sdcard/a.tmp;mv /sdcard/a.tmp /sdcard/uweb/default.siteconf

    代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS

    发送url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(播放器)::printf 'i:5g%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(书签)::printf 'i:51../home5:i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(全屏)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送剪贴板:clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500

    剪贴板_至PC:clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -i'

    剪贴板_从PC:/clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -o'

    剪贴板广播:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast

    剪贴板_从广播:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'

    剪贴板_二维码:clip/uweb:qrencode -o /sdcard/uweb/a.png;echo file:///sdcard/uweb/a.png

    +

    清空浏览数据::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/.

    VPN::am start -a android.net.vpn.SETTINGS

    无线::am start -a android.settings.WIRELESS_SETTINGS

    合并查询历史至自动填充: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

    清空缓存::toybox rm -rf /data/data/info.torapp.uweb/cache

    清空logcat::logcat -c

    输出logcat.log::logcat -d > logcat.log

    复制cookie:/clip:printf '%c'

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

    下面配置需要root权限:

    解冻微信::su -c 'pm enable com.tencent.mm'

    冻结微信::su -c 'pm disable com.tencent.mm'

    解冻拼多多::su -c 'pm enable com.xunmeng.pinduoduo'

    冻结拼多多::su -c 'pm disable com.xunmeng.pinduoduo'

    下面配置需要termux:

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

    vim:termux/*:vim %f

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

    书签去重::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

    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

    网站设置去重::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

    代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS

    发送url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(播放器)::printf 'i:5g%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(书签)::printf 'i:51../home5:i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(全屏)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500

    发送剪贴板:clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500

    剪贴板_至PC:clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -i'

    剪贴板_从PC:/clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -o'

    剪贴板广播:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast

    剪贴板_从广播:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'

    剪贴板_二维码:clip/uweb:qrencode -o /sdcard/Download/a.png;echo file:///sdcard/Download/a.png

    代理8888需要安装有tinyproxy(apt install tinyproxy),端口为8888。用户可配置为允许外部PC使用。
    发送url需更改智能电视机ip地址。 剪贴板_PC需更改用户名,PC端安装有xsel,termux安装有ssh (apt install openssh),且配置好ssh无密码登录。 剪贴板广播需安装有socat(apt install socat)。 diff --git a/zh/searchurl/config.js b/zh/searchurl/config.js index f68df7c..639ef9d 100644 --- a/zh/searchurl/config.js +++ b/zh/searchurl/config.js @@ -18,7 +18,7 @@ let sa = [`

    ul{padding-left:0;}

    点击以下链接可触发超微浏览器各类相关功能


    diff --git a/zh/searchurl/homescreen.html b/zh/searchurl/homescreen.html index 63a1d7c..ea0400a 100644 --- a/zh/searchurl/homescreen.html +++ b/zh/searchurl/homescreen.html @@ -2,14 +2,14 @@