Created
September 24, 2025 04:33
-
-
Save GalvinGao/d59bbb356c4c41a3e7415fcce4c12b42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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