aboutsummaryrefslogtreecommitdiffstats
path: root/addhatebu.js
diff options
context:
space:
mode:
Diffstat (limited to 'addhatebu.js')
-rw-r--r--addhatebu.js6
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;