Skip to content

Instantly share code, notes, and snippets.

Created August 24, 2017 06:06
Show Gist options
  • Save anonymous/9a5c17cc942e35b3984e877fcead4774 to your computer and use it in GitHub Desktop.
Save anonymous/9a5c17cc942e35b3984e877fcead4774 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Always google dot com
// @description Find and replace Google DOT Country-TLD to Google DOT com
// @namespace https://greasyfork.org/en/users/2871-spacedingo
// @version 1.06
// @exclude */_/chrome/newtab*
// @exclude *google.cn*
// @include /^https?://\w+\.google\.(?!com/).*/
// @grant none
// @run-at document-start
// ==/UserScript==
window.location.replace(window.location.toString().replace(/^(https?:\/\/\w+\.google\.).*?(\/.*)/, "$1com$2"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment