diff --git a/misc/ebrowser/index.html b/misc/ebrowser/index.html
index 98af01e3..44464d39 100644
--- a/misc/ebrowser/index.html
+++ b/misc/ebrowser/index.html
@@ -454,6 +454,7 @@ You should have received a copy of the GNU General Public License along with thi
function handleQuery(q){
if(q.length>1){
let c0=q.charCodeAt(0);
+ let c1=q.charCodeAt(1);
switch(c0){
case 33://"!"
bangcommand(q);
@@ -463,7 +464,6 @@ You should have received a copy of the GNU General Public License along with thi
tabs.children[iTab].findInPage(q.substring(1));
return;
case 58://':'
- let c1=q.charCodeAt(1);
if(c1>98 && 112!=c1)
coloncommand(q);
else
@@ -471,16 +471,18 @@ You should have received a copy of the GNU General Public License along with thi
recQueryHistory(q);
return;
}
+ if(58===c1){
+ console.log(q)
+ internalLink(q);
+ return;
+ }
}
var url=q;
NOREC: do{
do {
if(q.length>12){
let c6 = q.charCodeAt(6);
- if(58===q.charCodeAt(1)){
- internalLink(q);
- return;
- }else if(47===c6){// '/'
+ if(47===c6){// '/'
let c5 = q.charCodeAt(5);
if(47===c5 && 58===q.charCodeAt(4))//http/file urls
break NOREC;
diff --git a/misc/ebrowser/package.json b/misc/ebrowser/package.json
index b94ca1df..23de15a3 100644
--- a/misc/ebrowser/package.json
+++ b/misc/ebrowser/package.json
@@ -1,4 +1,4 @@
-{"version":"1.0.52",
+{"version":"1.0.53",
"name": "ebrowser",
"description": "The keyboard-friendly minimal suckless web browser",
"main": "webview.js",
diff --git a/misc/ebrowser/search.json b/misc/ebrowser/search.json
index c69c9f87..b22a50b0 100644
--- a/misc/ebrowser/search.json
+++ b/misc/ebrowser/search.json
@@ -19,10 +19,10 @@
"gt":"https://kkgithub.com/search?type=Repositories&q=%s",
"360":"https://so.360.com/s?q=%s",
"tg":"https://www.tiangong.cn/result?q=%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",
+ "cg":"i:0/js/s2ta.js:https://chatglm.cn/main/detail?%s",
+ "s100":"i:0/js/s2input.js:https://www.sou100.com/?%s",
+ "csdn":"i:0/js/s2ta.js:https://chat.csdn.net?%s",
+ "bdc":"i:0/js/s2editable.js:https://chat.baidu.com/?%s",
+ "miku":"i:0/js/s2ta.js:https://www.hellomiku.com?%s",
"bd":"https://baidu.com/s?wd=%s"
}