Javascript on uweb browser: unlimited power /en/tags/javascript.html Recent content in Javascript on uweb browser: unlimited power Hugo -- gohugo.io en Thu, 20 Apr 2023 10:17:34 +0800 JS/CSS/HTML/preprocessing for domains /en/sitejs.html Sat, 28 Jan 2023 00:00:00 +0000 /en/sitejs.html 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". Bookmarklets /en/bookmarklet.html Fri, 24 Jun 2022 00:00:00 +0000 /en/bookmarklet.html 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 Long pressed link menu /en/longclick.html Fri, 06 Nov 2020 00:00:00 +0000 /en/longclick.html 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.