add ddns support

This commit is contained in:
James Feng Cao 2022-11-23 13:52:03 +08:00
parent 71fb1c09eb
commit 79f9980fb5
7 changed files with 25 additions and 7 deletions

View file

@ -67,7 +67,8 @@ box cloud:POST:type=webdav&url=https://dav.box.com/dav&username=xxx&
<a href="i:0hbookmark/novel.html:https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/bookmark/novel.html">&quot;novel.html&quot;: auto reader's mode</a></p> <a href="i:0hbookmark/novel.html:https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/bookmark/novel.html">&quot;novel.html&quot;: auto reader's mode</a></p>
<h3 id="science">Science</h3> <h3 id="science">Science</h3>
<h4 id="physics">Physics</h4> <h4 id="physics">Physics</h4>
<p><a href="https://www.feynmanlectures.caltech.edu/">Feynman lectures</a></p> <p><a href="https://www.feynmanlectures.caltech.edu/">Feynman lectures</a><br>
<a href="https://webspace.science.uu.nl/~gadda001/goodtheorist/index.html">goodtheorist</a></p>
<h4 id="chemistry">Chemistry</h4> <h4 id="chemistry">Chemistry</h4>
<p><a href="https://www.chemspider.com">chemspider</a><br> <p><a href="https://www.chemspider.com">chemspider</a><br>
<a href="http://bl.ocks.org/chemplexity/raw/180e960a6d9e68adf28429dd16f05fa0/">molecule SMILES</a><br> <a href="http://bl.ocks.org/chemplexity/raw/180e960a6d9e68adf28429dd16f05fa0/">molecule SMILES</a><br>

View file

@ -49,6 +49,7 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p> <p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<p><a href="https://sourceforge.net/projects/uwebbrowser/files/v1/">sourceforge</a></p> <p><a href="https://sourceforge.net/projects/uwebbrowser/files/v1/">sourceforge</a></p>
<h4 id="change-logs">Change logs</h4> <h4 id="change-logs">Change logs</h4>
<p>945: commands to support evaluation of generated js code.</p>
<p>943: Multiple home screens support .mht (offline webpage), .search &amp; .html local files.</p> <p>943: Multiple home screens support .mht (offline webpage), .search &amp; .html local files.</p>
<p>940: <a href="../url2site/index.html">Any url as website</a> with local html processing (<a href="../links/index.html">&quot;i:0m/..../xxx.html:url&quot;</a>)</p> <p>940: <a href="../url2site/index.html">Any url as website</a> with local html processing (<a href="../links/index.html">&quot;i:0m/..../xxx.html:url&quot;</a>)</p>
<p>935:</p> <p>935:</p>

View file

@ -66,6 +66,9 @@
<p><a href="i:03Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p> <p><a href="i:03Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
<p><a href="i:03Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p> <p><a href="i:03Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500">Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500</a></p>
<p><a href="i:03Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500">Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500</a></p> <p><a href="i:03Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500">Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500</a></p>
<p>Modify with your own info:<br>
<a href="i:03dynv6_sim1:/uweb:print 'http://dynv6.com/api/update?hostname=&token=&ipv6=';ip addr|grep 'inet6 [^f]'|grep global|grep -v temporary|head -n 1|sed 's/^.*inet6 //'|sed 's/\/.*$//'">Refresh dynv6 ddns for sim card 1</a></p>
<p><a href="i:03dynv6_wifi:/uweb:print 'http://dynv6.com/api/update?hostname=&token=&ipv6=';ip addr|grep 'inet6 [^f]'|grep global|grep -v temporary|tail -n 1|sed 's/^.*inet6 //'|sed 's/\/.*$//'">Refresh dynv6 ddns for wifi</a></p>
<p>Need root permissions:</p> <p>Need root permissions:</p>
<p>Need termux:<br> <p>Need termux:<br>
<a href="i:03VPN::am start -a android.net.vpn.SETTINGS">VPN::am start -a android.net.vpn.SETTINGS</a></p> <a href="i:03VPN::am start -a android.net.vpn.SETTINGS">VPN::am start -a android.net.vpn.SETTINGS</a></p>
@ -96,7 +99,7 @@ Clipboard2QR needs libqrencode.</p>
<p>[command line] can have &quot;%c&quot; (cookie), &quot;%s&quot; (address bar text), &quot;%u&quot; (url), &quot;%t&quot; (title).<br> <p>[command line] can have &quot;%c&quot; (cookie), &quot;%s&quot; (address bar text), &quot;%u&quot; (url), &quot;%t&quot; (title).<br>
[mimetype] have the following formats:</p> [mimetype] have the following formats:</p>
<ul> <ul>
<li>regular mimetype such as &quot;text/html&quot; to indicate the content type of the command output.</li> <li>regular mimetype such as &quot;text/html&quot; to indicate the content type of the command output. Ex. &quot;text/javascript&quot; makes browser to evaluate the js code.</li>
<li>&quot;clip/clip&quot; to indicate &quot;clipboard&quot; as input and the command output is copied to clipboard.</li> <li>&quot;clip/clip&quot; to indicate &quot;clipboard&quot; as input and the command output is copied to clipboard.</li>
<li>&quot;/clip&quot;: copy the command output to clipboard.</li> <li>&quot;/clip&quot;: copy the command output to clipboard.</li>
<li>&quot;clip/text/html&quot; : clipboard as input, and the command output is processed as &quot;text/html&quot;.</li> <li>&quot;clip/text/html&quot; : clipboard as input, and the command output is processed as &quot;text/html&quot;.</li>

View file

@ -59,11 +59,12 @@ uweb, termux &amp;amp; history versions
github github
pagure pagure
sourceforge sourceforge
Change logs 943: Multiple home screens support .mht (offline webpage), .search &amp;amp; .html local files. Change logs 945: commands to support evaluation of generated js code.
943: Multiple home screens support .mht (offline webpage), .search &amp;amp; .html local files.
940: Any url as website with local html processing (&amp;quot;i:0m/..../xxx.html:url&amp;quot;) 940: Any url as website with local html processing (&amp;quot;i:0m/..../xxx.html:url&amp;quot;)
935: 935:
Pipe support: command line output to uweb tabs. 934: Pipe support: command line output to uweb tabs. 934:
Serverless local sites: PWA-kind web extension (chrome .crx &amp;amp; firefox .xpi) support. PWAs and web extensions to be used as search engines, ex. kiwix zim as search engines.</description> Serverless local sites: PWA-kind web extension (chrome .crx &amp;amp; firefox .xpi) support. PWAs and web extensions to be used as search engines, ex.</description>
</item> </item>
<item> <item>

View file

@ -49,7 +49,15 @@
</ul> </ul>
<p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p> <p><a href="i:01Extract webapp:i:0bsitecache/local/:">Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;</a>: support web extensions (.crx for chrome &amp; .xpi for firefox).</p>
<p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, '?' , '&amp;' , '='. exactly as url]&quot; are loaded first before reaching the network.</p> <p>Offline resources locate in the folder &quot;sitecache&quot;. With the option &quot;use offline resources&quot; enabled, the corresponding files in &quot;sitecache/[domain name]/[full path including filename, '?' , '&amp;' , '='. exactly as url]&quot; are loaded first before reaching the network.</p>
<p>PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .xpi for firefox) are just packaged websites. Ex. the &quot;kiwix&quot; extension can be extracted to the folder &quot;sitecache/local/kiwix&quot;, then the kiwix extension can be accessed via url &quot;https://local/kiwix/www/index.html&quot; in the browser. Note: the folder name &quot;local&quot; is used as the domain name in the url.</p> <p>PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome &amp; .xpi for firefox) are just packaged websites. Ex. the &quot;kiwix&quot; extension can be extracted to the folder &quot;sitecache/local/kiwix&quot;<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>, then the kiwix extension can be accessed via url &quot;https://local/kiwix/www/index.html&quot; in the browser.</p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p>the folder name &quot;local&quot; is used as the domain name in the url.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
</div> </div>

View file

@ -17,11 +17,12 @@ uweb, termux &amp;amp; history versions
github github
pagure pagure
sourceforge sourceforge
Change logs 943: Multiple home screens support .mht (offline webpage), .search &amp;amp; .html local files. Change logs 945: commands to support evaluation of generated js code.
943: Multiple home screens support .mht (offline webpage), .search &amp;amp; .html local files.
940: Any url as website with local html processing (&amp;quot;i:0m/..../xxx.html:url&amp;quot;) 940: Any url as website with local html processing (&amp;quot;i:0m/..../xxx.html:url&amp;quot;)
935: 935:
Pipe support: command line output to uweb tabs. 934: Pipe support: command line output to uweb tabs. 934:
Serverless local sites: PWA-kind web extension (chrome .crx &amp;amp; firefox .xpi) support. PWAs and web extensions to be used as search engines, ex. kiwix zim as search engines.</description> Serverless local sites: PWA-kind web extension (chrome .crx &amp;amp; firefox .xpi) support. PWAs and web extensions to be used as search engines, ex.</description>
</item> </item>
<item> <item>

View file

@ -19,6 +19,9 @@
//return await resp.text(); //return await resp.text();
} }
} }
marked.setOptions({
gfm: true,
});
var file; var file;
var blocksize = 20480; var blocksize = 20480;