Google to Startpage

Redirect from Google results to Startpage results. Based on Amazon Smile Redirect by Wolvan (https://greasyfork.org/scripts/33073)

  1. // ==UserScript==
  2. // @name Google to Startpage
  3. // @namespace http://google.com
  4. // @version 0.0.1
  5. // @run-at document-start
  6. // @description Redirect from Google results to Startpage results. Based on Amazon Smile Redirect by Wolvan (https://greasyfork.org/scripts/33073)
  7. // @author topre, Nieden
  8. // @include *://www.google.com/*
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. var windowUrl = window.location.href;
  13. if (windowUrl.toLowerCase().indexOf("www.google.com/search?q=") !== -1) {
  14. console.log("Doing redir");
  15. window.location.href = windowUrl.replace("www.google.com/search?q=", "www.startpage.com/do/dsearch?query=");
  16. }
  17. })();