Skip to content

Instantly share code, notes, and snippets.

@GalvinGao
Created September 24, 2025 04:33
Show Gist options
  • Select an option

  • Save GalvinGao/d59bbb356c4c41a3e7415fcce4c12b42 to your computer and use it in GitHub Desktop.

Select an option

Save GalvinGao/d59bbb356c4c41a3e7415fcce4c12b42 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name google_us_gl
// @namespace http://tampermonkey.net/
// @version 2024-10-12
// @description search in us region preference
// @author You
// @match https://www.google.com/search*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
const element = document.createElement('a')
element.href = document.location.href + "&gl=us"
element.innerHTML = "Search with gl=US"
element.setAttribute("style", "position: fixed; bottom: 2rem; right: 2rem; padding: 1rem; background: rgba(255, 255, 255, .2); font-size: 1.25rem;")
document.body.appendChild(element)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment