<p>Long pressing the bookmark button in <ahref="../index.html">uweb browser</a> will popup menus defined in file "default.link". The file format is as follows:<br>
<p>in which space and later parts are optional. url and later parts support <ahref="../cmd/index.html">"%u","%s" etc.</a>. The javascript code will be executed after url is fully loaded.</p>
<p>url supports all standard scheme (http(s):,javascript: etc.) and uweb internal schemes ( ':' as second character in the url ) and special links that begins with ':'.</p>
<p>uweb browser will handle local file urls (file:///) specially for some file types:</p>
<ul>
<li>.js file(same as <ahref="../longclick/index.html">long pressing hypertext to execute js file</a>): If the ".js" file begins with "//", then uweb browser will load the site following "//" and execute the following js code.</li>
</ul>
<p><ahref="../gesture/index.html">default.gesture</a> and default.button have the exactly same file format. ".gesture" files define gestures while ".button" define bottom toolbar button pressing actions from the last button to the first.</p>
<p>proxy config:<br>
httpproxy::010[proxy host]:[port]<br>
socks5::011[socks host]:[port]<br>
noproxy::010:</p>
<h3id="special-links-beginning-with-">special links beginning with ':'</h3>
<ul>
<li>
<p>:0000<br>
Extend cookie expiracy to 70 years, may be denied by server.</p>
</li>
<li>
<p>:0003<br>
Toggle fullscreen mode</p>
</li>
<li>
<p>:0004<br>
Rotate the screen</p>
</li>
<li>
<p>:001[fileurl]<br>
Scan the fileurl and add it to media storage</p>
</li>
<li>
<p>:002[url]<br>
Show the secure cookie</p>
</li>
<li>
<p>:010[proxy host]:[port]<br>
Config http proxy, ":010:" to disable any proxy.</p>
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>
Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends with "/", then put unzipped file under the folder "[path]/[file name stem]" (for zipped files only, not for tar/tgz).</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>Since <ahref="../rjs/index.html">activated scripts</a> use internal mechanism of "i:0m" urls, the script itself cannot have 'H', '?' or '/' as its very first character.</li>
<range>: the format is same as related http header, such as "500-1000,-300".<br>
<extendedmimetype>: standard mimetype or mimetype followed by ".<filename>". In the later case, the file in uweb configuration folder will be appended to the fetched data.</p>