From 0880257f8b73f6bc308542a80ed470295492c9fd Mon Sep 17 00:00:00 2001 From: teramako Date: Sun, 21 Sep 2008 12:14:40 +0000 Subject: Fix: * indent * command arguments handling git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@19677 d0d07461-0603-4401-acd4-de1884942a52 --- lookupDictionary.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lookupDictionary.js') diff --git a/lookupDictionary.js b/lookupDictionary.js index e487b04..de5cbb8 100644 --- a/lookupDictionary.js +++ b/lookupDictionary.js @@ -12,7 +12,7 @@ names: ['eiji[ro]'], url: 'http://eow.alc.co.jp/%s/UTF-8/', shortHelp: 'SPACE ALC (英辞郎 on the Web)', - xpath: '//*[@id="resultList"]' + xpath: 'id("resultList")' },{ names: ['goo'], url: 'http://dictionary.goo.ne.jp/search.php?MT=%s&kind=all&mode=0', @@ -20,6 +20,17 @@ encode: 'EUC-JP', xpath: '//div[@id="incontents"]/*[@class="ch04" or @class="fs14" or contains(@class,"diclst")]', multi: true +},{ + names: ['infokanji'], + url: 'http://dictionary.www.infoseek.co.jp/?sc=1&se=on&lp=0&gr=kj&sv=KJ&qt=&qty=%s&qtb=&qtk=0', + shorthelp: 'Infoseek 漢字辞書', + encode: 'EUC-JP', + xpath: '//div[@class="NetDicHead"]' +},{ + names: ['answers'], + url: 'http://www.answers.com/%s', + shortHelp: 'Answers.com(英英辞書)', + xpath: 'id("firstDs")' }].forEach(function(dictionary){ liberator.commands.addUserCommand( dictionary.names, -- cgit v1.2.3