mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
Enhance any links as website: regex replacement
This commit is contained in:
parent
4212feb617
commit
1399e83305
1 changed files with 11 additions and 7 deletions
|
@ -98,20 +98,20 @@ Socks proxy</p>
|
||||||
</ul>
|
</ul>
|
||||||
<h3 id="i-internal-links">"i:" internal links:</h3>
|
<h3 id="i-internal-links">"i:" internal links:</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>i:0m[bookmarklet index|prefix?postfix|/regex/replacement|c[cssFlag]]:[url]<br>
|
<li>i:0m[bookmarklet index|prefix|?postfix|c[cssFlag]]:[url]<br>
|
||||||
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</li>
|
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</li>
|
||||||
<li></li>
|
<li></li>
|
||||||
</ul>
|
</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>
|
<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>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>/regex/replacement: for [url], replace all matched regular expression "regex" with "replacement".</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</p>
|
<p>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>All other cases will be treated as [prefix?postfix], the real visited url is "[prefix]+[url]+[?postfix]".</p>
|
<p>[?postfix]: the real visited url is "[url]+[?postfix]".</p>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<p>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>i:15[string]<br>
|
<p>i:15[string]<br>
|
||||||
|
@ -212,8 +212,12 @@ play video fullscreen. if videourl is empty, then make following requestFullscre
|
||||||
play video in external player</p>
|
play video in external player</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>i:5h[url]<br>
|
<p>i:5h[?postfix:|/regex/replacement:][url]<br>
|
||||||
force html for url</p>
|
force html for [url] visiting</p>
|
||||||
|
<ul>
|
||||||
|
<li>[?postfix:] : the real url visited is "[url]+[?postfix]"</li>
|
||||||
|
<li>[/regex/replacement:]: execute regular expression replacement for the "[url]", then visit the resulting url.</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>i:5i[url]<br>
|
<p>i:5i[url]<br>
|
||||||
|
|
Loading…
Reference in a new issue