GoogleMainSearch.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <ruleset name="Search www.google.com">
  2. <!--
  3. Enabling this ruleset should cause searches to go to
  4. https://www.google.com rather than https://encrypted.google.com. Note that
  5. the filename is important; it must be before GoogleSearch.xml in a bash
  6. expansion of src/chrome/content/rules/*.xml in order to take precedence.
  7. -->
  8. <target host="*.google.com" />
  9. <target host="google.com" />
  10. <target host="www.google.com.*" />
  11. <target host="google.com.*" />
  12. <target host="www.google.co.*" />
  13. <target host="google.co.*" />
  14. <target host="www.google.*" />
  15. <target host="google.*" />
  16. <!-- beyond clients1 these do not currently exist in the ccTLDs,
  17. but just in case... -->
  18. <target host="clients1.google.com.*" />
  19. <target host="clients2.google.com.*" />
  20. <target host="clients3.google.com.*" />
  21. <target host="clients4.google.com.*" />
  22. <target host="clients5.google.com.*" />
  23. <target host="clients6.google.com.*" />
  24. <target host="clients1.google.co.*" />
  25. <target host="clients2.google.co.*" />
  26. <target host="clients3.google.co.*" />
  27. <target host="clients4.google.co.*" />
  28. <target host="clients5.google.co.*" />
  29. <target host="clients6.google.co.*" />
  30. <target host="clients1.google.*" />
  31. <target host="clients2.google.*" />
  32. <target host="clients3.google.*" />
  33. <target host="clients4.google.*" />
  34. <target host="clients5.google.*" />
  35. <target host="clients6.google.*" />
  36. <rule from="^http://www\.google\.com/$"
  37. to="https://www.google.com/"/>
  38. <!-- The most basic case. -->
  39. <rule from="^http://(?:www\.)?google\.com/search"
  40. to="https://www.google.com/search"/>
  41. <!-- A very annoying exception that we seem to need for the basic case -->
  42. <exclusion pattern="^http://(?:www\.)?google\.com/search.*tbs=shop" />
  43. <exclusion pattern="^http://clients[0-9]\.google\.com/.*client=products.*" />
  44. <exclusion pattern="^http://suggestqueries\.google\.com/.*client=.*" />
  45. <!-- https://trac.torproject.org/projects/tor/ticket/9713 -->
  46. <exclusion pattern="^http://clients[0-9]\.google\.com/ocsp" />
  47. <!-- This is necessary for image results links from web search results -->
  48. <exclusion pattern="^http://(?:www\.)?google\.com/search.*tbm=isch.*" />
  49. <rule from="^http://(?:www\.)?google\.com/webhp"
  50. to="https://www.google.com/webhp"/>
  51. <rule from="^http://(?:www\.)?google\.com/#"
  52. to="https://www.google.com/#"/>
  53. <rule from="^http://(?:www\.)?google\.com/$"
  54. to="https://www.google.com/"/>
  55. <!-- Completion urls look like this:
  56. http://clients2.google.co.jp/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1 HTTP/1.1\r\n
  57. -->
  58. <rule from="^http://clients[0-9]\.google\.com/complete/search"
  59. to="https://clients1.google.com/complete/search"/>
  60. </ruleset>