The following link can be used to read [remote url] as huge text file, it shows only the first page. Pressing "->" on the bottom tool bar for next page:
i:0m/js/view.html:[remote url]#p=1
Multiple conversions could be appended to the html file. Ex:
i:0m/js/view.html#/js/2lnk.js:[remote url]#p=1
where "/js/2lnk.js" converts urls in the remote text file to clickable links.
Any html/js file could be referred with its full path, such as "/sdcard/.../xx.js" as long as uweb has read permission.
"%1%", "%2%", ... in the above html file will be replaced by the function body of the first, second, ... js file respectively. The js files themselves are regular js code ends with "()", no end of line (\n) appended. A sample js file looks like "((...args)=>{})()", so the code itself can also be run independently as bookmarklet either without or with extra argument.
This page is for uweb browser.
Click to install the following html5 apps:
Huge markdown file viewer
Huge markdown+katex file viewer (Tex formulas)
Huge markdeep file viewer (markdown, latex, diagram,graphviz etc.)
plyr video player
dplayer video player
pdf viewer
epub reader (author:llili)
djvu viewer
The corresponding menus can be installed with url services.
The following mentioned subfolders locate in the configuration folder.
The following html5 applications are allowed to read local files referred by "https://local/sdcard/..." where the "/sdcard/.." part is the full path of the file. The below applications can auto choose any files as file objects.
All files under the subfolder "app" can be automatically choosed as file objects by any web page.
Local files (including binary files) can be processed by appending "?app=[html5 app url]" to the file urls. Ex. "file:///..../xx.md?app=https://...../app.html" loads "app.html" first, then "app.html" processes the local file.
With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed; The third approach allows easy access of other external resources (ex. local media).
Click to configure default.filecap to open local files, and to open remote files with the option "custom file handling":
use pdf.js,djvu.js,epub.js, huge markdown viewer for local files
url examples are as follows:
Ex. "#offset=10000&500" will retrieve 500 bytes from offset 10000. Click the right arrow button to next page in all above file viewers.
By default, the subfolder "app" is created by clicking to install any of above html5 applications.
To make file management easier, users can symbolic link the subfolder "app" to any other locations as long as it is readable.
One way to configure "app" subfolder is as follows:
Note: the following two mdict.html files are different.
i:5ifile:///....../xxx.mdx,xxx.mdd?app=https://cdn.jsdelivr.net/gh/torappinfo/uweb/en/searchurl/mdict/mdict.html#word=%s
in which "/.../xxx.mdx,xxx.mdd" is the full path for the mdict dictionary files.
i:5ihttps://uwebzh.netlify.app/zh/searchurl/txt/mdict.html?file=mdict/xxx.mdx,mdict/xxx.mdd#word=%s
In the above mdict search engine string, the dictionary files (mdx, mdd) must locate in the "app" subfolder under the configuration folder. In above example, the files "xxx.mdx" and "xxx.mdd" locate in the folder ".../app/mdict".
To make life easier, users can link the "app" subfolder to any public accessible folder.
Use the mdx scanning bookmark to add mdict engines automatically, then cold start uweb browser to take effect.
Last Modified: 26 February 2025
html as data cruncher