diff options
Diffstat (limited to 'account_switcher.js')
-rw-r--r-- | account_switcher.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/account_switcher.js b/account_switcher.js index a5fede8..210fac5 100644 --- a/account_switcher.js +++ b/account_switcher.js @@ -192,18 +192,18 @@ liberator.accountSwitcherOpenNewTab = 1; req.onload = function(e) { if (service.jump != null) { var url = (service.jump.indexOf('http') == -1) ? service.host + service.jump : service.jump; - if (!!liberator.globalVariables.accountSwitcherOpenNewTab && content.location.href != 'about:blank') { + if (!!liberator.globalVariables.accountSwitcherOpenNewTab && window.content.location.href != 'about:blank') { liberator.open(url, liberator.NEW_BACKGROUND_TAB); } else { - content.location.href = url; + window.content.location.href = url; } } else if(content.location.href != 'about:blank') { - content.location.reload(); + window.content.location.reload(); } var needle = '.hatena.ne.jp'; if (service.host.toLowerCase().lastIndexOf(needle) == service.host.length - needle.length) { img.setAttribute('src', 'http://www.hatena.ne.jp/users/' + username.substr(0, 2) + '/' + username + '/profile_s.gif'); - img.setAttribute('tooltiptext', username); + img.setAttribute('tooltiptext', 'id:' + username); if (!document.getElementById('account_switcher_pannel')) { if (afterSLine != null) { statusBar.insertBefore(sbPannel, afterSLine); |