/*
* @title Akoga::Let
* @description jump to akogare-no anohito...
* @include http://*
* @license MIT License http://nrm.mit-license.org/2013
* @javascript_url
*/
// c.f. http://space.hatena.ne.jp/~/14217943783080792432/14290001378108604303
(function () {
// strict HatenaID: /[a-zA-Z][\w\-]{1,30}[a-zA-Z\d]/
// loosed HatenaID: /[\w\-]+/
// OAuth: ID@SERVICENAME
var id;
if (!(id = prompt('ID?')) || !(/^[\w\-]+(?:@[\w\-]+)*$/.test(id))) {
return;
}
location.href = 'http://let.hatelabo.jp/' + id + '/';
//prompt('ID: ' + id , 'http://let.hatelabo.jp/' + id + '/');
})();