<li>gr [gredirect index]: global redirection with corresponding index. Use the first global redirection url if no argument. Disable global redirection with any index out of the range.</li>
<li>js [js code] : execute JS code at OS level. Note: "javascript:..." is special url and thus works in the current web page, while ":js ..." commands can do any OS operations.</li>
@ -135,11 +136,16 @@
<li>pdf [filename w/o extension] {<ahref="https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions">options</a>} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.</li>
</ul>
</li>
<li>"!" address bar commands<br>
"!xx ..." evaluates "xx.js" with the whole text as arguments[0].</li>
<li>"!" address bar commands
<ul>
<li>"!xx ..." evaluates "xx.js" with the whole text as arguments[0] at OS level.</li>
<li>"!!xx ..." evaluates "xx.js" with the whole text as arguments[0] at browser level, which could manipulate address bar etc.</li>
</ul>
</li>
<li>i: internal urls, which will be consistent with <ahref="https://jamesfengcao.gitlab.io/uweb/en/links/index.html">uweb</a>.
<ul>
<li>"i:0/js/xxx.js:[url]" loads the "[url]" with bookmarklet "js/xxx.js".</li>
<li>"i:8d[url]" fo force downloading</li>
</ul>
</li>
</ul>
@ -175,10 +181,13 @@
<li>Browser (or renderer process) :
<ul>
<li>":bjs" to execute the following js code at browser level.</li>
<li>"!xx" evaluates "xx.js", which could manipulate address bar etc.</li>
</ul>
</li>
<li>OS level (or main process) : ":js" to execute the following js code with all OS APIs available.</li>
<li>OS level (or main process) : ":js" to execute the following js code with all OS APIs available.
<ul>
<li>"!xx" evaluates "xx.js" with arguments.</li>
</ul>
</li>
</ul>
<h5id="examples-for-jsbjs-commands">examples for ":js"/":bjs" commands</h5>
<pre><code>:js bJS=true //allow external Javascript files for web pages
@ -212,8 +221,8 @@
<p>You can copy or modify the code/program under the terms of the GPL3.0 or later versions.</p>
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid>
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect with the setting option &quot;use hosts&quot;.
hosts The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
[[IP address][attributes]][single space][domain name]
where &quot;[[IP address][attributes]]&quot; could be:
ipv4 address such as:
172.67.157.211 torapp.eu.org
ipv6 address, Ex.:
[2606:4700:3037::6815:8c3] torapp.eu.org
empty, that would lift all server-imposed limitations. Ex.:
[single space]gitee.com
which will make all git repositories on the domain visitable as websites with raw file access url.</description>
<description><p>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect with the setting option &quot;use hosts&quot;.</p>
<h4 id="hosts">hosts</h4>
<p>The <span style="color:red">enhanced</span> file <a href="file:///data/data/info.torapp.uweb/files/hosts">&quot;hosts&quot;</a> defines IP addresses/attributes for domains. Each line has the following format:<br>
[[IP address][attributes]][single space][domain name]</p>
<p>where &quot;[[IP address][attributes]]&quot; could be:</p>
<ul>
<li>
<p>ipv4 address such as:<br>
172.67.157.211 torapp.eu.org</p>
</li>
<li>
<p>ipv6 address, Ex.:<br>
[2606:4700:3037::6815:8c3] torapp.eu.org</p>
</li>
<li>
<p>empty, that would lift all server-imposed limitations. Ex.:<br>
[single space]gitee.com</p>
<p>which will make all git repositories on the domain visitable as websites with raw file access url.</p></description>
<pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate>
<guid>/en/textprocess/</guid>
<description>Click the following links to install menus for long pressing the button &quot;link&quot;:
note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
deepL
The file &quot;default.select&quot; defines text processing 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:</description>
<description><p>Click the following links to install menus for long pressing the button &quot;link&quot;:<br>
<a href="i:0gdefault.select::notems:/uwebA:printf i:0/js/hash2textarea.js:https://note.ms/ric#;cat%0A">note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID</a></p>
<p><a href="i:0gdefault.select::copyHtml:html/clip:%0A">Copy selected text with html format to clipboard</a></p>
<p><a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<p><a href="i:0gdefault.select::google Translate:/uweb:printf 'https://translate.google.com/?sl=auto&tl=en&op=translate&text=';cat|tr '''%2B'%0A">google Translate</a></p>
<p><a href="i:0gdefault.select::bing Translate:/uweb:printf 'https://cn.bing.com/translator/?from=&to=en&text=';cat|tr '''%2B'%0A">bing translate</a></p>
<p><a href="i:0gdefault.select::deepL:/uweb:printf https://www.deepl.com/translator-mobile#auto/en/;cat|sed 's/ /%2520/g'%0A">deepL</a></p>
<p>The file &quot;default.select&quot; defines text processing 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:<br>
[Name]:[mimetype]:[command line]</p></description>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>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;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;.</description>
<description><h3 id="javascript-load-when-page-completes-earliest-loaded-js-should-use-sitecss">Javascript (load when page completes, earliest loaded JS should use sitecss).</h3>
<ul>
<li>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.</li>
<li>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.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;.</li>
<li>Support 2/3-segment domains. If the length of the last 2-segments of domain is less than 7 (ex. &quot;com.pl&quot;), then it is treated as one segment.</li>
</ul>
<h3 id="css-style-and-earliest-loaded-js">CSS style and earliest loaded JS</h3>
<ul>
<li>Need to be named as &quot;[domain root].css&quot;, such as yahoo.com.css or finance.yahoo.com.css。</li>
<li>Under folder &quot;sitecss&quot;.</li>
<li>&quot;[domain root].js&quot; is loaded at the earliest time.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Apply user styles&quot;.</li>
</ul>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites not matching [domain root].css.</p></description>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>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;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.
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
<description><p>Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality.</p>
<p>The custom file handling configuration file is &quot;default.filecap&quot;, each line of it has the format as follows:<br>
[file extension]:[mimetype]:[command line]</p>
<p>The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.<br>
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.<br>
&quot;[command line]&quot; is same as the one in <a href="../cmds/index.html#">default.cmds</a>. The most often used replacements are:<br>
%u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).</p></description>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>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;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;.</description>
<description><h3 id="javascript-load-when-page-completes-earliest-loaded-js-should-use-sitecss">Javascript (load when page completes, earliest loaded JS should use sitecss).</h3>
<ul>
<li>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.</li>
<li>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.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;.</li>
<li>Support 2/3-segment domains. If the length of the last 2-segments of domain is less than 7 (ex. &quot;com.pl&quot;), then it is treated as one segment.</li>
</ul>
<h3 id="css-style-and-earliest-loaded-js">CSS style and earliest loaded JS</h3>
<ul>
<li>Need to be named as &quot;[domain root].css&quot;, such as yahoo.com.css or finance.yahoo.com.css。</li>
<li>Under folder &quot;sitecss&quot;.</li>
<li>&quot;[domain root].js&quot; is loaded at the earliest time.</li>
<li>Long press the button &quot;settings&quot;, check the option &quot;Apply user styles&quot;.</li>
</ul>
<p>If file &quot;default.css&quot; exists, the style will be applied to all sites not matching [domain root].css.</p></description>
</item>
<item>
<title>Bookmarklets</title>
<link>/en/bookmarklet/</link>
<pubDate>Fri, 24 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/bookmarklet/</guid>
<description>With uweb browser, long pressing any bookmarklet link, click &quot;Open in new tab&quot;, the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use &quot;GET&quot; method for &quot;POST&quot;
Shows all form elements
Enables all form elements
Toggle checkboxes
Check all checkboxes
Uncheck all checkboxes
Toggle all checkboxes in forms
Enable selection
Restore context menu</description>
<description><p>With <a href="../index.html#">uweb browser</a>, long pressing any bookmarklet link, click &quot;Open in new tab&quot;, the bookmarklet will be run on the last other tab.</p>
<p><a href="javascript:{let es=document.getElementsByTagName('script');let urls='';for(let i=0;i<es.length;i++){if(es[i].src)urls+=es[i].src+'<br>';}let w=window.open(''),s=w.document;s.write(urls);s.close();w.location.href='i:631:';}">List all script urls</a></p>
<p><a target="_self" href="javascript:alert(navigator.userAgent)">User agent</a><br>
<a href="javascript:(function(){var w=window.open(''),s=w.document;s.write('<html><body></body></html>');s.close();var pre=s.body.appendChild(s.createElement('pre'));pre.style.overflow='auto';pre.style.whiteSpace='pre-wrap';pre.appendChild(s.createTextNode(document.cookie))})()">Cookie</a><br>
<a href="javascript:(function(){var w=window.open(''),s=w.document;s.write('<html><body></body></html>');s.close();var pre=s.body.appendChild(s.createElement('pre'));pre.style.overflow='auto';pre.style.whiteSpace='pre-wrap';pre.appendChild(s.createTextNode(document.documentElement.innerHTML))})()">Source code</a><br>
<a href="javascript:function%20gett(w){try{var%20lm=new%20Date(w.document.lastModified);if(lm>maxd)maxd=lm;for(var%20i=0;F=w.frames[i];i++){gett(F);}}catch(e){}}var%20now=new%20Date();var%20maxd=new%20Date(document.lastModified);gett(window);if(maxd.getTime()==0||now.toUTCString()==maxd.toUTCString()){alert('Page%20is%20dynamically%20generated,%20cannot%20determine%20date.');}else{alert('Page%20was%20last%20modified%20'+maxd.toLocaleString());}" class="bookmarklet" rel="nofollow">Last modified date</a></p>
<p><a href="javascript:(function(){var script=document.createElement('script');script.src='//fastly.jsdelivr.net/npm/eruda';document.body.appendChild(script);script.onload=function(){eruda.init()}})()">Eruda: mobile console</a><br>
<a href="javascript:window.open('https://api.qrserver.com/v1/create-qr-code/?size=150x150&data='%20+%20decodeURIComponent(location.href));void(0);">QR code generation</a></p>
<p><a href="javascript:(function(){var x,i; x = document.forms; for (i = 0; i &lt; x.length; ++i) x[i].method=&quot;get&quot;; alert(&quot;Changed &quot; + x.length + &quot; forms to use the GET method. After submitting a form from this page, you should be able to bookmark the result.&quot;); })();">Use &quot;GET&quot; method for &quot;POST&quot;</a><br>
<a href="javascript:(function(){var i,f,j,e,div,label,ne; for(i=0;f=document.forms[i];++i)for(j=0;e=f[j];++j)if(e.type==&quot;hidden&quot;){ D=document; function C(t){return D.createElement(t);} function A(a,b){a.appendChild(b);} div=C(&quot;div&quot;); label=C(&quot;label&quot;); A(div, label); A(label, D.createTextNode(e.name + &quot;: &quot;)); e.parentNode.insertBefore(div, e); e.parentNode.removeChild(e); ne=C(&quot;input&quot;);/*for ie*/ ne.type=&quot;text&quot;; ne.value=e.value; A(label, ne); --j;}})()">Shows all form elements</a><br>
<a href="javascript:(function(){var x,k,f,j;x=document.forms;for (k=0;k&lt;x.length;++k){f=x[k];for(j=0;j&lt;f.length;++j){f[j].disabled=false; f[j].readOnly=false;}}})()">Enables all form elements</a></p></description>
</item>
<item>
<title>Long pressed link menu</title>
<link>/en/longclick/</link>
<pubDate>Fri, 06 Nov 2020 00:00:00 +0000</pubDate>
<guid>/en/longclick/</guid>
<description>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;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.</description>
<description><h4 id="to-run-commands">To run commands</h4>
<p>Each line of file &quot;<a href="file:///data/data/info.torapp.uweb/files/default.longclick">default.longclick</a>&quot; has the following format: (same as <a href="../cmds/index.html#">default.cmds</a>)<br>
[Name]:[mimetype]:[command line]<br>
in which [command line] can have <a href="../cmds/index.html#">&quot;%c&quot; (cookie), &quot;%u&quot; (current url), &quot;%t&quot; (title)</a> etc.</p>
<h4 id="to-visit-url-and-load-javascript-file">To visit url and load javascript file</h4>
<p>All &quot;.js&quot; files under the folder &quot;<a href="file:///data/data/info.torapp.uweb/files/longclick/">longclick</a>&quot; 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 &quot;//&quot; followed by website url that can have <a href="../cmds/index.html#">&quot;%u&quot; (current url), &quot;%t&quot; (title)</a> etc. included. In this case, the website is visited, then the javascript file is loaded on the new loaded site.</li>
<li>In the &quot;.js&quot; file, variable &quot;arguments&quot; can be used to get parameters. in which arguments[1] is the long-pressed link url, argument[2] is the text description and arguments[0] is the &quot;.js&quot; file name.</li>
</ul></description>
<description>⚠️Redirection forwards cookies with the setting option &quot;Redirect cookies&quot; enabled, so use the options with care.
Setting options: &quot;Url redirection&quot; vs. &quot;Resource redirection&quot;&quot;Url redirection&quot; redirects the main/page url only while &quot;Resource redirection&quot; is for all urls in the page.
Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot; or both &quot;Url redirection&quot; and &quot;Redirect cookies&quot;.
When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.</description>
<description><p>⚠️<span style="color:red">Redirection forwards cookies</span> with the setting option &quot;Redirect cookies&quot; enabled, so use the options with care.</p>
<h4 id="setting-options-url-redirection-vs-resource-redirection">Setting options: &quot;Url redirection&quot; vs. &quot;Resource redirection&quot;</h4>
<p>&quot;Url redirection&quot; redirects the main/page url only while &quot;Resource redirection&quot; is for all urls in the page.</p>
<h4 id="global-redirection">Global redirection</h4>
<p><ahref="i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/en/searchurl/config.html">Global redirection</a> is enabled with the setting option &quot;Resource redirection&quot; or both &quot;Url redirection&quot; and &quot;Redirect cookies&quot;.</p>
<p>When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.</p></description>
<pubDate>Mon, 10 Jan 2022 00:00:00 +0000</pubDate>
<guid>/en/searchcat/</guid>
<description>Search engine file names have &quot;.search&quot; as postfix. When they are clicked, the associated bookmark files with postfix &quot;.search.html&quot; would be appended. Ex: the associated bookmark for &quot;foo.search&quot; is &quot;foo.search.html&quot;.
Any &quot;.search&quot; file can be opened as search engine file, each line of which has one of the following formats:
[Engine name]:[url without '%s' inside]
[Engine name]:[url with '%s' as keyword]
[Engine name]:POST:[post params with '%s' as keyword]:[url]
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]</description>
<description><p>Search engine file names have &quot;.search&quot; as postfix. When they are clicked, the associated bookmark files with postfix &quot;.search.html&quot; would be appended. Ex: the associated bookmark for &quot;foo.search&quot; is &quot;foo.search.html&quot;.</p>
<p>Any &quot;.search&quot; file can be opened as search engine file, each line of which has one of the following formats:<br>
[Engine name]:[url without '%s' inside]<br>
[Engine name]:[url with '%s' as keyword]<br>
[Engine name]:POST:[post params with '%s' as keyword]:[url]<br>
[Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url]</p></description>
<pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate>
<guid>/en/textprocess/</guid>
<description>Click the following links to install menus for long pressing the button &quot;link&quot;:
note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
deepL
The file &quot;default.select&quot; defines text processing 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:</description>
<description><p>Click the following links to install menus for long pressing the button &quot;link&quot;:<br>
<a href="i:0gdefault.select::notems:/uwebA:printf i:0/js/hash2textarea.js:https://note.ms/ric#;cat%0A">note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID</a></p>
<p><a href="i:0gdefault.select::copyHtml:html/clip:%0A">Copy selected text with html format to clipboard</a></p>
<p><a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<p><a href="i:0gdefault.select::google Translate:/uweb:printf 'https://translate.google.com/?sl=auto&tl=en&op=translate&text=';cat|tr '''%2B'%0A">google Translate</a></p>
<p><a href="i:0gdefault.select::bing Translate:/uweb:printf 'https://cn.bing.com/translator/?from=&to=en&text=';cat|tr '''%2B'%0A">bing translate</a></p>
<p><a href="i:0gdefault.select::deepL:/uweb:printf https://www.deepl.com/translator-mobile#auto/en/;cat|sed 's/ /%2520/g'%0A">deepL</a></p>
<p>The file &quot;default.select&quot; defines text processing 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:<br>
[Name]:[mimetype]:[command line]</p></description>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content)Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;
Install AHD to home screen
Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;
Install &quot;English usage (en-en&amp;ja)&quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
<description><p>This page is for <a href="../index.html#">uweb browser</a>.</p>
<h4 id="a-hrefi0bhttpsfastlyjsdelivrnetghtorappinfouwebjsbintdict_loctargzinstall-tdict_local-search-with-local-indexes-and-remote-contenta"><a href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/tdict_loc.tar.gz">install tdict_local (search with local indexes and remote content)</a></h4>
<p>Click to install the following local indexes with corresponding search engines (for test only).<br>
<a href="i:0hahd.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/ahd.tidx">install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;</a><br>
<a href="i:00AHD:d:text/html:tdict_loc ahd \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/HxY9QT5cdp63ZPK/download?path=%2F&files=ahd.dict\':">Install AHD to home screen</a></p>
<p><a href="i:0henja.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/enja.tidx">Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;</a><br>
<a href="i:00enja:d:text/html:tdict_loc enja \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=enja.dict\':">Install &quot;English usage (en-en&amp;ja)&quot;</a></p>
<p><a href="i:0hsoed.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/soed.tidx">Indexes for SOED6</a><br>
<a href="i:00soed:d:text/html:tdict_loc soed \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=soed.dict\':">install SOED</a></p>
<p>The following dictionaries work better with markdown processor.<br>
<a href="i:0hmd.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/txt/mdme.html">Install markdown processor</a><br>
<a href="i:0hmwi.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/mwi.tidx">Indexes for &quot;Merriam Webster International Unabridged&quot;</a><br>
<a href="i:00mwi:d:text/html:tdict_loc mwi \'%s\'|loc2html text/html.md.html \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=mwi.dict\':">Install MWI</a></p></description>
<pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate>
<guid>/en/textprocess/</guid>
<description>Click the following links to install menus for long pressing the button &quot;link&quot;:
note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
deepL
The file &quot;default.select&quot; defines text processing 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:</description>
<description><p>Click the following links to install menus for long pressing the button &quot;link&quot;:<br>
<a href="i:0gdefault.select::notems:/uwebA:printf i:0/js/hash2textarea.js:https://note.ms/ric#;cat%0A">note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID</a></p>
<p><a href="i:0gdefault.select::copyHtml:html/clip:%0A">Copy selected text with html format to clipboard</a></p>
<p><a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<p><a href="i:0gdefault.select::google Translate:/uweb:printf 'https://translate.google.com/?sl=auto&tl=en&op=translate&text=';cat|tr '''%2B'%0A">google Translate</a></p>
<p><a href="i:0gdefault.select::bing Translate:/uweb:printf 'https://cn.bing.com/translator/?from=&to=en&text=';cat|tr '''%2B'%0A">bing translate</a></p>
<p><a href="i:0gdefault.select::deepL:/uweb:printf https://www.deepl.com/translator-mobile#auto/en/;cat|sed 's/ /%2520/g'%0A">deepL</a></p>
<p>The file &quot;default.select&quot; defines text processing 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:<br>
[Name]:[mimetype]:[command line]</p></description>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content)Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;
Install AHD to home screen
Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;
Install &quot;English usage (en-en&amp;ja)&quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
<description><p>This page is for <a href="../index.html#">uweb browser</a>.</p>
<h4 id="a-hrefi0bhttpsfastlyjsdelivrnetghtorappinfouwebjsbintdict_loctargzinstall-tdict_local-search-with-local-indexes-and-remote-contenta"><a href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/tdict_loc.tar.gz">install tdict_local (search with local indexes and remote content)</a></h4>
<p>Click to install the following local indexes with corresponding search engines (for test only).<br>
<a href="i:0hahd.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/ahd.tidx">install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;</a><br>
<a href="i:00AHD:d:text/html:tdict_loc ahd \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/HxY9QT5cdp63ZPK/download?path=%2F&files=ahd.dict\':">Install AHD to home screen</a></p>
<p><a href="i:0henja.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/enja.tidx">Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;</a><br>
<a href="i:00enja:d:text/html:tdict_loc enja \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=enja.dict\':">Install &quot;English usage (en-en&amp;ja)&quot;</a></p>
<p><a href="i:0hsoed.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/soed.tidx">Indexes for SOED6</a><br>
<a href="i:00soed:d:text/html:tdict_loc soed \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=soed.dict\':">install SOED</a></p>
<p>The following dictionaries work better with markdown processor.<br>
<a href="i:0hmd.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/txt/mdme.html">Install markdown processor</a><br>
<a href="i:0hmwi.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/mwi.tidx">Indexes for &quot;Merriam Webster International Unabridged&quot;</a><br>
<a href="i:00mwi:d:text/html:tdict_loc mwi \'%s\'|loc2html text/html.md.html \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=mwi.dict\':">Install MWI</a></p></description>
</item>
<item>
<title>Custom file handling</title>
<link>/en/filecap/</link>
<pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate>
<guid>/en/filecap/</guid>
<description>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;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.
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
<description><p>Long press the settings button, check the option &quot;custom file handling&quot; to enable the functionality.</p>
<p>The custom file handling configuration file is &quot;default.filecap&quot;, each line of it has the format as follows:<br>
[file extension]:[mimetype]:[command line]</p>
<p>The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.<br>
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.<br>
&quot;[command line]&quot; is same as the one in <a href="../cmds/index.html#">default.cmds</a>. The most often used replacements are:<br>
%u (url), %U (urlencoded url), %c (cookie), %p (site password, curl format).</p></description>
<description>This page is for uweb browser.
install tdict_local (search with local indexes and remote content)Click to install the following local indexes with corresponding search engines (for test only).
install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;
Install AHD to home screen
Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;
Install &quot;English usage (en-en&amp;ja)&quot;
Indexes for SOED6
install SOED
The following dictionaries work better with markdown processor.
Install markdown processor</description>
<description><p>This page is for <a href="../index.html#">uweb browser</a>.</p>
<h4 id="a-hrefi0bhttpsfastlyjsdelivrnetghtorappinfouwebjsbintdict_loctargzinstall-tdict_local-search-with-local-indexes-and-remote-contenta"><a href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/tdict_loc.tar.gz">install tdict_local (search with local indexes and remote content)</a></h4>
<p>Click to install the following local indexes with corresponding search engines (for test only).<br>
<a href="i:0hahd.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/ahd.tidx">install the indexes for &quot;American heritage dictionary (en-en&amp;zh with AHD/D.J./K.K. pronunciation)&quot;</a><br>
<a href="i:00AHD:d:text/html:tdict_loc ahd \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/HxY9QT5cdp63ZPK/download?path=%2F&files=ahd.dict\':">Install AHD to home screen</a></p>
<p><a href="i:0henja.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/enja.tidx">Indexes for &quot;研究社新編英和活用大辞典(English usage: en-en&amp;ja)&quot;</a><br>
<a href="i:00enja:d:text/html:tdict_loc enja \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=enja.dict\':">Install &quot;English usage (en-en&amp;ja)&quot;</a></p>
<p><a href="i:0hsoed.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/soed.tidx">Indexes for SOED6</a><br>
<a href="i:00soed:d:text/html:tdict_loc soed \'%s\'|loc2html text/plain \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=soed.dict\':">install SOED</a></p>
<p>The following dictionaries work better with markdown processor.<br>
<a href="i:0hmd.html:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/txt/mdme.html">Install markdown processor</a><br>
<a href="i:0hmwi.tidx:https://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/mwi.tidx">Indexes for &quot;Merriam Webster International Unabridged&quot;</a><br>
<a href="i:00mwi:d:text/html:tdict_loc mwi \'%s\'|loc2html text/html.md.html \'https://s1.asytech.cn/s/oaoGniEBKLnWzoj/download?path=%2F&files=mwi.dict\':">Install MWI</a></p></description>
<pubDate>Fri, 01 Dec 2023 00:00:00 +0000</pubDate>
<guid>/en/textprocess/</guid>
<description>Click the following links to install menus for long pressing the button &quot;link&quot;:
note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
deepL
The file &quot;default.select&quot; defines text processing 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:</description>
<description><p>Click the following links to install menus for long pressing the button &quot;link&quot;:<br>
<a href="i:0gdefault.select::notems:/uwebA:printf i:0/js/hash2textarea.js:https://note.ms/ric#;cat%0A">note.ms: cloud text sharing, please replace &quot;ric&quot; with your favorite ID</a></p>
<p><a href="i:0gdefault.select::copyHtml:html/clip:%0A">Copy selected text with html format to clipboard</a></p>
<p><a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<p><a href="i:0gdefault.select::google Translate:/uweb:printf 'https://translate.google.com/?sl=auto&tl=en&op=translate&text=';cat|tr '''%2B'%0A">google Translate</a></p>
<p><a href="i:0gdefault.select::bing Translate:/uweb:printf 'https://cn.bing.com/translator/?from=&to=en&text=';cat|tr '''%2B'%0A">bing translate</a></p>
<p><a href="i:0gdefault.select::deepL:/uweb:printf https://www.deepl.com/translator-mobile#auto/en/;cat|sed 's/ /%2520/g'%0A">deepL</a></p>
<p>The file &quot;default.select&quot; defines text processing 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:<br>
[Name]:[mimetype]:[command line]</p></description>
<pubDate>Tue, 07 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/search/</guid>
<description>Clicking the following links to install search engines with uweb browser. ebrowser users can change the engine name to be shorter (ex. 2 alphabets) as shortcut (click the link below and choose 'Cancel' to have a chance to modify the engine name in address bar).
AI:
felo:https://felo.ai/search?q=
nuu:https://so.nuu.su/search?q=
isou:https://isou.chat/search?q=
bagoodex:https://bagoodex.io/search?id=
andi:https://andisearch.com/?q=
thinkany:https://thinkany.so/search?q=
phind:https://phind-ai.com/search?q=
iask:https://iask.ai/?q=
devv:https://devv.ai/search?agentMode=false&amp;q=
perplexity:https://www.perplexity.ai/?q=
youChat:https://you.com/search?tbm=youchat&amp;q=
youWrite:https://you.com/search?tbm=youwrite&amp;q=
youImagine:https://you.com/search?tbm=imagine&amp;q=
you:https://you.com/search?q=
medisearch:https://medisearch.io/results/
explorer:https://explorer.globe.engineer/?q=
consensus:https://consensus.app/results/?synthesize=on&amp;q=
yoursearch:https://app.yoursearch.ai/?q=
awesomerepo:https://www.awesome-repositories.com/s/results-with-ai/
xanswer:i:0/js/s2ta.js:https://www.xanswer.com?%s
morphic:i:0/js/s2ta.js:https://www.morphic.sh?%s
lambda:i:0/js/s2ta.js:https://lambda.chat/chatui/?%s
chatGPT:i:0/js/s2ta.js:https://chat.openai.com/?%s
lepton:i:0/js/s2input.js:https://search.lepton.run/?%s</description>
<description><p>Clicking the following links to install search engines with <a href="../index.html#">uweb browser</a>. <a href="../ebrowserreadme/index.html#">ebrowser</a> users can change the engine name to be shorter (ex. 2 alphabets) as shortcut (click the link below and choose 'Cancel' to have a chance to modify the engine name in address bar).</p>
<p>AI:<br>
<a href="i:00felo:https://felo.ai/search?q=">felo:https://felo.ai/search?q=</a></p>
<p><a href="i:00nuu:https://so.nuu.su/search?q=">nuu:https://so.nuu.su/search?q=</a></p>
<p><a href="i:00isou:https://isou.chat/search?q=">isou:https://isou.chat/search?q=</a></p>
<p><a href="i:00bagoodex:https://bagoodex.io/search?id=">bagoodex:https://bagoodex.io/search?id=</a></p>
<p><a href="i:00andi:https://andisearch.com/?q=">andi:https://andisearch.com/?q=</a></p>
<p><a href="i:00thinkany:https://thinkany.so/search?q=">thinkany:https://thinkany.so/search?q=</a></p>
<p><a href="i:00phind:https://phind-ai.com/search?q=">phind:https://phind-ai.com/search?q=</a></p>
<p><a href="i:00iask:https://iask.ai/?q=">iask:https://iask.ai/?q=</a></p>
<p><a href="i:00devv:https://devv.ai/search?agentMode=false&q=">devv:https://devv.ai/search?agentMode=false&amp;q=</a></p>
<p><a href="i:00perplexity:https://www.perplexity.ai/?q=">perplexity:https://www.perplexity.ai/?q=</a></p>
<p><a href="i:00youChat:https://you.com/search?tbm=youchat&q=">youChat:https://you.com/search?tbm=youchat&amp;q=</a></p>
<p><a href="i:00youWrite:https://you.com/search?tbm=youwrite&q=">youWrite:https://you.com/search?tbm=youwrite&amp;q=</a></p>
<p><a href="i:00youImagine:https://you.com/search?tbm=imagine&q=">youImagine:https://you.com/search?tbm=imagine&amp;q=</a></p>
<p><a href="i:00you:https://you.com/search?q=">you:https://you.com/search?q=</a></p>
<p><a href="i:00medisearch:https://medisearch.io/results/">medisearch:https://medisearch.io/results/</a></p>
<p><a href="i:00explorer:https://explorer.globe.engineer/?q=">explorer:https://explorer.globe.engineer/?q=</a></p>
<p><a href="i:00consensus:https://consensus.app/results/?synthesize=on&q=">consensus:https://consensus.app/results/?synthesize=on&amp;q=</a></p>
<p><a href="i:00yoursearch:https://app.yoursearch.ai/?q=">yoursearch:https://app.yoursearch.ai/?q=</a></p>
<p><a href="i:00awesomerepo:https://www.awesome-repositories.com/s/results-with-ai/">awesomerepo:https://www.awesome-repositories.com/s/results-with-ai/</a></p>
<p><a href="i:00xanswer:i:0/js/s2ta.js:https://www.xanswer.com?%s">xanswer:i:0/js/s2ta.js:https://www.xanswer.com?%s</a></p>
<p><a href="i:00morphic:i:0/js/s2ta.js:https://www.morphic.sh?%s">morphic:i:0/js/s2ta.js:https://www.morphic.sh?%s</a></p>
<p><a href="i:00lambda:i:0/js/s2ta.js:https://lambda.chat/chatui/?%s">lambda:i:0/js/s2ta.js:https://lambda.chat/chatui/?%s</a></p>
<p><a href="i:00chatGPT:i:0/js/s2ta.js:https://chat.openai.com/?%s">chatGPT:i:0/js/s2ta.js:https://chat.openai.com/?%s</a></p>
<p><a href="i:00lepton:i:0/js/s2input.js:https://search.lepton.run/?%s">lepton:i:0/js/s2input.js:https://search.lepton.run/?%s</a></p>
<p>Recommended engines (click or append any of the following to the file &quot;home5.search&quot;):<br>
<a href="i:00Engines:i:40%s_00">Engines:i:40%s_00</a></p></description>
<description>Amazon appstore
Galaxy.Store
uweb, termux &amp; history versions
github
sourceforge
powerfolder
udrop
pagure
mcbebbs
Main features Change logs 1048: enhance file downloading. Previous versions may fail for few sites.
1047: add huge markdown file viewer
1038: support chatBot as search engine with url &quot;i:0/js/hash2textarea.js:https://XXX&quot;
1036: TV mode: reuse &quot;engine.search&quot; as live TV channel urls.
1034: click share button on homescreen to process clipboard text.
1030: Allow downloading with global redirection</description>
<description><p><a href="https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5">Amazon appstore</a></p>
<p><a href="https://galaxy.store/uweb">Galaxy.Store</a></p>
<p><a href="https://s1.asytech.cn/s/tQrgT5kBRg8Trry">uweb, termux &amp; history versions</a></p>
<p><a href="https://github.com/torappinfo/uweb/releases/tag/v1">github</a></p>
<p><a href="https://sourceforge.net/projects/uwebbrowser/files/v1/">sourceforge</a></p>
<p><a href="https://my.powerfolder.com/getlink/fi61cC6VHjK72tfufmnLAz/">powerfolder</a></p>
<p><a href="https://www.udrop.com/folder/08ba413230f465ca0901bef68e857c0b/uweb">udrop</a></p>
<p><a href="https://releases.pagure.org/uwebapk/">pagure</a></p>
<p><a href="http://pan.mcbebbs.cn/s/dJ4t8">mcbebbs</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>1048: enhance file downloading. Previous versions may fail for few sites.<br>
1047: add huge markdown file viewer<br>
1038: support chatBot as search engine with url &quot;i:0/js/hash2textarea.js:https://XXX&quot;<br>
1036: TV mode: reuse &quot;engine.search&quot; as live TV channel urls.<br>
1034: click share button on homescreen to process clipboard text.<br>
1030: Allow downloading with global redirection<br>
1026: Test automation: enable i:0 urls in scripting mode<br>
1017: crontab alarm clock and <a href="../links/index.html">links</a> as sixth field.<br>
1008: Add long screenshot mode<br>
1006: Advanced configuration: auto reload, download path<br>
1004: bookmarklet &quot;Show as html&quot; to support clipboard sites such as &quot;netcut.cn&quot;.<br>
998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
991: <a href="../redirect/index.html">global url redirection</a> support.<br>
988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<br>
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
983: support <a href="../adblock_domain/index.html">&quot;hosts&quot;</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
971: <a href="../links/index.html">multiple type profiles</a>: switch any data including website logins, user configurations orthogonally.<br>
964: site source html preprocessing before rendering with user <a href="../sitejs/index.html">site extra html</a>.<br>
961: webdav/http file upload support with <a href="../links/index.html">&quot;i:0u&quot; links</a>.<br>
955: Address bar: <a href="../acmd/index.html">&quot;:!&quot; or &quot;!&quot;</a> for command line support (.js/.sh files as executables).<br>
949: Address bar: &quot;:p [width in milliInch]x[height]&quot; to generate PDF in custom size<br>
946: Option &quot;use offline cache&quot; to support serverless local websites.</p></description>
<description>Mirrors
Check for updates
UI Search engines Home screens UI (gitee) webdav install-able menu generator Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Advanced Advanced Content AD blocking CSS styles Redirection Offline cache JS/CSS/HTML/preprocessing for domains Any urls as website Tools Bookmarklets Cron &amp; more Custom file handling Html5 application Termux Info Manual Tips Configuration files Bookmarks </description>
<description><p><a href="../mirrors/index.html#">Mirrors</a><br>
<a href="i:61ver:../../latest.html#">Check for updates</a></p>
<h4 id="ui">UI</h4>
<ul>
<li><a href="../search/index.html#">Search engines</a></li>
<li><a href="../searchurl/homescreen.html#">Home screens</a></li>
<li><a href="i:61:../searchurl/func.html">UI</a> (<a href="i:61:https://gitee.com/jamesfengcao/uweb/raw/master/en/searchurl/func.html">gitee</a>)</li>
<li><a href="../searchurl/webdav.html#">webdav install-able menu generator</a></li>
</ul>
<h4 id="customization">Customization</h4>
<ul>
<li>Long pressing menus for toolbar buttons</li>
<li><a href="../uas/index.html#">User agents</a></li>
<li><a href="../rjs/index.html#">Javascript</a></li>
<li><a href="../urls/index.html#">Url services</a></li>
<li><a href="../links/index.html#">Links</a></li>
<li><a href="../cmds/index.html#">Commands</a></li>
<li><a href="../rjs/index.html#">Remote javascript</a></li>
<li><a href="../textprocess/index.html#">Menu for selections</a></li>
<li><a href="../longclick/index.html#">Menu for long pressing hypertext</a></li>
<li><a href="../icons/index.html#">Toolbar</a></li>
<li><a href="../gesture/index.html#">Gestures</a></li>
<li><a href="../acmd/index.html#">Address bar command modes</a></li>
<li><a href="i:60config.html:../searchurl/config.html">Advanced</a></li>
</ul>
<h4 id="advanced">Advanced</h4>
<h5 id="content">Content</h5>
<ul>
<li><a href="../adblock/index.html#">AD blocking</a></li>
<li><a href="../globalcss/index.html#">CSS styles</a></li>
<li><a href="../redirect/index.html#">Redirection</a></li>
<li><a href="../offlinecache/index.html#">Offline cache</a></li>
<li><a href="../sitejs/index.html#">JS/CSS/HTML/preprocessing for domains</a></li>
<li><a href="../url2site/index.html#">Any urls as website</a></li>
</ul>
<h5 id="tools">Tools</h5>
<ul>
<li><a href="../bookmarklet/index.html#">Bookmarklets</a></li>
<li><a href="../tcron/index.html#">Cron &amp; more</a></li>
<li><a href="../filecap/index.html#">Custom file handling</a></li>
<li><a href="../html5/index.html#">Html5 application</a></li>
<li><a href="../termux/index.html#">Termux</a></li>
</ul>
<h5 id="info">Info</h5>
<ul>
<li><a href="../assets/help_en.html#">Manual</a></li>
<li><a href="../tips/index.html#">Tips</a></li>
<li><a href="../filenames/index.html#">Configuration files</a></li>
<li><a href="../bookmark/index.html#">Bookmarks</a></li>
</ul></description>
</item>
<item>
<title>Url services</title>
<link>/en/urls/</link>
<pubDate>Fri, 10 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/urls/</guid>
<description>Click the following links to install url services with uweb browser or ebrowser. Force exit and re-launch the app, then long press the &quot;image&quot; button to popup the menu.
Fullscreen video:i:5f
Redirect/edit:e:
Save2autocomplete:i:51:
Bookmark:i:52:
Note:i:53:
Save engine:i:54:
Save link:i:55:
Save to desktop:i:58
markdownview:i:0m-/js/mdview.html:
Add to media storage::001
Extract web app:i:0bsitecache/local/:
tgurl:https://tx.me/share/url?url=
tgdownload:https://tx.me/share/url?url=../../download Compatible mode:i:5d
papago:https://papago.naver.net/website?locale=en&amp;target=en&amp;url=
google translate:https://translate.google.com/translate?sl=auto&amp;tl=en&amp;u=
Source:view-source:
outline:https://www.outline.com/
2pdf:https://www.web2pdfconvert.com#
printfriendly:https://www.printfriendly.com/print/?url=
htmlview:https://htmlview.glitch.me/?
htmlpreview:https://htmlpreview.github.io/?
webarchive:https://web.archive.org/web/*/
archive:https://archive.is/?run=1&amp;url=
googlecache:http://webcache.googleusercontent.com/search?q=cache:
google by image:https://www.google.com/searchbyimage?safe=off&amp;image_url=
tinyeye:https://tineye.com/search?url=</description>
<description><p>Click the following links to install url services with <a href="../index.html#">uweb browser</a> or <a href="../ebrowserreadme/index.html#">ebrowser</a>. <b>Force exit and re-launch the app</b>, then long press the &quot;image&quot; button to popup the menu.</p>
<p><a href="i:01Fullscreen video:i:5f">Fullscreen video:i:5f</a></p>
<p><a href="i:01Redirect/edit:e:">Redirect/edit:e:</a></p>
<p><a href="i:01Save2autocomplete:i:51:">Save2autocomplete:i:51:</a></p>
<p><a href="i:01Bookmark:i:52:">Bookmark:i:52:</a></p>
<p><a href="i:01Note:i:53:">Note:i:53:</a></p>
<p><a href="i:01Save engine:i:54:">Save engine:i:54:</a></p>
<p><a href="i:01Save link:i:55:">Save link:i:55:</a></p>
<p><a href="i:01Save to desktop:i:58">Save to desktop:i:58</a></p>
<p><a href="i:01markdownview:i:0m-/js/mdview.html:">markdownview:i:0m-/js/mdview.html:</a></p>
<p><a href="i:01Add to media storage::001">Add to media storage::001</a></p>
<p><a href="i:01Extract web app:i:0bsitecache/local/:">Extract web app:i:0bsitecache/local/:</a></p>
<p><a href="i:01tgurl:https://tx.me/share/url?url=">tgurl:https://tx.me/share/url?url=</a></p>
<p><a href="i:01tgdownload:https://tx.me/share/url?url=../../download ">tgdownload:https://tx.me/share/url?url=../../download </a></p>
<p><a href="i:01Compatible mode:i:5d">Compatible mode:i:5d</a></p>
<p><a href="i:01papago:https://papago.naver.net/website?locale=en&target=en&url=">papago:https://papago.naver.net/website?locale=en&amp;target=en&amp;url=</a></p>
<p><a href="i:01google translate:https://translate.google.com/translate?sl=auto&tl=en&u=">google translate:https://translate.google.com/translate?sl=auto&amp;tl=en&amp;u=</a></p>
<p><a href="i:01Source:view-source:">Source:view-source:</a></p>
<p><a href="i:01outline:https://www.outline.com/">outline:https://www.outline.com/</a></p></description>
</item>
<item>
<title>Commands</title>
<link>/en/cmds/</link>
<pubDate>Thu, 02 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/cmds/</guid>
<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.
Configuration file &quot;default.cmds&quot; examples:
Quit &amp; clear data:q:toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' ! -name '*.cjar' -type f -delete
Clear database::rm -rf /data/data/info.torapp.uweb/databases/*
Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&gt;a.tmp;mv a.tmp default.autoc;&gt;query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc
Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache</description>
<description><p>Click the following links to install commands with <a href="../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>Configuration file &quot;default.cmds&quot; examples:</p>
<p><a href="i:03Quit & clear data:q:toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' ! -name '*.cjar' -type f -delete">Quit &amp; clear data:q:toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' ! -name '*.cjar' -type f -delete</a></p>
<p><a href="i:03Clear database::rm -rf /data/data/info.torapp.uweb/databases/*">Clear database::rm -rf /data/data/info.torapp.uweb/databases/*</a></p>
<p><a href="i:03Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i>a.tmp;mv a.tmp default.autoc;>query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc">Append query to autocomplete:uweb:cd /data/data/info.torapp.uweb/files;cat default.autoc query.log|toybox sort|toybox uniq -i&gt;a.tmp;mv a.tmp default.autoc;&gt;query.log;echo file:///data/data/info.torapp.uweb/files/default.autoc</a></p></description>
</item>
<item>
<title>Execute javascript codes</title>
<link>/en/rjs/</link>
<pubDate>Wed, 01 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/rjs/</guid>
<description>javascript for domains
Earliest loaded global javascript files locates in the subfolder &quot;css&quot; of app private folder.
Global javascript files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
Save password
Instant page
large size javascript code can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):
google translation
Eruda
Performance
Note: Bookmarklets whose names begin with &quot;!</description>
<description><p><a href="../sitejs/index.html#">javascript for domains</a><br>
<a href="../globalcss/index.html#">Earliest loaded global javascript</a> files locates in the subfolder &quot;css&quot; of app private folder.</p>
<p><b>Global javascript</b> files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:<br>
<a target="_self" href="i:0hjs/savePassword.js:../../zh/searchurl/txt/passwdsave.js">Save password</a><br>
<a target="_self" href="i:0hjs/instantPage.js:https://fastly.jsdelivr.net/npm/instant.page">Instant page</a></p>
<p><b>large size javascript code</b> can be installed to the folder &quot;bookmarklet&quot; (long pressing button &quot;js&quot; to popup menu):<br>
<a target="_self" href="i:0hbookmarklet/!googleTranslate.js:https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit:%0A{letd=document,b=d.body,v=d.createElement('div');v.id='google_translate_element';v.style='position:fixed;bottom:10px;right:10px;cursor:pointer;z-index:9999';b.insertBefore(v,b.firstChild);function googleTranslateElementInit(){new google.translate.TranslateElement({layout:google.translate.TranslateElement.InlineLayout.SIMPLE,multilanguagePage:true,pageLanguage:'auto',includedLanguages:'zh-CN,zh-TW,en,ko,ja'},'google_translate_element');}}">google translation</a></p>
<p><a target="_self" href='i:0hbookmarklet/eruda.js:https://fastly.jsdelivr.net/npm/eruda:%0Aeruda.init()'>Eruda</a><br>
<a target="_self" href="i:0hbookmarklet/performance.js:https://fastly.jsdelivr.net/gh/micmro/performance-bookmarklet/dist/performanceBookmarklet.min.js">Performance</a></p>
<p>Note: Bookmarklets whose names begin with &quot;!&quot; are allowed to load remote js on CSP (Content Security Policy) sites.</p></description>
@ -94,9 +94,11 @@ Like any popular browser, the very first word in address bar if defined in "sear
- update [filename] : update the app w/o argument, otherwise retrive the [filename] from remote. The filename could be any file on [mirror sites](https://jamesfengcao.gitlab.io/uweb/en/readme/index.html) (this repository is part of it).
- pdf [filename w/o extension] {[options](https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions)} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
- "!" address bar commands
"!xx ..." evaluates "xx.js" with the whole text as arguments[0].
- "!xx ..." evaluates "xx.js" with the whole text as arguments[0] at OS level.
- "!!xx ..." evaluates "xx.js" with the whole text as arguments[0] at browser level, which could manipulate address bar etc.
- i: internal urls, which will be consistent with [uweb](https://jamesfengcao.gitlab.io/uweb/en/links/index.html).
- "i:0/js/xxx.js:[url]" loads the "[url]" with bookmarklet "js/xxx.js".
- "i:8d[url]" fo force downloading
#### Commands in no-focus mode (this mode is similar to vi Normal mode)
Pressing "ESC" to enter no-focus mode if not sure.
@ -124,8 +126,8 @@ The other commands are defined in "mapkeys.json", which will map keys to address
- Web page: url like "javascript:" or bookmarklet command ":bml" runs in web page.
- Browser (or renderer process) :
- ":bjs" to execute the following js code at browser level.
- "!xx" evaluates "xx.js", which could manipulate address bar etc.
- OS level (or main process) : ":js" to execute the following js code with all OS APIs available.