2007/05/30
[Bookmarklet]一つ上の階層に移動
http://mutaguchi.wankuma.com/hoge/にいるとき
http://mutaguchi.wankuma.com/に移動。
http://mutaguchi.wankuma.com/hoge/fuga.htmlにいるとき
http://mutaguchi.wankuma.com/hoge/に移動。
javascript:var s=location.href;if(s.charAt(s.length-1)=='/'){var t=s.substring(0,s.length-1);location.href=t.substring(0,t.lastIndexOf('/'))}else{location.href=s.substring(0,s.lastIndexOf('/'))}元記事:http://blogs.wankuma.com/mutaguchi/archive/2007/05/30/78849.aspx
プライバシーポリシー