/*
* @title diamond.jp redirect to print page
* @description print view on diamond.jp
* @include http://diamond.jp/articles/-/*
* @contributor taizooo http://let.hatelabo.jp/taizooo/let/hLHUksb6l-tU (Fork of)
* @license Unknown (as-is)
* @contributor noromanba http://let.hatelabo.jp/noromanba/let/hJmcqt7EtKkq
* @license MIT License http://opensource.org/licenses/MIT (patch-part)
*/
(function () {
/*
if (!/^http:\/\/diamond\.jp\/articles\/\-\/\d+/.test(location.href) ||
/^\/articles\/print/.test(location.pathname)) {
return;
}
//*/
location.pathname = location.pathname.split('/').
map(function (x) {
return x.replace(/-/, 'print');
}).join('/');
})();