Created
April 10, 2025 05:47
-
-
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
This file contains 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 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