mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
address bar: :! command line doc
This commit is contained in:
parent
cd87cc793c
commit
db629abf0f
9 changed files with 83 additions and 76 deletions
|
@ -98,17 +98,19 @@ Socks proxy</p>
|
|||
</ul>
|
||||
<h4 id="commands">commands</h4>
|
||||
<ul>
|
||||
<li>:![command line]<br>
|
||||
The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s youtube keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists); ":! youtube keyword" would invoke the file ".js" or ".sh" as executable.</li>
|
||||
</ul>
|
||||
<li>
|
||||
<p>:![command line]<br>
|
||||
The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s g keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists, here "g" as google search engine); ":! g keyword" would invoke the file ".js" or ".sh" as executable.</p>
|
||||
<p>For regular (non-js) executables, the standard output of the command line will be treated as lines of web urls.</p>
|
||||
<p><a href="i:0h.sh:../searchurl/txt/web.sh">Click to install the example file ".sh"</a><br>
|
||||
<a href="i:0hs.js:../searchurl/txt/web.js">Click to install the example file "s.js"</a></p>
|
||||
<ul>
|
||||
<li>:p [width in milliInch]x[height] [top margin]:[right margin]:[bottom margin]:[left margin]<br>
|
||||
</li>
|
||||
<li>
|
||||
<p>:p [width in milliInch]x[height] [top margin]:[right margin]:[bottom margin]:[left margin]<br>
|
||||
Generate/Print PDF file in the "/sdcard/Download" folder, all units are milliinch.<br>
|
||||
Ex. ":p x" or ":px" for screen width and infinite height (as long vector screenshot).<br>
|
||||
":p x[height]" or ":px[height]" for screen width.</li>
|
||||
":p x[height]" or ":px[height]" for screen width.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 id="i-internal-links">"i:" internal links:</h3>
|
||||
<ul>
|
||||
|
@ -119,22 +121,13 @@ Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends wit
|
|||
<li>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|c[cssFlag]]:[url]<br>
|
||||
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</p>
|
||||
</li>
|
||||
<li></li>
|
||||
</ul>
|
||||
<p>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>[?postfix]: the real visited url is "[url]+[?postfix]".</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</p>
|
||||
<li>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</li>
|
||||
<li>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</li>
|
||||
<li>[?postfix]: the real visited url is "[url]+[?postfix]".</li>
|
||||
<li>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</li>
|
||||
<li>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:15[string]<br>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue