From 0463990fe75c4573fc6463fe685d2ea1e400c370 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Fri, 21 Mar 2008 01:40:50 +0000 Subject: lang/javascript/vimperator-plugins/trunk: 08/03/19のCVS HEADに対応 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8231 d0d07461-0603-4401-acd4-de1884942a52 --- hatenabookmark_show.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'hatenabookmark_show.js') diff --git a/hatenabookmark_show.js b/hatenabookmark_show.js index 1211bd5..1117369 100644 --- a/hatenabookmark_show.js +++ b/hatenabookmark_show.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Show Hatena Bookmark Comments' -// Last Change: 02-Mar-2008. Jan 2008 +// Last Change: 21-Mar-2008. Jan 2008 // License: Creative Commons // Maintainer: Trapezoid - http://unsigned.g.hatena.ne.jp/Trapezoid // @@ -14,7 +14,7 @@ xhr.send(null); var response; if(!(response = window.eval(xhr.responseText))){ - vimperator.echoerr("Does not exists!!");return; + liberator.echoerr("Does not exists!!");return; } var bookmarks = response["bookmarks"]; showString += response["count"] + " users : " + response["title"] + "
"; @@ -26,17 +26,17 @@ showString += tagString + (bookmark.tags.length > 0 && bookmark.comment ? "
":"") + bookmark.comment + ""; } showString += "
"; - vimperator.commandline.echo(showString, vimperator.commandline.HL_NORMAL, vimperator.commandline.FORCE_MULTILINE); + liberator.commandline.echo(showString, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE); } - vimperator.commands.addUserCommand(["hbinfo"], "show hatena bookmark comments", + liberator.commands.addUserCommand(["hbinfo"], "show hatena bookmark comments", function(arg,special){ var clipboard = readFromClipboard(); if(special) arg = window.content.document.getSelection() || clipboard; - showComments(arg?encodeURIComponent(arg):vimperator.buffer.URL); - },{ completer: vimperator.completion.url } + showComments(arg?encodeURIComponent(arg):liberator.buffer.URL); + },{ completer: liberator.completion.url } ); - vimperator.mappings.addUserMap([vimperator.modes.VISUAL], [",h"], "show hatena bookmark comments", + liberator.mappings.addUserMap([liberator.modes.VISUAL], [",h"], "show hatena bookmark comments", function(count){ showComments(window.content.document.getSelection()); },{ noremap: true } -- cgit v1.2.3