<p>Long press the setting button, check the option "Block external scripts". <ahref="i:61:https://fastly.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/func.html">UI</a> website has option to also block dubious 3rd party resources. <ahref="file:///data/data/info.torinfo.uweb/files/js.allow">js.allow</a> whitelists js libraries.</p>
<p>Long press the setting button, check the option "Block external scripts". <ahref="i:61:https://fastly.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/func.html">UI</a> website has option to also block dubious 3rd party resources. <ahref="file:///data/data/info.torapp.uweb/files/js.allow">js.allow</a> whitelists js libraries.</p>
</li>
<li>
<p>Long press the button [☰], "Disable floating ADs", "Disable banners", "clear all timers", "stop events" and "Sleep ..." are also available.</p>
@ -80,7 +80,7 @@
<p>Click the button "JS" to disable javascript.</p>
</li>
<li>
<p><ahref="file:///data/data/info.torinfo.uweb/files/url.deny">url.deny</a>: one giant regular expression for blocked urls (java grammar), in which carriage returns (CR or newline) are ignored and "#" is for comments.</p>
<p><ahref="file:///data/data/info.torapp.uweb/files/url.deny">url.deny</a>: one giant regular expression for blocked urls (java grammar), in which carriage returns (CR or newline) are ignored and "#" is for comments.</p>
<p><ahref="file:///data/data/info.torinfo.uweb/files/default.hosts">hosts</a> 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.</p>
<p><ahref="file:///data/data/info.torapp.uweb/files/default.hosts">hosts</a> 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.</p>
<p>Each line of the hosts file has the following format:<br>
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]<br>
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.</p>
<p>Click the following links to install commands with <ahref="../index.html">uweb browser</a>. <b>Force exit and re-launch the app</b>, then long press the button with clock icon to popup the command menu.</p>
<p><ahref="i:03tgz install::toybox tar -xzf %f -C /">tgz install::toybox tar -xzf %f -C /</a></p>
<p>Users should change the IP addresses in the following menus accordingly. In all cases, TV side needs to execute "<ahref="../links/index.html">wait for network msg</a>" first. Send message to network (ex. for android TVs):<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/js/">js/</a>": global script folder<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/sitejs/">sitejs/</a>": <ahref="../sitejs/index.html">script folder for domains</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/sitecss/">sitecss/</a>":<ahref="../sitejs/index.html">CSS folder for domains</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/bookmarklet/">bookmarklet/</a>":bookmarklets, long pressing the "JS" button to execute.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/offline/">offline/</a>": to save offline pages<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/sbookmark/">sbookmark/</a>": to save super bookmarks<br>
"<ahref="file:///data/data/info.torapp.uweb/files/js/">js/</a>": global script folder<br>
"<ahref="file:///data/data/info.torapp.uweb/files/sitejs/">sitejs/</a>": <ahref="../sitejs/index.html">script folder for domains</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/sitecss/">sitecss/</a>":<ahref="../sitejs/index.html">CSS folder for domains</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/bookmarklet/">bookmarklet/</a>":bookmarklets, long pressing the "JS" button to execute.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/offline/">offline/</a>": to save offline pages<br>
"<ahref="file:///data/data/info.torapp.uweb/files/sbookmark/">sbookmark/</a>": to save super bookmarks<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.longclick">default.longclick</a>": to configure menus when long-pressing hypertext.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.acmd">default.acmd</a>":<ahref="../gnuplot/index.html">configure address bar functionalities</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.hosts">default.hosts</a>":<ahref="../adblock_hosts/index.html">hosts not allowed to visit</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.select">default.select</a>":<ahref="../pccopy/index.html">menus for selected text</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.input">default.input</a>": common phrases for user inputs<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.gesture">default.gesture</a>": to define <ahref="../gesture/index.html">gestures on the top part of the content window</a>. The file format is same as <ahref="../links/index.html">default.link</a>,<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.gesture2">default.gesture2</a>": gestures on the right side similar to default.gesture.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.button">default.button</a>": to re-define button pressing functionalities. The file format is same as <ahref="../links/index.html">default.link</a>, each line represents action from the last button to the first.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.button2">default.button2</a>": similar to default.button but for long-pressed buttons.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.rc">default.rc</a>": check the option "custom file handling" to execute the shell script file during uweb launching. <ahref="../tools/index.html">tcron</a> provides extra cron tools.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.rc2">default.rc2</a>": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/engine.search">engine.search</a>": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to <ahref="../search/index.html">home5.search</a> but using "%s" as search keywords.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.siteconf">default.siteconf</a>": 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.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.playrate">default.playrate</a>": fullscreen playing menu. The file format is same as <ahref="../links/index.html">default.link</a>. 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.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.autoc">default.autoc</a>": address bar autocomplete candidate strings.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.longclick">default.longclick</a>": to configure menus when long-pressing hypertext.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.acmd">default.acmd</a>":<ahref="../gnuplot/index.html">configure address bar functionalities</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.hosts">default.hosts</a>":<ahref="../adblock_hosts/index.html">hosts not allowed to visit</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.select">default.select</a>":<ahref="../pccopy/index.html">menus for selected text</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.input">default.input</a>": common phrases for user inputs<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.gesture">default.gesture</a>": to define <ahref="../gesture/index.html">gestures on the top part of the content window</a>. The file format is same as <ahref="../links/index.html">default.link</a>,<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.gesture2">default.gesture2</a>": gestures on the right side similar to default.gesture.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.button">default.button</a>": to re-define button pressing functionalities. The file format is same as <ahref="../links/index.html">default.link</a>, each line represents action from the last button to the first.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.button2">default.button2</a>": similar to default.button but for long-pressed buttons.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.rc">default.rc</a>": check the option "custom file handling" to execute the shell script file during uweb launching. <ahref="../tools/index.html">tcron</a> provides extra cron tools.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.rc2">default.rc2</a>": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/engine.search">engine.search</a>": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to <ahref="../search/index.html">home5.search</a> but using "%s" as search keywords.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.siteconf">default.siteconf</a>": 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.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.playrate">default.playrate</a>": fullscreen playing menu. The file format is same as <ahref="../links/index.html">default.link</a>. 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.<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.autoc">default.autoc</a>": address bar autocomplete candidate strings.<br>
"query.autoc": home screen search autocomplete candidate strings.<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/home5.html">home5.html</a>": 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).<br>
"<ahref="file:///data/data/info.torinfo.uweb/files/default.css">default.css</a>": <ahref="../sitejs/index.html">default CSS style for domains not defined in sitejs folder</a><br>
"<ahref="file:///data/data/info.torapp.uweb/files/home5.html">home5.html</a>": 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).<br>
"<ahref="file:///data/data/info.torapp.uweb/files/default.css">default.css</a>": <ahref="../sitejs/index.html">default CSS style for domains not defined in sitejs folder</a><br>
"bookmarklet/videoplayer.js": <ahref="../video/index.html">fullscreen video player</a><br>
"<ahref="file:///data/data/info.torinfo.uweb/files/types.sniff">types.sniff</a>": file types for resource sniffer<br>
"<ahref="file:///data/data/info.torapp.uweb/files/types.sniff">types.sniff</a>": file types for resource sniffer<br>
"js.allow": 3rd-party resource white list. One domain per line.<br>
"url.deny": one giant regular expression for blocked urls (java grammar). "#" to comment and carriage return (CR or new line) is ignored.<br>
@ -69,12 +69,12 @@ Click to install the following html5 apps:<br>
<atarget="_self"href="i:0gdefault.filecap:https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/txt/filecap.cfg">use pdf.js,djvu.js,epub.js, huge markdown viewer for local files</a></p>
<p>Ex. "#offset=10000&500" will retrieve 500 bytes from offset 10000. Click the right arrow button to next page in all above file viewers.</p>
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
<p>Each line of file "<ahref="file:///data/data/info.torinfo.uweb/files/default.longclick">default.longclick</a>" has the following format: (same as <ahref="../cmds/index.html">default.cmds</a>)<br>
<p>Each line of file "<ahref="file:///data/data/info.torapp.uweb/files/default.longclick">default.longclick</a>" has the following format: (same as <ahref="../cmds/index.html">default.cmds</a>)<br>
[Name]:[mimetype]:[command line]<br>
in which [command line] can have <ahref="../cmds/index.html">"%c" (cookie), "%u" (current url), "%t" (title)</a> etc.</p>
<h4id="to-visit-url-and-load-javascript-file">To visit url and load javascript file</h4>
<p>All ".js" files under the folder "<ahref="file:///data/data/info.torinfo.uweb/files/longclick/">longclick</a>" are part of the popup menu.<br>
<p>All ".js" files under the folder "<ahref="file:///data/data/info.torapp.uweb/files/longclick/">longclick</a>" are part of the popup menu.<br>
These javascript files are in the following format:</p>
<ul>
<li>The very first line can begin with "//" followed by website url that can have <ahref="../cmds/index.html">"%u" (current url), "%t" (title)</a> etc. included. In this case, the website is visited, then the javascript file is loaded on the new loaded site.</li>
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
<p><ahref="i:03代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS">代理8888:termux/*:tinyproxy;am start -a android.settings.WIFI_SETTINGS</a></p>