diff options
author | mitsugu oyama | 2011-02-19 07:29:21 +0900 |
---|---|---|
committer | mitsugu oyama | 2011-02-19 07:29:21 +0900 |
commit | ca23b11c44cee7d579acb76511036bc5c1eefc51 (patch) | |
tree | 24d62336763ef25f36eb619fa1ff7b058b9333a8 /addhatebu.js | |
parent | 5744fd4c54267cf68d8d96b2afbc42977ee3a421 (diff) | |
download | vimperator-plugins-ca23b11c44cee7d579acb76511036bc5c1eefc51.tar.bz2 |
modified cancel
Diffstat (limited to 'addhatebu.js')
-rw-r--r-- | addhatebu.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/addhatebu.js b/addhatebu.js index 21f504b..b45be21 100644 --- a/addhatebu.js +++ b/addhatebu.js @@ -32,11 +32,7 @@ commands.addUserCommand( +d.getDate(); (contents.getElementsByTagName('head')[0]||contents.body).appendChild(s); }else if(args[0]=='cancel'){ - let target=contents - .getElementsByClassName('hatena-bookmark-bookmarklet-container') - .item(0); - let parent=target.parentNode; - parent.removeChild(target); + contents.location.reload(); }else{ liberator.echoerr('Invalid Parameter'); return false; |