/*
* @title <->WebArchive
* @description WebArchive⇔閲覧ページ間を行き来する。Based On http://d.hatena.ne.jp/Nos/20091028/1256679357
* @include http://*
* @license MIT License
* @javascript_url
*/
var peep = location.href;
if (/^https?:\/\/(wayback|web)\.archive\.org\/web/.test(peep)) {
var paap = peep.split('/');
var n = "http://wayback.archive.org/web/19960101000000/".split("/").length - 1;
for (i = 0; i < n; i++) {
paap.shift();
}
window.location = paap.join('/');
} else {
// "19960101000000" is dummy date
window.location = "http://wayback.archive.org/web/19960101000000/" + peep;
}