Created
June 14, 2010 02:45
-
-
Save awef/437220 to your computer and use it in GitHub Desktop.
mdcJaEn.user.js
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 mdcJaEn | |
// @description MDC日本語版の、存在しない文章へのリンクの/ja/を/en/に置き換える。 | |
// @match https://developer.mozilla.org/ja/* | |
// @match https://developer.mozilla.org/Ja/* | |
// ==/UserScript== | |
Array.prototype.forEach.call( | |
document.querySelectorAll("a.new[href^='https://developer.mozilla.org/ja/']"), | |
function(a){ | |
a.pathname = a.pathname.replace(/^\/ja\//i, "/en/"); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment