_posts on uweb browser: unlimited power /en/_posts/ Recent content in _posts on uweb browser: unlimited power Hugo -- gohugo.io Sat, 28 Jan 2023 00:00:00 +0000 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. 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/ newbing/chatGPT access from censored area Use the bingChat search engine. Save the bing chat webpage (when you can use) as super bookmark by long pressing right-arrow button, and load back when you need it. 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 ** 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. Offline resources /en/offlinecache/ Fri, 25 Nov 2022 00:00:00 +0000 /en/offlinecache/ Click to install url service that extracts web apps to the folder "sitecache/local/": support web extensions (.crx for chrome & .xpi for firefox). 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. PWAs (Progresssive Web Applications) and some web extensions (.crx for chrome & .xpi for firefox) are just packaged websites. 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:0mi:5h:[url]": to treat the [url] content as html (for download or no-script links etc.) "i:0mi:5h?[postfix]::[url]": auto append query postfix to url to retrieve content. "i:0mi:5h/[regex]/[replacement]::[url]": use the result of regular expression replacement to retrieve the content. 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. Links /en/links/ Thu, 30 Jun 2022 00:00:00 +0000 /en/links/ Click the following links to install menus popped by long pressing the bookmark button (with star as icon): 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.link". The file format is as follows: 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 Resource redirection /en/redirect/ Mon, 25 Apr 2022 00:00:00 +0000 /en/redirect/ Click the following links to append mirrors to the file "default.redirect": github mirror:fastgit github mirror 2 google recaptcha mirror Each line of the file "default.redirect" has the following format: [domain name]:[regular expression]:[replacement expression] in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]". Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option "url redirection". 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": 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]". [input mimetype] can be the following: 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 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. Blocking domain trees /en/adblock_domain/ Mon, 01 Jan 0001 00:00:00 +0000 /en/adblock_domain/ hosts blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" are also valid in the hosts file. Each line of the hosts file has the following format: