Skip to content

Instantly share code, notes, and snippets.

@FabulousCupcake
Created September 16, 2025 09:48
Show Gist options
  • Select an option

  • Save FabulousCupcake/b18e39a90eee159826d0eb7e07237888 to your computer and use it in GitHub Desktop.

Select an option

Save FabulousCupcake/b18e39a90eee159826d0eb7e07237888 to your computer and use it in GitHub Desktop.
// ==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