mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
ebrowser v1.0.39
This commit is contained in:
parent
ad1d9e33b7
commit
8367164d73
8 changed files with 17 additions and 10 deletions
|
@ -77,7 +77,9 @@ Like any popular browser, the very first word in address bar if defined in "sear
|
|||
- pdf [filename w/o extension] {[options](https://www.electronjs.org/docs/latest/api/web-contents#contentsprinttopdfoptions)} : print to PDF file. All arguments are optional; empty option "{}" to capture long screenshot as vector graphics.
|
||||
- "!" address bar commands
|
||||
"!xx ..." evaluates "xx.js" with the whole text as arguments[0].
|
||||
|
||||
- i: internal urls, which will be consistent with [uweb](https://jamesfengcao.gitlab.io/uweb/en/links/index.html).
|
||||
- "i:0/js/xxx.js:[url]" loads the "[url]" with bookmarklet "js/xxx.js".
|
||||
|
||||
#### Commands in no-focus mode (this mode is similar to vi Normal mode)
|
||||
Pressing "ESC" to enter no-focus mode if not sure.
|
||||
- ":" for address bar commands
|
||||
|
|
|
@ -470,7 +470,7 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
case 48://'0' i:0
|
||||
switch(subcmd){
|
||||
case 47://'/' i:0/
|
||||
if(106===url.charCodeAt(4) && 115===url.charCodeAt(5) && 47===url.charCoseAt(6)){
|
||||
if(106===url.charCodeAt(4) && 115===url.charCodeAt(5) && 47===url.charCodeAt(6)){
|
||||
//i:0/js/xx:[url]
|
||||
let fname = url.slice(4,iColon);
|
||||
let pname = path.join(__dirname,fname);
|
||||
|
@ -504,7 +504,6 @@ function autocomplete(inp,container,arr) {
|
|||
inp.addEventListener("input", function(e) {
|
||||
const MAXITEMS = 30;
|
||||
var b, i, val = this.value;
|
||||
console.log(val)
|
||||
if (!val) { return false;}
|
||||
currentFocus = -1;
|
||||
let items = container.children;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{"version":"1.0.38",
|
||||
{"version":"1.0.39",
|
||||
"name": "ebrowser",
|
||||
"description": "The keyboard-friendly minimal suckless web browser",
|
||||
"main": "webview.js",
|
||||
|
|
|
@ -17,5 +17,6 @@
|
|||
"git":"https://github.com/search?type=Repositories&q=%s",
|
||||
"gt":"https://kkgithub.com/search?type=Repositories&q=%s",
|
||||
"360":"https://so.360.com/s?q=%s",
|
||||
"tg":"i:0/js/hash2textarea.js:https://www.tiangong.cn/#%s",
|
||||
"bd":"https://m.baidu.com/s?wd=%s"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue