mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
add more search engines
This commit is contained in:
parent
db629abf0f
commit
d05e18ea53
15 changed files with 74 additions and 30 deletions
|
@ -3,6 +3,7 @@ ess["g"]=["https://google.com/search?q=",];
|
|||
ess["v"]=["https://www.youtube.com/results?search_query=",];
|
||||
ess["b"]=["http://www.bing.com/search?q=",];
|
||||
ess["w"]=["https://encyclopedia.thefreedictionary.com/",];
|
||||
ess["a"]=["http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=",];
|
||||
|
||||
let url=arguments[1];
|
||||
let iS1 = url.search(/ [^ ]/);
|
||||
|
@ -11,5 +12,8 @@ let name = url.substring(iS1+1,iS2)
|
|||
let keywords = url.substring(iS2+1);
|
||||
let es = ess[name];
|
||||
if(es){
|
||||
let len = es.length;
|
||||
for(let i=1;i<len;i++)
|
||||
window.open(es[i]+keywords);
|
||||
location.href=es[0]+keywords;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue