Last active
June 10, 2018 09:19
-
-
Save orestesgaolin/b8ec7aa266bd1a2be6d236a68ba21ff7 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 Redirect MS documentation to English from Polish | |
// @namespace https://docs.microsoft.com/ | |
// @description Redirect MS documentation to English from Polish | |
// @include https://docs.microsoft.com/pl-pl/* | |
// @version 0.2 | |
// @author Dominik Roszkowski | |
// @match https://docs.microsoft.com/pl-pl/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var locale = "pl-pl"; | |
var current_location = window.location.href ; | |
if (current_location.indexOf(locale) !== -1){ | |
var new_location = current_location.replace(locale, "en-us"); | |
window.location.replace(new_location); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment