ebrowser v1.0.44

This commit is contained in:
James Feng Cao 2024-06-29 16:48:09 +08:00
parent c8c7c4e896
commit e28838f738
8 changed files with 17 additions and 15 deletions

View file

@ -425,15 +425,15 @@ You should have received a copy of the GNU General Public License along with thi
do {
if(q.length>12){
let c6 = q.charCodeAt(6);
if(47===c6){// '/'
if(58===q.charCodeAt(1)){
internalLink(q);
return;
}else if(47===c6){// '/'
let c5 = q.charCodeAt(5);
if(47===c5 && 58===q.charCodeAt(4))//http/file urls
break NOREC;
if(58===c5 && 47===q.charCodeAt(7))//https://
break NOREC;
}else if(58===q.charCodeAt(1)){
internalLink(q);
return;
}else if(q.startsWith("javascript:")){
tabs.children[iTab].executeJavaScript(q.substring(11),false);
recQueryHistory(q);

View file

@ -1,4 +1,4 @@
{"version":"1.0.43",
{"version":"1.0.44",
"name": "ebrowser",
"description": "The keyboard-friendly minimal suckless web browser",
"main": "webview.js",

View file

@ -20,7 +20,8 @@
"tg":"i:0/js/hash2textarea.js:https://www.tiangong.cn/#%s",
"cg":"i:0/js/hash2textarea.js:https://chatglm.cn/main/detail#%s",
"s100":"i:0/js/hash2input.js:https://www.sou100.com/#%s",
"csdn":"i:0/js/hash2textarea.js:https://chat.csdn.net#%s",
"bdc":"i:0/js/hash2editable.js:https://chat.baidu.com/#%s",
"miku":"i:0/js/hash2textarea.js:https://www.hellomiku.com#%s",
"bd":"https://m.baidu.com/s?wd=%s"
"bd":"https://baidu.com/s?wd=%s"
}