Always google dot com

Find and replace Google DOT Country-TLD to Google DOT com

  1. // ==UserScript==
  2. // @name Always google dot com
  3. // @description Find and replace Google DOT Country-TLD to Google DOT com
  4. // @namespace https://greasyfork.org/en/users/2871-spacedingo
  5. // @version 1.08
  6. // @include /^https:\/\/\w+\.google\.(?!com\/).*/
  7. // @exclude */_/chrome/newtab*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11. window.location.replace(window.location.toString().replace(/^(https:\/\/\w+\.google\.).*?(\/.*)/, "$1com$2"));