web.js 959 B

12345678910111213141516171819202122232425262728
  1. let ess = {
  2. "a":["http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=",],
  3. "ab":["http://audiobookbay.se/?s=",],
  4. "b":["http://www.bing.com/search?q=",],
  5. "bi":["http://bing.com/images/search?q=",],
  6. "bv":["https://www.bing.com/videos/search?q=",],
  7. "g":["https://google.com/search?q=",],
  8. "gi":["http://www.google.com/images?as_q=",],
  9. "gf":["https://google.com/search?q=intitle:index.of+%22parent+directory%22+",],
  10. "sx":["https://searx.be/?q=",],
  11. "w":["https://en.wikipedia.org/wiki/Special:Search?search=",],
  12. "wf":["https://encyclopedia.thefreedictionary.com/",],
  13. "yt":["https://www.youtube.com/results?search_query=",],
  14. };
  15. let url=arguments[1];
  16. let iS1 = url.search(/ [^ ]/);
  17. let iS2 = url.indexOf(' ',iS1+2);
  18. let name = url.substring(iS1+1,iS2)
  19. let keywords = url.substring(iS2+1);
  20. let es = ess[name];
  21. if(es){
  22. let len = es.length;
  23. for(let i=1;i<len;i++)
  24. window.open(es[i]+keywords);
  25. location.href=es[0]+keywords;
  26. }