Always google dot com

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

目前为 2016-04-16 提交的版本,查看 最新版本

  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.00
  6. // @include /^https?://\w+\.google\.(?!com/).*/
  7. // @grant none
  8. // @run-at document-start
  9. // ==/UserScript==
  10. window.location.replace(window.location.toString().replace(/^(https?:\/\/\w+\.google\.).*?(\/.*)/, "$1com$2"));