<lastBuildDate>Sat, 28 Oct 2023 00:00:00 +0000</lastBuildDate><atom:linkhref="/en/index.xml"rel="self"type="application/rss+xml"/>
<item>
<title>Links</title>
<link>/en/links/</link>
<pubDate>Sat, 28 Oct 2023 00:00:00 +0000</pubDate>
<guid>/en/links/</guid>
<description>Click the following links to install menus popped by long pressing the bookmark button (with star as icon):
Capture long screenshot (need long screenshot mode)
Select All:CTRL-A/undo:CTRL-Z/Redo:CTRL-Y
Extend site cookies to 10 years
Clear site cookies
VPN
Switch configuration
Wait for network msg
Certificate info
Backup to box.com
Restore from box.com
upload to box.com
More webdav link menu items
Web fullscreen
Long pressing the bookmark button in uweb browser will popup menus defined in file &quot;default.</description>
</item>
<item>
<title>cron</title>
<link>/en/tcron/</link>
<pubDate>Wed, 25 Oct 2023 00:00:00 +0000</pubDate>
<guid>/en/tcron/</guid>
<description>crontab (with enhanced semantics) For performance, the file &quot;crontab&quot; uses single space as field separator. Letters are not suppored currently. So use &quot;1&quot; for &quot;January&quot; and 2 for &quot;Tuesday&quot; etc.
The sixth field in crontab file could be in the format of internal links. Specifically, &quot;c:&quot; to execute the following commands in termux and &quot;!&quot; to execute commands directly.
To make crontab more powerful, we changed the semantics as follows:</description>
<description>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, the url path part]&quot; are loaded first before reaching the network.
bingChat UI Install bingChat UI ai.html for censored area (bingChat UI)
Install bingWrite UI write.html for censored area (bingWrite)
Serverless local sites Click to install url service that extracts web apps to the folder &quot;sitecache/local/&quot;: support web extensions (.</description>
<description>⚠️Redirection forwards cookies with the setting option &quot;Redirect cookies&quot; enabled, so use the options with care.
Setting options: &quot;Url redirection&quot; vs. &quot;Resource redirection&quot; &quot;Url redirection&quot; redirects the main/page url only while &quot;Resource redirection&quot; is for all urls in the page.
Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot; or both &quot;Url redirection&quot; and &quot;Redirect cookies&quot;.
When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.</description>
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect with the setting option &quot;use hosts&quot;.
Note: "Engines" needs file "engine.search",whose format is same as "home.search" except that the keyword part of url must be denoted with "</description>
<title>JS/CSS/HTML/preprocessing for domains</title>
<link>/en/sitejs/</link>
<pubDate>Sat, 28 Jan 2023 00:00:00 +0000</pubDate>
<guid>/en/sitejs/</guid>
<description>Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as &quot;[domain root].js&quot;, such as &quot;yahoo.com.js&quot; or &quot;finance.yahoo.com.js&quot;. The script will be loaded on the whole domain tree sites. If several files matches the domain, then the script with longest file name is loaded. Script must be put under the folder &quot;sitejs&quot; or &quot;/data/data/info.torapp.uweb/files/sitejs&quot;. The later folder has the priority. Long press the button &quot;settings&quot;, check the option &quot;Run user scripts&quot;.</description>
Tips File handling and styling with home.css &quot;home.css&quot; (in current folder, parent folder or the &quot;bookmark&quot; folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs &quot;&lt;style&gt;&quot; tag for CSS.
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3.</description>
<description>&quot;:!&quot; ( or &quot;!&quot;) command line Pressing &quot;:&quot; or &quot;!&quot; with hardware keyboard sets focus on the address bar.
The command line could be a &quot;.js&quot;, &quot;.sh&quot; or other executable with arguments. Ex. &quot;:!s g keyword&quot; could invoke &quot;s.js&quot; executable with the whole string as arguments (&quot;s.sh&quot; or &quot;s&quot; if file exists, here &quot;g&quot; as google search engine); &quot;:! g keyword&quot; would invoke the file &quot;.js&quot; or &quot;.sh&quot; as executable.</description>
<pubDate>Sun, 30 Oct 2022 00:00:00 +0000</pubDate>
<guid>/en/url2site/</guid>
<description>The uweb internal link &quot;i:0m&quot; make any url such as download or indirect link visitable as a website. The test mirrors in the uweb manual are examples using the following tricks:
&quot;i:0m04:[url]&quot;: to treat the [url] content as html with bookmarklet. &quot;i:0m?:[url]&quot;: to treat the [url] content as html, handling css/js properly. &quot;i:0m?[postfix]:[url]&quot;: auto append query postfix to url to retrieve content. &quot;i:0mi:5h:[url]&quot;: similar to &quot;i:0m?:[url]&quot;, to treat the [url] content as html (for download or no-script links etc.</description>
<description>UI Search engines Home screens UI (gitee) webdav install-able menu generator Customization Long pressing menus for toolbar buttons User agents Javascript Url services Links Commands Remote javascript Menu for selections Menu for long pressing hypertext Toolbar Gestures Address bar command modes Font settings Advanced Content AD blocking CSS styles Redirection Offline cache JS/CSS/HTML/preprocessing for domains Any urls as website Tools Bookmarklets Custom file handling Html5 application Termux Info Manual Tips Configuration files Bookmarks </description>
<description>All folders end with character &quot;/&quot; and others are files. All folders/files locate in &quot;/data/data/info.torapp.uweb/files&quot;:
<pubDate>Sat, 25 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/adblock/</guid>
<description>Host blocking。
Use bookmarklet &quot;list all script urls&quot; to generate url links, long pressing dubious script (usually 3rd-party library) link, click &quot;Block domain root&quot;. Javascript and CSS for domains。
Long press the button &quot;js&quot;, click the menu &quot;MarkAD mode&quot;. In &quot;markAD mode&quot;, click page element to show all attributes and generate CSS AD blocking styles. By default, &quot;display:none&quot; is used. If &quot;display&quot; appears in the attribute information, recommend to use &quot;transform:scale(0)!</description>
</item>
<item>
<title>Bookmarklets</title>
<link>/en/bookmarklet/</link>
<pubDate>Fri, 24 Jun 2022 00:00:00 +0000</pubDate>
<guid>/en/bookmarklet/</guid>
<description>With a href=&quot;../index.html&quot;&gt;uweb browser, long pressing any bookmarklet link, click &quot;Open in new tab&quot;, the bookmarklet will be run on the last other tab.
List all script urls
User agent
Cookie
Source code
Last modified date
Eruda: mobile console
QR code generation
Use &quot;GET&quot; method for &quot;POST&quot;
<description>Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the &quot;image&quot; button to popup the menu.
<description>Click the following links to install commands with uweb browser. Force exit and re-launch the app, then long press the button with clock icon to popup the command menu.
Global javascript files locates in the subfolder &quot;js&quot; of app private folder. Long press button [☰] to configure. Click the following links to install:
The file &quot;default.select&quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
<description>Uweb browser loads all &quot;.css&quot; files under the folder &quot;css&quot; as global css. Click the following links to install global css files:
Earliest loaded global js The &quot;.js&quot; files under the folder &quot;css&quot; are loaded as earlier as possible on the page.</description>
<pubDate>Sun, 06 Feb 2022 00:00:00 +0000</pubDate>
<guid>/en/icons/</guid>
<description>If subfolder &quot;icon&quot; exists, then files named as &quot;0&quot;,&quot;1&quot;,&quot;2&quot;...
are used for icons in the bottom toolbar. file &quot;0&quot; to replace the left arrow button, &quot;1&quot; for right arrow button, &quot;2&quot; for the setting button,&quot;3&quot; for the home screen button,...
If a new button is defined (file name &quot;20&quot; exists), uweb also supports VectorDrawable with &quot;android compiled XML&quot; format. All icon files must be either all compiled VectorDrawables or common image formats.</description>
[Extra request headers] Ex. &quot;X-Forwarded-For;8.8.8.8&quot; when [post params] is empty, the url should have '%s' as keyword. Ex. bingUS engine w/ chatgpt Limitations (they are here for performance reasons):</description>
Termux bookmarks Long pressing the following links then either &quot;commands&quot;-&gt;&quot;bookmark&quot; to add bookmarks or &quot;open in new tab&quot; to execute.
These javascript files are in the following format:
The very first line can begin with &quot;//&quot; followed by website url that can have &quot;%u&quot; (current url), &quot;%t&quot; (title) etc.</description>
install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only).
The &quot;[file extension]&quot; part can have at most two-segment of extensions such as &quot;txt.xz&quot;,&quot;html.gz&quot;.
&quot;[mimetype]&quot; indicates the type of &quot;[command line]&quot; output.
&quot;[command line]&quot; is same as the one in default.cmds. The most often used replacements are:</description>
<pubDate>Thu, 18 Jun 2020 00:00:00 +0000</pubDate>
<guid>/en/gesture/</guid>
<description>Swipe down from the top to show the address bar; swipe up to the top to hide the address bar. Swipe down to the bottom to hide the toolbar with option &quot;swipe to hide tools&quot;; swipe on the bottom corners to show the toolbar.
Swipe left/right near the toolbar to switch window; fling left/right to switch to the last/first window.
Swiping on the top part of content window (near the top address bar by default) triggers corresponding link in the file &quot;default.</description>
Powerful: any native functionality with html5 enhancement and still secure; any urls to host website; javascript and shell scripting for general processing; piping between console and GUI and more with Termux. Customizable: user-defined menus, (new) buttons and gestures for user agents, bookmarklets, url services, shell commands, internal functionality links and text processing etc.</description>