aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattn2008-06-03 10:24:15 +0000
committermattn2008-06-03 10:24:15 +0000
commitab90ee56dcf403b6506e30c8c95d72551887cf28 (patch)
tree36236a3169e33e083f171c9d4a79b232cddb5677
parent91a67dfb4d2991d9bf8a6ff4134ebd1d19ac8376 (diff)
downloadvimperator-plugins-ab90ee56dcf403b6506e30c8c95d72551887cf28.tar.bz2
* はてブ用hack
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@13124 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--direct_bookmark.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/direct_bookmark.js b/direct_bookmark.js
index 082338b..f1334f3 100644
--- a/direct_bookmark.js
+++ b/direct_bookmark.js
@@ -1,6 +1,6 @@
// Vimperator plugin: 'Direct Post to Social Bookmarks'
-// Version: 0.07
-// Last Change: 30-May-2008. Jan 2008
+// Version: 0.08
+// Last Change: 03-Jun-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
// Parts:
@@ -511,7 +511,7 @@
}
liberator.open(currentService.entryPage
.replace(/%URL(?:::(ESC|MD5))?%/g, function(x, t){
- if(!t) return liberator.buffer.URL;
+ if(!t) return liberator.buffer.URL.replace(/#/, '%23');
if(t == "ESC") return encodeURIComponent(liberator.buffer.URL);
if(t == "MD5"){
var url = liberator.buffer.URL;