[snolab] batch-search

Batch search from multi sourcees.

  1. // ==UserScript==
  2. // @name [snolab] batch-search
  3. // @name:zh [雪星实验室] 批量搜索
  4. // @namespace https://userscript.snomiao.com/
  5. // @version 0.0.1
  6. // @description Batch search from multi sourcees.
  7. // @author snomiao@gmail.com
  8. // @match http*://*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. const engines = {
  13. Page: {
  14. Google: "https://www.google.com/search?q=%s",
  15. LuckyGoogle: "https://www.google.com/search?btnI&q=%*",
  16. Magi: "https://magi.com/search?q=%s",
  17. },
  18. Knowledge: {
  19. Magi: "https://magi.com/search?q=%s",
  20. Google: "https://www.google.com/search?q=%s",
  21. Wiki: "https://www.google.com/search?q=%s",
  22. FreeMDict: "https://forum.freemdict.com/search?q=%s",
  23. FreeMDict: "https://forum.freemdict.com/search?q=%s",
  24. },
  25. Book: {
  26. Book4you: "https://book4you.org/s/%*",
  27. douban: "https://search.douban.com/book/subject_search?search_text=%*",
  28. },
  29. Torrent: { 1337: "https://www.1377x.to/search/%*/1/" },
  30. Movie: {},
  31. Video: {},
  32. Music: {},
  33. Model: { Google: "https://www.google.com/search?q=%s" },
  34. Image: {},
  35. };
  36. const enginess = JSON.parse(JSON.stringify(engines).replace(/%s|%\*/g, s));