Created
December 6, 2014 01:49
-
-
Save pocke/eb1bd0d7644cb32d4cef to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(function () { | |
var url = window.location.href; | |
var regexp = /docs\.ruby-lang\.org\/ja\/([0-9.]+)/; | |
var latest_version = '2.1.0'; | |
if (url.match(regexp) && RegExp.$1 != latest_version) { | |
var new_url= url.replace(RegExp.$1, latest_version); | |
window.location.href = new_url; | |
} | |
})(); |
Author
pocke
commented
Dec 6, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment