Created
September 16, 2025 09:48
-
-
Save FabulousCupcake/b18e39a90eee159826d0eb7e07237888 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 Search • Force Language English | |
| // @namespace fabulous.cupcake.jp.net | |
| // @version 2025.09.16.1 | |
| // @description Adds lr=lang_en if not there | |
| // @author FabulousCupcake | |
| // @match https://www.google.com/search* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| const tryAddParam = () => { | |
| const usp = new URLSearchParams(location.search); | |
| const lr = usp.get("lr"); | |
| // Skip if already set | |
| if (lr == "lang_en") return; | |
| // Set | |
| usp.set("lr", "lang_en"); | |
| location.search = usp.toString(); | |
| } | |
| const main = () => { | |
| tryAddParam(); | |
| } | |
| main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment