Last active
February 2, 2018 15:29
-
-
Save madidier/33bc0f3f91f00aa5c02cae82380517f2 to your computer and use it in GitHub Desktop.
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 Pesky MSDN translations ! | |
// @namespace http://madidier.github.com/ | |
// @version 0.2 | |
// @description Disable translations on MSDN and other MS documentation sites. | |
// @author Maxime A. Didier | |
// @match https://*.microsoft.com/fr-fr/* | |
// @grant none | |
// ==/UserScript== | |
(() => { | |
const newLoc = document.location.href.replace(/https:\/\/(msdn|docs).microsoft.com\/fr-fr\//, "https://$1.microsoft.com/en-US/"); | |
if (document.location.href !== newLoc) | |
document.location = newLoc; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment