From e923c9f69389e6e6855101024b202e1b564b63b2 Mon Sep 17 00:00:00 2001
From: James Feng Cao All folders end with character "/" and others are files. If option "use in-app config" is checked, then "sitejs/" and "sitecache/" locate inside app internal folder (/data/data/info.torapp.uweb/files), otherwise all folders/files locate in "/sdcard/uweb": "shortcut/": dynamical shortcut, if not exist, then default to "/sdcard/uweb/bookmark". Clicking the following hypertext will install menus for long pressing the bookmark button (with star as icon): Long pressing the bookmark button in uweb browser will popup menus defined in file "default.link". The file format is as follows: in which space and later parts are optional. url and later parts support "%u","%s" etc.. The javascript code will be executed after url is fully loaded. url supports all standard scheme (http(s):,javascript: etc.) and uweb internal schemes ( ':' as second character in the url ) and special links that begins with ':'. uweb browser will handle local file urls (file:///) specially for some file types: default.gesture and default.button have the exactly same file format. ".gesture" files define gestures while ".button" define bottom toolbar button pressing actions from the last button to the first. proxy config: :0000 :0003 :0004 :001[fileurl] :002[url] :010[proxy host]:[port] :011[socks host]:[port] i:0m[bookmarklet index|prefix|c[cssFlag]]:[url] i:15[string] i:16[mimetype]:[Action Name]:[App Name]:[Activity Name] i:18[extended mimetype]:[range]:[url] i:19[string] i:1b i:1c i:1c1 i:50[path]:[string] i:51[path]:[url] i:52[path]:[url] i:53[path]:[string] i:54[path]:[url] i:55[path]:[url] i:56[string] i:57[jscode] i:58[url] i:59[filename] i:5a[filename] i:5b[string] i:5c[url] i:5d[file url] i:5e[string] i:5f[videourl] i:5g[videourl] i:5h[url] i:5i[url] i:5j[string] i:60[path]:[url] i:62[path]:[js code] i:63[bookmarklet index]:[url] i:70[url]:[auto page turning url]
+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. "/sdcard/uweb/default.cmds" examples: Clear data::toybox find /data/data/info.torapp.uweb/app_webview ! -name 'Cookies' -type f -delete VPN::am start -a android.net.vpn.SETTINGS wireless::am start -a android.settings.WIRELESS_SETTINGS Backup cookie::toybox cp /data/data/info.torapp.uweb/app_webview/Default/Cookies /sdcard/uweb/. Restore cookie::toybox cp /sdcard/uweb/Cookies /data/data/info.torapp.uweb/app_webview/Default/. Clear cache::toybox rm -rf /data/data/info.torapp.uweb/cache
+
+
+
+
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
new file mode 100644
index 0000000..99f3b45
--- /dev/null
+++ b/en/_posts/index.xml
@@ -0,0 +1,50 @@
+
+
+
+Configuration folders/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.
+"default.uas":user agents
+"default.urls":service urls
+"default.acmd":configure address bar functionalities
+"default.hosts":hosts not allowed to visit
+"default.redirect":redirect websites
+"default.cmds":commands
+"default.link":links
+"default.rjs":Remote javascript
+"default.select":menus for selected text
+"default.input": common phrases for user inputs
+"default.gesture": to define gestures on the top part of the content window. The file format is same as default.link,
+"default.gesture2": gestures on the right side similar to default.gesture.
+"default.button": to re-define button pressing functionalities. The file format is same as default.link, each line represents action from the last button to the first.
+"default.button2": similar to default.button but for long-pressed buttons.
+"default.filecap":custom file handling
+"default.rc": check the option "custom file handling" to execute the shell script file during uweb launching. tcron provides extra cron tools.
+"default.rc2": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.
+"engine.search": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to home5.search but using "%s" as search keywords.
+"default.siteconf": to save ua, js disabling, no-image mode, forbids 3rd-party resources (js and others), active scripts, global scripts for sites. Only save the difference to default ones.
+"default.playrate": fullscreen playing menu. The file format is same as default.link. Playing ratio menu items should have empty link parts such as ".5x:", at least one such menu is required. All other menus must be put after playing ratio menus.
+"default.autoc": address bar autocomplete candidate strings.
+"query.autoc": home screen search autocomplete candidate strings.
+"home5.html": user defined home screen. home6.html, home6.search, home7.html ... multiple home screen (pressing right arrow button to visit). ".html" files have priority over ".search" files. home4.html, home4.search, home3.html ... (long pressing left arrow button to access).
+"home5.search":search engines
+"home.css": home screen styles
+"bookmark.html": bookmarks
+"quickstart.html": quick start
+"colors.txt": background colors
+"default.css": default CSS style for domains not defined in sitejs folder
+"night.css": Night mode
+"bookmarklet/videoplayer.js": fullscreen video player
+"types.sniff": file types for resource sniffer
+"js.allow": 3rd-party resource white list. One domain per line.
+"url.deny": one giant regular expression for blocked urls (java grammar). "#" to comment and carriage return (CR or new line) is ignored.
+"sniff.log": resource sniffing result
+"history.rec": visiting history
+"query.rec": query history
+
diff --git a/en/index.xml b/en/index.xml
index 6222ec4..4bfb00e 100644
--- a/en/index.xml
+++ b/en/index.xml
@@ -4,6 +4,47 @@
+
+Links
+
+
+
+
+
+Certificate info
+[Menu name]:[url][space][javascript code]
+
+
+httpproxy::010[proxy host]:[port]
+socks5::011[socks host]:[port]
+noproxy::010:special links beginning with ':'
+
+
+
+Extend cookie expiracy to 70 years, may be denied by server.
+Toggle fullscreen mode
+Rotate the screen
+Scan the fileurl and add it to media storage
+Show the secure cookie
+Config http proxy, ":010:" to disable any proxy.
+Socks proxy"i:" internal links:
+
+
+
+
+Visiting url and execute the uweb browser internal bookmarklet, [bookmarklet index] must have at least two digits. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ...
+
+
+Set address bar text to be [string].
+Use third party app as input
+Read partial data from url.
+
+
+Append [string] to the address bar text.
+Show web certificate.
+Wait to receive url from the network and open the url.
+Wait to receive url from the network and open the url (not showing ip)
+Save [string] as file
+Save [url] to ".autoc" file.
+Save bookmark.
+Save notes.
+Save as search engine.
+Save as link.
+Use [string] as user input on web page.
+execute [jscode], even when js is disabled for the web page.
+Save to the desktop.
+Send file content to network.
+Receive content from network to the file.
+Copy [string] to the clipboard.
+Change auto page turning internal url to be [url].
+Open the file url compatible to other browsers.
+TTS
+play video fullscreen. if videourl is empty, then make following requestFullscreen() work.
+play video in external player
+force html for url
+Use the existing tab for the url to jump to a different anchor.
+Send string to network
+If existing local file, then open it or visit the [url].
+Evaluate the [js code] and save the returned string to file.
+Visiting url and execute the bookmarklet. Only uweb predefined local bookmarlets are allowed.
+Visiting [url], but use the second url as auto paging url.Commands
+
+
+
Need root permissions:
Need termux:
Send url::printf '%u'|/system/bin/toybox nc 192.168.2.155 1500
Send url(player)::printf 'i:5g%u'|/system/bin/toybox nc 192.168.2.155 1500
Sendurl(bookmark)::printf 'i:51../home5:i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500
Send url(fullscreen)::printf 'i:5f%u'|/system/bin/toybox nc 192.168.2.155 1500
Send url(video)::printf 'i:0mc16:%u'|/system/bin/toybox nc 192.168.2.155 1500
Send url(clipboard):clip:(printf 'i:5b';cat)|/system/bin/toybox nc 192.168.2.155 1500
Clipboard2PC:clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -i'
ClipboardFromPC:/clip:ssh fengcao@192.168.2.120 'DISPLAY=:0 xsel -o'
Clipboard broadcast:clip:socat - UDP-DATAGRAM:255.255.255.255:1500,broadcast
Clipboard from broadcast:/clip:socat -u udp-recvfrom:1500 SYSTEM:'cat;exit'
Clipboard2QR:clip/uweb:qrencode -o /sdcard/uweb/a.png;echo file:///sdcard/uweb/a.png
+"Send url" needs to modify Android TV ip address. +Clipboard2PC needs to modify username, PC needs xsel. ssh needs to be installed inside termux (apt install openssh). +Clipboard broadcast needs socat(apt install socat)。 +Clipboard2QR needs libqrencode.
+ + + diff --git a/en/searchurl/config.html b/en/searchurl/config.html new file mode 100644 index 0000000..bb2bb85 --- /dev/null +++ b/en/searchurl/config.html @@ -0,0 +1,21 @@ + + +Serif + + + + + + + + + + + + + + + + + + diff --git a/en/searchurl/config.js b/en/searchurl/config.js new file mode 100644 index 0000000..b837b46 --- /dev/null +++ b/en/searchurl/config.js @@ -0,0 +1,38 @@ +let labels = ["Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"]; +let names = ["font","cursive","fantasy","fixed","sansserif","serif"]; + +let text; +let d=document; +if(d.body) + text = d.body.innerHTML; +else + text = "\n".repeat(labels.length-1); + +let sa = [` + +'); +let r = sa.join('Click the following link to activate corresponding functionalities:
+Toggle/Reset/Check all/Check 1 - 5/Check 1 - 9 following options (click individual link to toggle):
+Global javascript files locates in subfolder "js". Long press button [☰] to configure. Click the following links to install:
+Save password
+Instant page
large size javascript code can be installed to the folder "/sdcard/uweb/bookmarklet" (long pressing button "js" to popup menu):
+Eruda
+Performance
+
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the button with icon "search" to popup the menu.):
+
+Selection to sentence:;let g='sentence';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);
+Selection to line:;let g='line';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);
+Selection to paragraph:;let g='paragraph';getSelection().modify('move','forward',g);getSelection().modify('extend','backward',g);
+mathjax:['https://fastly.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js']
+mdme:['https://fastly.jsdelivr.net/npm/mdme']
+md+tex:['https://fastly.jsdelivr.net/npm/texme']
+New tab to open links:;let d=document;b=d.createElement('base');b.setAttribute('target','_blank');d.head.appendChild(b)
+Site search:;open('i:15site:' + location.hostname)
+Spell check:;let t=document.getElementsByTagName('textarea');let v=t[0].spellcheck;if(v==null)v=false;t[0].spellcheck=!v
+
Remote script configuration file "/sdcard/uweb/default.rjs" whose line has the following format: +[script name]:[javascript code to return url arrays]
+ + + diff --git a/en/searchurl/search.html b/en/searchurl/search.html new file mode 100644 index 0000000..c25a7a6 --- /dev/null +++ b/en/searchurl/search.html @@ -0,0 +1,125 @@ + ++Clicking the following links to install search engines to uweb's home screen.
+ +Recommended engines (append any of following to file "/sdcard/uweb/home5.search"):bing image:http://bing.com/images/search?q=
+wolfram:https://www.wolframalpha.com/input/?i=
+wiki:https://en.wikipedia.org/wiki/Special:Search?search=
+YouTube:https://www.youtube.com/results?search_query=
+Facebook:https://www.facebook.com/search/str/%s/keywords_search
+Instagram:https://www.instagram.com/explore/tags/%s/
+boardreader:https://boardreader.com/s/%s.html
+ + +Note: "Engines" needs file "engine.search",whose format is same as "home.search" except that the keyword part of url must be denoted with "%s". Pressing the right arrow button on the search result page will automatically query with next engine in the file.
+ +Common engines:
+
google:https://google.com/search?q=
+bing:http://www.bing.com/search?q=
+neeva:https://neeva.com/search?q=
+ +seekr:https://www.seekr.com/search?query=
+xda:https://www.xda-developers.com/search/
+Feeling lucky:https://google.com/search?btnl=1&q=
+pix:https://www.google.com/search?tbm=isch&q=
+youtube:https://youtube.com/results?search_query=
+news:https://news.search.yahoo.com/search/news?p=
+stock:https://finance.yahoo.com/quote/
+amazon:https://www.amazon.com/s/?field-keywords=
+weather:https://www.wunderground.com/cgi-bin/findweather/getForecast?query=
+IMDB:https://www.imdb.com/find?q=
+film review:https://www.rottentomatoes.com/search/?search=
+goodreads:https://www.goodreads.com/search?query=
+audible:http://www.audible.com/search?sort=review-rank&advsearchKeywords=
+audiobay:http://audiobookbay.nl/?s=
+
+language:
+
webster1913:https://www.websters1913.com/words/
+merriam-webster:https://www.merriam-webster.com/dictionary/
+dictionary:https://www.dictionary.com/browse/
+freedictionary:https://www.thefreedictionary.com/
+wordreference:https://www.wordreference.com/definition/
+vocabulary:https://www.vocabulary.com/dictionary/
+etymology:https://www.etymonline.com/search?q=
+powerthesaurus:https://www.powerthesaurus.org/%s/synonyms
+macmillanthesaurus:https://www.macmillanthesaurus.com/search/?auto=complete&q=
+lword:https://lword.top/word.html#
+ +webster:https://www.merriam-webster.com/dictionary/
+googledict:http://googledictionary.freecollocation.com/meaning?word=
+ + +
+Science:
+
britannica:https://www.britannica.com/search?query=
+mathRef:https://reference.wolfram.com/search/?q=
+mathSE:https://math.stackexchange.com/search?q=
+phySE:https://physics.stackexchange.com/search?q=
+physicsForum:https://www.physicsforums.com/search/2195918/?q=
+chemSE:https://chemistry.stackexchange.com/search?q=
+chem:https://www.ncbi.nlm.nih.gov/pccompound?term=
+proofwiki:https://proofwiki.org/w/index.php?search=
+physics:http://www.physics.org/explore-results-all.asp?q=
+biology:https://www.biologyonline.com/dictionary/
+nist chem:https://webbook.nist.gov/cgi/cbook.cgi?Formula=
+chemiday:https://chemiday.com/search/?lang=en&q=
+chem.libretexts:https://chem.libretexts.org/Special:Search?q=
+bio.libretexts:https://bio.libretexts.org/Special:Search?q=
+phys.libretexts:https://phys.libretexts.org/Special:Search?q=
+med.libretexts:https://med.libretexts.org/Special:Search?q=
+math.libretexts:https://math.libretexts.org/Special:Search?q=
+stats.libretexts:https://stats.libretexts.org/Special:Search?q=
+geo.libretexts:https://geo.libretexts.org/Special:Search?q=
+eng.libretexts:https://eng.libretexts.org/Special:Search?q=
+biz.libretexts:https://biz.libretexts.org/Special:Search?q=
+human.libretexts:https://human.libretexts.org/Special:Search?q=
+socialsci.libretexts:https://socialsci.libretexts.org/Special:Search?q=
+workforce.libretexts:https://workforce.libretexts.org/Special:Search?q=
+
+Engines that can use as documentation:
+
oscobo:https://www.oscobo.com/search.php?q=
+teoma:https://www.teoma.com/web?q=
+lycos:https://search.lycos.com/web/?q=
+technorati:http://technorati.com/search/index.php?q=
+qwant:https://lite.qwant.com/?q=
+swisscows:https://swisscows.com/web?query=
+duck:https://duckduckgo.com/?q=
+mojeek:https://www.mojeek.com/search?q=
+gigablast:https://www.gigablast.com/search?c=main&qlangcountry=en-us&q=
+yandex:https://yandex.com/search/?text=
+searx:https://searchx.mobi/?q=
+
+Cloud storage:
+
+Scholar:
+
sweetsearch:https://sweetsearch.com/search?q=
+refseek:https://www.refseek.com/search?q=
+google scholar:https://scholar.google.com/scholar?q=
+semanticscholar:https://www.semanticscholar.org/search?sort=relevance&q=
+
+Developer:
+
git:https://github.com/search?type=Repositories&q=
+ +code:http://searchcode.com/?q=
+symbolhound:http://symbolhound.com/?q=
+vector:https://vector.me/search/
+jsdelivr:http://www.jsdelivr.com/?query=
+greasyfork:https://greasyfork.org/en/scripts?sort=updated&q=
+
+app:
+
+local engines(May need termux customized edition and tools like bc,gnuplot etc.):
+
bc:d:text/html:echo \'%s\'|bc -l -q:
+2D plot:d:image/svg+xml:gnuplot -e \'set term svg;set output; plot %s\':
+3D plot:d:image/svg+xml:gnuplot -e \'set term svg;set output; splot %s\':
+ + + + diff --git a/en/searchurl/urls.html b/en/searchurl/urls.html new file mode 100644 index 0000000..724cac7 --- /dev/null +++ b/en/searchurl/urls.html @@ -0,0 +1,66 @@ + +
+Click the following links to install url services with uweb browser. Force exit and re-launch the app, then long press the button with the icon "image" to popup the menu.
+
+
Send url(bookmark):i:5ji:52../home5:
+ + +Send url(bookmark fullscreen):i:5ji:52../home5:i:5f
+Send url(site fullscreen):i:5ji:0mi:5f:
+ +Send url(bookmark site fullscreen):i:5ji:52../home5:i:0mi:5f:
+ + + + + + + + +tgurl:https://tx.me/share/url?url=
+tgdownload:https://tx.me/share/url?url=/download
+ +papago:https://papago.naver.net/website?locale=en&target=en&url=
+google translate:https://translate.google.com/translate?sl=auto&tl=en&u=
+ +outline:https://www.outline.com/
+2pdf:https://www.web2pdfconvert.com#
+printfriendly:https://www.printfriendly.com/print/?url=
+htmlview:https://htmlview.glitch.me/?
+htmlpreview:https://htmlpreview.github.io/?
+webarchive:https://web.archive.org/web/*/
+archive:https://archive.is/?run=1&url=
+google by image:https://www.google.com/searchbyimage?image_url=
+tinyeye:https://tineye.com/search?url=
+Yandex image:https://yandex.com/images/search?text=
+Yandex by image:https://yandex.com/images/search?family=yes&rpt=imageview&url=
+ascii2d:https://ascii2d.net/search/url/
+trace.moe:https://trace.moe/?url=
+saucenao:https://saucenao.com/search.php?url=
+Add to Feedly:https://feedly.com/i/subscription/feed/
+Video download:https://tbvd.herokuapp.com/redirect?url=
+Audio download:https://tbvd.herokuapp.com/video?audio=on&url=
+Site analyzer:https://www.similarweb.com/website/
+Site buildwith:https://builtwith.com/?
+instapaper:https://www.instapaper.com/text?u=
+google docs:http://docs.google.com/gview?embedded=true&url=
+
+The following needs corresponding html5 application to be installed:
+
txtview:file:///sdcard/uweb/app/txtview.html?url=
+markdeep:file:///sdcard/uweb/app/markdeep.html?url=
+plyr:file:///sdcard/uweb/app/plyr.html?u=
+dplayer:file:///sdcard/uweb/app/dplayer.html?u=
+pdf:file:///sdcard/uweb/app/pdfviewer.html?file=
+epub:file:///sdcard/uweb/app/epub.html?u=
+djvu:file:///sdcard/uweb/app/djvu.html?url=
++ +
+in which "redirect" needs default.redirect.
+ + diff --git a/en/sitemap.xml b/en/sitemap.xml index ff3b96b..4875c31 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -3,6 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml">点击安装Cookie延期,地址栏内删除特殊字符,站内搜索,seedr离线下载等
点击安装离线下载(pcloud,furk,微云等)
点击安装笔记菜单
i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]
将url作为网站访问,[bookmarklet index]至少占两个字符。
i:15[string]
@@ -100,9 +103,7 @@ socks代理
i:16[mimetype]:[Action Name]:[App Name]:[Activity Name]
-读取第三方应用输入。
-点击安装 via扫码菜单至常用链接。其它扫描器也都可以使用,只需要把链接里的名字换掉就行。 上面的方案其实不仅可以扫描qr,也可以使用任何第三方应用获得任何种类的数据。其中有uweb表示特殊mimetype,作为url来使用。其他数据类型改成合适的mimetype即可。
-点击安装酷安扫描至常用链接
i:18[extended mimetype]:[range]:[url]
diff --git a/zh/searchurl/urls.html b/zh/searchurl/urls.html
index 61848aa..593bffc 100644
--- a/zh/searchurl/urls.html
+++ b/zh/searchurl/urls.html
@@ -8,13 +8,13 @@
发送url(书签全屏):i:5ji:51../home5:i:5f
+发送url(书签全屏):i:5ji:52../home5:i:5f
-发送url(书签整网全屏):i:5ji:51../home5:i:0mi:5f:
+发送url(书签整网全屏):i:5ji:52../home5:i:0mi:5f:
@@ -65,7 +65,7 @@instapaper:https://www.instapaper.com/text?u=
google docs:http://docs.google.com/gview?embedded=true&url=
-以下需安装相应的html5应用至匹配的目录:
+以下需安装相应的html5应用至匹配的目录:
大文件:file:///sdcard/uweb/app/txtview.html?url=
markdeep大文件:file:///sdcard/uweb/app/markdeep.html?url=
plyr播放器:file:///sdcard/uweb/app/plyr.html?u=
@@ -78,7 +78,7 @@2020jx:https://api.2020jx.com/?url=
iztyy:http://jx.iztyy.com/svip/?url=
-其中"重定向"由文件default.redirect配置,对"file://"重定向将调用合适编辑器编辑文件。
+其中"重定向"由文件default.redirect配置,对"file://"重定向将调用合适编辑器编辑文件。
更多视频服务见:
https://51.ruyo.net/3127.html
https://www.cnblogs.com/devcjq/articles/6939961.html