Created
June 21, 2018 18:34
-
-
Save masashinakata/cd5960829c7e7ed6f278d2e28331de46 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
(function () { | |
var url = location.href; | |
if (! url.match(/beta/)) { | |
var a = url.split('/'), b = a[2].split('.'); | |
location.href = 'https://beta.atcoder.jp/contests/' + b[0] + '/tasks/' + a[a.length - 1]; | |
} | |
else { | |
var a = url.split('/'), b = a[2].split('.'); | |
location.href = 'https://' + a[4] + '.contest.atcoder.jp/tasks/' + a[a.length - 1]; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment