_posts on uweb browser: unlimited power /en/_posts/ Recent content in _posts on uweb browser: unlimited power Hugo -- gohugo.io en Tue, 11 Apr 2023 00:00:00 +0000 Offline resources /en/offlinecache/ Tue, 11 Apr 2023 00:00:00 +0000 /en/offlinecache/ Offline resources locate in the folder "sitecache". With the option "use offline resources" enabled, the corresponding files in "sitecache/[domain name]/[full path including filename, the url path part]" 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) Install bingAI image creator UI draw.html for censored area (bingAI image creator) Serverless local sites Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (. Resource redirection /en/redirect/ Tue, 11 Apr 2023 00:00:00 +0000 /en/redirect/ ⚠️Redirection forwards cookies with the setting option "Redirect cookies" enabled, so use the options with care. Setting options: "Url redirection" vs. "Resource redirection" "Url redirection" redirects the main/page url only while "Resource redirection" is for all urls in the page. Global redirection Global redirection is enabled with the setting option "Resource redirection" or both "Url redirection" and "Redirect cookies". When a valid global redirection url is set, the "default.redirect" has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url. Links /en/links/ Tue, 21 Mar 2023 00:00:00 +0000 /en/links/ 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 "default. Hosts files /en/adblock_domain/ Mon, 20 Mar 2023 00:00:00 +0000 /en/adblock_domain/ The enhanced hosts files "hosts" and "default.hosts" take effect with the setting option "use hosts". hosts The enhanced file "hosts" defines IP addresses/attributes for domains. Each line has the following format: [[IP address][attributes]][single space][domain name] where "[[IP address][attributes]]" could be: ipv4 address such as: 172.67.157.211 torapp.eu.org ipv6 address, Ex.: [2606:4700:3037::6815:8c3] torapp.eu.org empty, that would lift all server-imposed limitations. Ex.: [single space]gitee.com which will make all git repositories on the domain visitable as websites with raw file access url. JS/CSS/HTML/preprocessing for domains /en/sitejs/ Sat, 28 Jan 2023 00:00:00 +0000 /en/sitejs/ Javascript (load when page completes, earliest loaded JS should use sitecss). Need to be named as "[domain root].js", such as "yahoo.com.js" or "finance.yahoo.com.js". 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 "sitejs" or "/data/data/info.torapp.uweb/files/sitejs". The later folder has the priority. Long press the button "settings", check the option "Run user scripts". Bookmarks /en/bookmark/ Mon, 16 Jan 2023 00:00:00 +0000 /en/bookmark/ AI, chatgpt etc. andi freegpt teach-anything magickpen Wait for url from other devices berify: reverse image search for video Tips File handling and styling with home.css "home.css" (in current folder, parent folder or the "bookmark" folder) styles bookmarks, search engines and the folder itself. The file is in html format instead of CSS, so it needs "<style>" tag for CSS. Install markdeep styling for markdown files Bookmarks with secrets (POST instead of GET) The search engine (". Tips /en/tips/ Mon, 16 Jan 2023 00:00:00 +0000 /en/tips/ To show web pages in desktop mode: PC button + option "wide viewport" + global js "force page resizable". Playing audio when screen off Option "Floating video" + video fullscreen playing Use POST-type search engine as bookmark to auto login Multiple home screens and Next/Prev page: 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. Address bar command line /en/acmd/ Sun, 08 Jan 2023 00:00:00 +0000 /en/acmd/ ":!" ( or "!") command line Pressing ":" or "!" with hardware keyboard sets focus on the address bar. The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s g keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists, here "g" as google search engine); ":! g keyword" would invoke the file ".js" or ".sh" as executable. Make any url as website /en/url2site/ Sun, 30 Oct 2022 00:00:00 +0000 /en/url2site/ The uweb internal link "i:0m" 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: "i:0m04:[url]": to treat the [url] content as html with bookmarklet. "i:0m?:[url]": to treat the [url] content as html, handling css/js properly. "i:0m?[postfix]:[url]": auto append query postfix to url to retrieve content. "i:0mi:5h:[url]": similar to "i:0m?:[url]", to treat the [url] content as html (for download or no-script links etc. Html5 applications /en/html5/ Sun, 02 Oct 2022 00:00:00 +0000 /en/html5/ 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. Features The following mentioned subfolders locate in the configuration folder. The following html5 applications are allowed to read local files referred by "https://local/sdcard/. Configuration folders/files /en/filenames/ Thu, 30 Jun 2022 00:00:00 +0000 /en/filenames/ All folders end with character "/" and others are files. All folders/files locate in "/data/data/info.torapp.uweb/files": "css/": global css folder "js/": global script folder "sitejs/": script folder for domains "sitecss/":CSS folder for domains "bookmarklet/":bookmarklets, long pressing the "JS" button to execute. "offline/": to save offline pages "sbookmark/": to save super bookmarks "sitecache/":offline cache "longclick/": menus to appear when long-pressing hypertext (js files) "icon/":customized icons "app[XXX]/":html5 applications "default.longclick": to configure menus when long-pressing hypertext. AD blocking /en/adblock/ Sat, 25 Jun 2022 00:00:00 +0000 /en/adblock/ Host blocking。 Use bookmarklet "list all script urls" to generate url links, long pressing dubious script (usually 3rd-party library) link, click "Block domain root". Javascript and CSS for domains。 Long press the button "js", click the menu "MarkAD mode". In "markAD mode", click page element to show all attributes and generate CSS AD blocking styles. By default, "display:none" is used. If "display" appears in the attribute information, recommend to use "transform:scale(0)! Bookmarklets /en/bookmarklet/ Fri, 24 Jun 2022 00:00:00 +0000 /en/bookmarklet/ With a href="../index.html">uweb browser, long pressing any bookmarklet link, click "Open in new tab", 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 "GET" method for "POST" Shows all form elements Enables all form elements Toggle checkboxes Check all checkboxes Uncheck all checkboxes Toggle all checkboxes in forms Enable selection Text selection /en/pccopy/ Sat, 23 Apr 2022 00:00:00 +0000 /en/pccopy/ Click the following links to install menus for long pressing the button "link": Copy selected text with html format to clipboard Search with home screen google Translate bing translate deepL The file "default.select" 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: [Name]:[mimetype]:[command line] [mimetype] specifies input/output for [command line]. It formats as "[input mimetype]/[output mimetype]". CSS styles /en/globalcss/ Sun, 03 Apr 2022 00:00:00 +0000 /en/globalcss/ Uweb browser loads all ".css" files under the folder "css" as global css. Click the following links to install global css files: Clearing font settings The file "night.css" is used as night mode, click the following links to install one: webview 81+ night mode webview 80- night mode Earliest loaded global js The ".js" files under the folder "css" are loaded as earlier as possible on the page. Toolbar customization /en/icons/ Sun, 06 Feb 2022 00:00:00 +0000 /en/icons/ If subfolder "icon" exists, then files named as "0","1","2"... are used for icons in the bottom toolbar. file "0" to replace the left arrow button, "1" for right arrow button, "2" for the setting button,"3" for the home screen button,... If a new button is defined (file name "20" exists), uweb also supports VectorDrawable with "android compiled XML" format. All icon files must be either all compiled VectorDrawables or common image formats. Search engine files /en/searchcat/ Mon, 10 Jan 2022 00:00:00 +0000 /en/searchcat/ Any ".search" file can be opened as search engine file, each line of which has one of the following formats: [Engine name]:[url without '%s' inside] [Engine name]:[url with '%s' as keyword] [Engine name]:POST:[post params with '%s' as keyword]:[url] [Engine name]:[Extra request headers]:[post params with '%s' as keyword]:[url] [Extra request headers] Ex. "X-Forwarded-For;8.8.8.8" when [post params] is empty, the url should have '%s' as keyword. Ex. bingUS engine w/ chatgpt Limitations (they are here for performance reasons): Termux /en/termux/ Sat, 01 Jan 2022 00:00:00 +0000 /en/termux/ Only the termux versions provided along with uweb browser can work seamlessly. Termux bookmarks Long pressing the following links then either "commands"->"bookmark" to add bookmarks or "open in new tab" to execute. GNU bc (basic calculator) bc with all extensions Click the following links to install termux configurations: .bashrc .inputrc z.sh commacd.sh .profile : only for kshell with naked termux (no initial packages, need the following fix for termux quick crash to be launched) Long pressed link menu /en/longclick/ Fri, 06 Nov 2020 00:00:00 +0000 /en/longclick/ To run commands Each line of file "default.longclick" has the following format: (same as default.cmds) [Name]:[mimetype]:[command line] in which [command line] can have "%c" (cookie), "%u" (current url), "%t" (title) etc. To visit url and load javascript file All ".js" files under the folder "longclick" are part of the popup menu. These javascript files are in the following format: The very first line can begin with "//" followed by website url that can have "%u" (current url), "%t" (title) etc. Tools /en/tools/ Sun, 06 Sep 2020 00:00:00 +0000 /en/tools/ This page is for uweb browser. install tdict_local (search with local indexes and remote content) Click to install the following local indexes with corresponding search engines (for test only). install the indexes for "American heritage dictionary (en-en&zh with AHD/D.J./K.K. pronunciation)" Install AHD to home screen Indexes for "研究社新編英和活用大辞典(English usage: en-en&ja)" Install "English usage (en-en&ja)" Indexes for SOED6 install SOED The following dictionaries work better with markdown processor. Install markdown processor Custom file handling /en/filecap/ Mon, 24 Aug 2020 00:00:00 +0000 /en/filecap/ Long press the settings button, check the option "custom file handling" to enable the functionality. The custom file handling configuration file is "default.filecap", each line of it has the format as follows: [file extension]:[mimetype]:[command line] The "[file extension]" part can have at most two-segment of extensions such as "txt.xz","html.gz". "[mimetype]" indicates the type of "[command line]" output. "[command line]" is same as the one in default.cmds. The most often used replacements are: Gestures /en/gesture/ Thu, 18 Jun 2020 00:00:00 +0000 /en/gesture/ 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 "swipe to hide tools"; 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 "default.