fix downloading failure for a few sites

This commit is contained in:
James Feng Cao 2024-05-05 18:17:42 +08:00
parent f75b1ed6f2
commit 5f260a728d
8 changed files with 23 additions and 20 deletions

View file

@ -54,7 +54,9 @@
<p><a href="http://pan.mcbebbs.cn/s/dJ4t8">mcbebbs</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="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4> <h4 id="change-logs">Change logs</h4>
<p>1038: support chatBot as search engine with url &quot;i:0/js/hash2textarea.js:https://XXX&quot;<br> <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> 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> 1034: click share button on homescreen to process clipboard text.<br>
1030: Allow downloading with global redirection<br> 1030: Allow downloading with global redirection<br>
@ -89,8 +91,8 @@
</ul> </ul>
</div> </div>
<p>Last Modified: 21 March 2024<br> <p>Last Modified: 5 May 2024<br>
fix README<br> enhance file downloading<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -6,7 +6,7 @@
<description>Recent content on uweb browser: unlimited power</description> <description>Recent content on uweb browser: unlimited power</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en</language> <language>en</language>
<lastBuildDate>Tue, 30 Apr 2024 20:46:47 +0800</lastBuildDate> <lastBuildDate>Sun, 05 May 2024 18:15:11 +0800</lastBuildDate>
<atom:link href="/en/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
<title>Text selection/processing</title> <title>Text selection/processing</title>
@ -104,7 +104,7 @@
<link>/en/changelog/</link> <link>/en/changelog/</link>
<pubDate>Fri, 16 Sep 2022 00:00:00 +0000</pubDate> <pubDate>Fri, 16 Sep 2022 00:00:00 +0000</pubDate>
<guid>/en/changelog/</guid> <guid>/en/changelog/</guid>
<description>Amazon appstore&#xA;Galaxy.Store&#xA;uweb, termux &amp;amp; history versions&#xA;github&#xA;sourceforge&#xA;powerfolder&#xA;udrop&#xA;pagure&#xA;mcbebbs&#xA;Main features Change logs 1038: support chatBot as search engine with url &amp;quot;i:0/js/hash2textarea.js:https://XXX&amp;quot;&#xA;1036: TV mode: reuse &amp;quot;engine.search&amp;quot; as live TV channel urls.&#xA;1034: click share button on homescreen to process clipboard text.&#xA;1030: Allow downloading with global redirection&#xA;1026: Test automation: enable i:0 urls in scripting mode&#xA;1017: crontab alarm clock and links as sixth field.</description> <description>Amazon appstore&#xA;Galaxy.Store&#xA;uweb, termux &amp;amp; history versions&#xA;github&#xA;sourceforge&#xA;powerfolder&#xA;udrop&#xA;pagure&#xA;mcbebbs&#xA;Main features Change logs 1048: enhance file downloading. Previous versions may fail for few sites.&#xA;1047: add huge markdown file viewer&#xA;1038: support chatBot as search engine with url &amp;quot;i:0/js/hash2textarea.js:https://XXX&amp;quot;&#xA;1036: TV mode: reuse &amp;quot;engine.search&amp;quot; as live TV channel urls.&#xA;1034: click share button on homescreen to process clipboard text.&#xA;1030: Allow downloading with global redirection</description>
</item> </item>
<item> <item>
<title>Configuration</title> <title>Configuration</title>
@ -139,7 +139,7 @@
<link>/en/urls/</link> <link>/en/urls/</link>
<pubDate>Fri, 10 Jun 2022 00:00:00 +0000</pubDate> <pubDate>Fri, 10 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/urls/</guid> <guid>/en/urls/</guid>
<description>Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the &amp;quot;image&amp;quot; button to popup the menu.&#xA;Fullscreen video:i:5f&#xA;Redirect/edit:e:&#xA;Save2autocomplete:i:51:&#xA;Bookmark:i:52:&#xA;Note:i:53:&#xA;Save engine:i:54:&#xA;Save link:i:55:&#xA;Save to desktop:i:58&#xA;Add to media storage::001&#xA;Extract web app:i:0bsitecache/local/:&#xA;tgurl:https://tx.me/share/url?url=&#xA;tgdownload:https://tx.me/share/url?url=../download Compatible mode:i:5d&#xA;papago:https://papago.naver.net/website?locale=en&amp;amp;target=en&amp;amp;url=&#xA;google translate:https://translate.google.com/translate?sl=auto&amp;amp;tl=en&amp;amp;u=&#xA;Source:view-source:&#xA;outline:https://www.outline.com/&#xA;2pdf:https://www.web2pdfconvert.com#&#xA;printfriendly:https://www.printfriendly.com/print/?url=&#xA;htmlview:https://htmlview.glitch.me/?&#xA;htmlpreview:https://htmlpreview.github.io/?&#xA;webarchive:https://web.archive.org/web/*/&#xA;archive:https://archive.is/?run=1&amp;amp;url=&#xA;googlecache:http://webcache.googleusercontent.com/search?q=cache:&#xA;google by image:https://www.google.com/searchbyimage?safe=off&amp;amp;image_url=&#xA;tinyeye:https://tineye.com/search?url=&#xA;Yandex by image:https://yandex.com/images/search?family=yes&amp;amp;rpt=imageview&amp;amp;url=</description> <description>Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the &amp;quot;image&amp;quot; button to popup the menu.&#xA;Fullscreen video:i:5f&#xA;Redirect/edit:e:&#xA;Save2autocomplete:i:51:&#xA;Bookmark:i:52:&#xA;Note:i:53:&#xA;Save engine:i:54:&#xA;Save link:i:55:&#xA;Save to desktop:i:58&#xA;markdownview:i:0m-/js/mdview.html:&#xA;Add to media storage::001&#xA;Extract web app:i:0bsitecache/local/:&#xA;tgurl:https://tx.me/share/url?url=&#xA;tgdownload:https://tx.me/share/url?url=../download Compatible mode:i:5d&#xA;papago:https://papago.naver.net/website?locale=en&amp;amp;target=en&amp;amp;url=&#xA;google translate:https://translate.google.com/translate?sl=auto&amp;amp;tl=en&amp;amp;u=&#xA;Source:view-source:&#xA;outline:https://www.outline.com/&#xA;2pdf:https://www.web2pdfconvert.com#&#xA;printfriendly:https://www.printfriendly.com/print/?url=&#xA;htmlview:https://htmlview.glitch.me/?&#xA;htmlpreview:https://htmlpreview.github.io/?&#xA;webarchive:https://web.archive.org/web/*/&#xA;archive:https://archive.is/?run=1&amp;amp;url=&#xA;googlecache:http://webcache.googleusercontent.com/search?q=cache:&#xA;google by image:https://www.google.com/searchbyimage?safe=off&amp;amp;image_url=&#xA;tinyeye:https://tineye.com/search?url=&#xA;Yandex by image:https://yandex.</description>
</item> </item>
<item> <item>
<title>Commands</title> <title>Commands</title>

View file

@ -71,7 +71,7 @@
/> />
</url><url> </url><url>
<loc>/en/</loc> <loc>/en/</loc>
<lastmod>2024-04-30T20:46:47+08:00</lastmod> <lastmod>2024-05-05T18:15:11+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -181,7 +181,7 @@
/> />
</url><url> </url><url>
<loc>/en/topposts/</loc> <loc>/en/topposts/</loc>
<lastmod>2024-04-18T15:10:11+08:00</lastmod> <lastmod>2024-05-05T18:15:11+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"
@ -278,7 +278,7 @@
/> />
</url><url> </url><url>
<loc>/en/changelog/</loc> <loc>/en/changelog/</loc>
<lastmod>2024-03-21T17:54:44+08:00</lastmod> <lastmod>2024-05-05T18:15:11+08:00</lastmod>
</url><url> </url><url>
<loc>/en/sitemap/</loc> <loc>/en/sitemap/</loc>
<lastmod>2024-04-07T08:34:20+08:00</lastmod> <lastmod>2024-04-07T08:34:20+08:00</lastmod>
@ -333,7 +333,7 @@
/> />
</url><url> </url><url>
<loc>/en/urls/</loc> <loc>/en/urls/</loc>
<lastmod>2024-04-02T11:35:09+08:00</lastmod> <lastmod>2024-05-03T16:48:45+08:00</lastmod>
<xhtml:link <xhtml:link
rel="alternate" rel="alternate"
hreflang="zh" hreflang="zh"

View file

@ -6,7 +6,7 @@
<description>Recent content in Topposts on uweb browser: unlimited power</description> <description>Recent content in Topposts on uweb browser: unlimited power</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en</language> <language>en</language>
<lastBuildDate>Thu, 18 Apr 2024 15:10:11 +0800</lastBuildDate> <lastBuildDate>Sun, 05 May 2024 18:15:11 +0800</lastBuildDate>
<atom:link href="/en/topposts/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="/en/topposts/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
<title>Search engines</title> <title>Search engines</title>
@ -20,7 +20,7 @@
<link>/en/changelog/</link> <link>/en/changelog/</link>
<pubDate>Fri, 16 Sep 2022 00:00:00 +0000</pubDate> <pubDate>Fri, 16 Sep 2022 00:00:00 +0000</pubDate>
<guid>/en/changelog/</guid> <guid>/en/changelog/</guid>
<description>Amazon appstore&#xA;Galaxy.Store&#xA;uweb, termux &amp;amp; history versions&#xA;github&#xA;sourceforge&#xA;powerfolder&#xA;udrop&#xA;pagure&#xA;mcbebbs&#xA;Main features Change logs 1038: support chatBot as search engine with url &amp;quot;i:0/js/hash2textarea.js:https://XXX&amp;quot;&#xA;1036: TV mode: reuse &amp;quot;engine.search&amp;quot; as live TV channel urls.&#xA;1034: click share button on homescreen to process clipboard text.&#xA;1030: Allow downloading with global redirection&#xA;1026: Test automation: enable i:0 urls in scripting mode&#xA;1017: crontab alarm clock and links as sixth field.</description> <description>Amazon appstore&#xA;Galaxy.Store&#xA;uweb, termux &amp;amp; history versions&#xA;github&#xA;sourceforge&#xA;powerfolder&#xA;udrop&#xA;pagure&#xA;mcbebbs&#xA;Main features Change logs 1048: enhance file downloading. Previous versions may fail for few sites.&#xA;1047: add huge markdown file viewer&#xA;1038: support chatBot as search engine with url &amp;quot;i:0/js/hash2textarea.js:https://XXX&amp;quot;&#xA;1036: TV mode: reuse &amp;quot;engine.search&amp;quot; as live TV channel urls.&#xA;1034: click share button on homescreen to process clipboard text.&#xA;1030: Allow downloading with global redirection</description>
</item> </item>
<item> <item>
<title>Configuration</title> <title>Configuration</title>
@ -34,7 +34,7 @@
<link>/en/urls/</link> <link>/en/urls/</link>
<pubDate>Fri, 10 Jun 2022 00:00:00 +0000</pubDate> <pubDate>Fri, 10 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/urls/</guid> <guid>/en/urls/</guid>
<description>Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the &amp;quot;image&amp;quot; button to popup the menu.&#xA;Fullscreen video:i:5f&#xA;Redirect/edit:e:&#xA;Save2autocomplete:i:51:&#xA;Bookmark:i:52:&#xA;Note:i:53:&#xA;Save engine:i:54:&#xA;Save link:i:55:&#xA;Save to desktop:i:58&#xA;Add to media storage::001&#xA;Extract web app:i:0bsitecache/local/:&#xA;tgurl:https://tx.me/share/url?url=&#xA;tgdownload:https://tx.me/share/url?url=../../download Compatible mode:i:5d&#xA;papago:https://papago.naver.net/website?locale=en&amp;amp;target=en&amp;amp;url=&#xA;google translate:https://translate.google.com/translate?sl=auto&amp;amp;tl=en&amp;amp;u=&#xA;Source:view-source:&#xA;outline:https://www.outline.com/&#xA;2pdf:https://www.web2pdfconvert.com#&#xA;printfriendly:https://www.printfriendly.com/print/?url=&#xA;htmlview:https://htmlview.glitch.me/?&#xA;htmlpreview:https://htmlpreview.github.io/?&#xA;webarchive:https://web.archive.org/web/*/&#xA;archive:https://archive.is/?run=1&amp;amp;url=&#xA;googlecache:http://webcache.googleusercontent.com/search?q=cache:&#xA;google by image:https://www.google.com/searchbyimage?safe=off&amp;amp;image_url=&#xA;tinyeye:https://tineye.com/search?url=&#xA;Yandex by image:https://yandex.com/images/search?family=yes&amp;amp;rpt=imageview&amp;amp;url=</description> <description>Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the &amp;quot;image&amp;quot; button to popup the menu.&#xA;Fullscreen video:i:5f&#xA;Redirect/edit:e:&#xA;Save2autocomplete:i:51:&#xA;Bookmark:i:52:&#xA;Note:i:53:&#xA;Save engine:i:54:&#xA;Save link:i:55:&#xA;Save to desktop:i:58&#xA;markdownview:i:0m-/js/mdview.html:&#xA;Add to media storage::001&#xA;Extract web app:i:0bsitecache/local/:&#xA;tgurl:https://tx.me/share/url?url=&#xA;tgdownload:https://tx.me/share/url?url=../../download Compatible mode:i:5d&#xA;papago:https://papago.naver.net/website?locale=en&amp;amp;target=en&amp;amp;url=&#xA;google translate:https://translate.google.com/translate?sl=auto&amp;amp;tl=en&amp;amp;u=&#xA;Source:view-source:&#xA;outline:https://www.outline.com/&#xA;2pdf:https://www.web2pdfconvert.com#&#xA;printfriendly:https://www.printfriendly.com/print/?url=&#xA;htmlview:https://htmlview.glitch.me/?&#xA;htmlpreview:https://htmlpreview.github.io/?&#xA;webarchive:https://web.archive.org/web/*/&#xA;archive:https://archive.is/?run=1&amp;amp;url=&#xA;googlecache:http://webcache.googleusercontent.com/search?q=cache:&#xA;google by image:https://www.google.com/searchbyimage?safe=off&amp;amp;image_url=&#xA;tinyeye:https://tineye.com/search?url=&#xA;Yandex by image:https://yandex.</description>
</item> </item>
<item> <item>
<title>Commands</title> <title>Commands</title>

View file

@ -56,6 +56,7 @@
<p><a href="i:01Save engine:i:54:">Save engine:i:54:</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 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: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: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: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:01tgurl:https://tx.me/share/url?url=">tgurl:https://tx.me/share/url?url=</a></p>
@ -107,8 +108,8 @@
<p><a href="i:01djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=">djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=</a></p> <p><a href="i:01djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=">djvu:file:///data/user/0/info.torapp.uweb/files/app/djvu.html?url=</a></p>
</div> </div>
<p>Last Modified: 2 April 2024<br> <p>Last Modified: 3 May 2024<br>
add ending # to /index.html<br> enhance execCmd_user() with internal links<br>
<pre></pre> <pre></pre>
</p> </p>

View file

@ -1,6 +1,6 @@
<script> <script>
let verCode = %1%; let verCode = %1%;
let latestV = 1045; let latestV = 1048;
if( verCode>=latestV) alert("Already up to date!"); if( verCode>=latestV) alert("Already up to date!");
else else
location.href = "https://s1.asytech.cn/s/tQrgT5kBRg8Trry/download?path=%2F&files=uweb"+ location.href = "https://s1.asytech.cn/s/tQrgT5kBRg8Trry/download?path=%2F&files=uweb"+

View file

@ -4,7 +4,7 @@
<sitemap> <sitemap>
<loc>/en/sitemap.xml</loc> <loc>/en/sitemap.xml</loc>
<lastmod>2024-04-30T20:46:47+08:00</lastmod> <lastmod>2024-05-05T18:15:11+08:00</lastmod>
</sitemap> </sitemap>

View file

@ -1,6 +1,6 @@
<head> <head>
<base> <base>
<script src="https://fastly.jsdelivr.net/npm/marked@3.0.7/marked.min.js"></script> <script src="https://fastly.jsdelivr.net/npm/marked/marked.min.js"></script>
<script> <script>
function absFile(url) { function absFile(url) {
this.name=url; this.name=url;
@ -27,7 +27,7 @@
var blocksize = 20480; var blocksize = 20480;
function loadSlice(){ function loadSlice(){
function render(u8array){ function render(u8array){
document.body.innerHTML = marked(new TextDecoder().decode(u8array)); document.body.innerHTML = marked.parse(new TextDecoder().decode(u8array));
scroll(0,0); scroll(0,0);
} }
function setPageUrl(pageurl){ function setPageUrl(pageurl){
@ -91,9 +91,9 @@
file = new absFile(url); file = new absFile(url);
document.getElementsByTagName('base')[0].href=url; document.getElementsByTagName('base')[0].href=url;
} }
loadSlice();
window.addEventListener('hashchange',loadSlice); window.addEventListener('hashchange',loadSlice);
</script> </script>
</head> </head>
<body> <body>
<script>loadSlice();</script>
</body> </body>