/*
* @title archive
* @description 記事一覧を開く
* @include http://*
* @license MIT License
*/
(function (url) {
[
{
pattern: /^(http:\/\/(?:d|[-\w]+\.g)\.hatena\.ne\.jp\/[-\w]+\/).*/,
replace: '$1archive'
},
{
pattern: /^(http:\/\/[-\w]+\.(?:hatena(?:blog|diary)\.(?:com|jp)|hateblo\.jp)\/).*/,
replace: '$1archive'
},
{
pattern: /^(http:\/\/[-\w]+\.blog\.fc2\.com\/).*/,
replace: '$1archives.html'
},
{
pattern: /^(http:\/\/[-\w]+\.tumblr\.com\/).*/,
replace: '$1archive'
}
].some(function (siteinfo) {
if (siteinfo.pattern.test(url)) {
location.href = url.replace(siteinfo.pattern, siteinfo.replace);
return true;
}
});
})(location.href);