Javascript

はてな循環Bookmarklet。循環する順番は適当。

javascript:(
function(){
var q=location.href;
var p='http://';
var h='.hatena.ne.jp/'+q.split('/')[3]+'/';
var v=/http:\/\/d\./;
var w=/http:\/\/(\w+\.)?g\./;
var x=/http:\/\/f\./;
var y=/http:\/\/a\./;
var z=/http:\/\/b\./;
if(v.test(q)==true){
location.href=p+'g'+h;
}
else if(w.test(q)==true){
location.href=p+'f'+h;
}
else if(x.test(q)==true){
location.href=p+'a'+h;
}
else if(y.test(q)==true){
location.href=p+'b'+h;
}
else if(z.test(q)==true){
location.href=p+'d'+h;
}
else{
}
}
)
()

さっき一回消したのはもっと短く出来そうだったので。