From b6472c7308f7435c638b914539eb101a7c7fce1a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 10 Jun 2013 16:51:38 +0900 Subject: [PATCH] update hatebu ext --- _keysnail.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 43831be..fb924da 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -405,9 +405,8 @@ ext.add('send-escape', function (ev, arg) { }, 'escape'); ext.add("open-hatebu-comment", function (ev, arg) { - if (window.loadURI) { - loadURI("javascript:location.href='http://b.hatena.ne.jp/entry?mode=more&url='+encodeURIComponent(location.href);"); - } + var url = window.content.location.href.replace(/^[^/]*\/\//, ""); + window.content.location.href = "http://b.hatena.ne.jp/entry/" + url; }, 'hatebu'); // ext.add("focus-on-content", function(){