Skip to content

Instantly share code, notes, and snippets.

@SkyyySi
Created April 10, 2025 05:47
Show Gist options
  • Save SkyyySi/7c0478bd20de6fd769204ab92a87dc82 to your computer and use it in GitHub Desktop.
Save SkyyySi/7c0478bd20de6fd769204ab92a87dc82 to your computer and use it in GitHub Desktop.
A simple userscript to switch the shitty AI translations for most Microsoft documentation over to english
// ==UserScript==
// @name English language switcher for Microsoft documentation
// @namespace http://tampermonkey.net/
// @version 2025-04-10
// @description Switches the shitty AI translations for most Microsoft documentation over to english
// @author SkyyySi
// @match https://learn.microsoft.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=microsoft.com
// @grant none
// @license 0BSD
// ==/UserScript==
((async function main() {
"use strict";
const currentLocale = document.location.pathname.split("/")[1].toLowerCase();
if (currentLocale === "en-us") {
return;
}
document.getElementById("lang-link-tablet")?.click();
})());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment