diff options
author | teramako | 2013-02-11 22:01:15 +0900 |
---|---|---|
committer | teramako | 2013-02-11 22:01:15 +0900 |
commit | fb49502e359fe567f02fb64603906bd6b5d00a36 (patch) | |
tree | 5556f4966c6353a9724cd88c9804caea80f34d30 /lookupDictionary.js | |
parent | 07c5658c27f5426c0c4ef029ec1b6f2e37d5a95a (diff) | |
download | vimperator-plugins-fb49502e359fe567f02fb64603906bd6b5d00a36.tar.bz2 |
fix wikipedia XPath
Diffstat (limited to 'lookupDictionary.js')
-rw-r--r-- | lookupDictionary.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lookupDictionary.js b/lookupDictionary.js index 72a31e8..b5ba3bd 100644 --- a/lookupDictionary.js +++ b/lookupDictionary.js @@ -34,14 +34,14 @@ const SITE_DEFINITION = [{ names: ['wikipe[diaja]'], url: 'http://ja.wikipedia.org/wiki/%s', shortHelp: 'Wikipedia lite(ja)', - xpath: 'id("bodyContent")/p[1]', + xpath: 'id("mw-content-text")/p[1]', dictionary: 'ja' },{ names: ['wikipe[diaen]'], url: 'http://en.wikipedia.org/wiki/%s', shortHelp: 'Wikipedia lite(en)', - xpath: 'id("bodyContent")/p[1]', - dictionary: 'en' + xpath: 'id("mw-content-text")/p[1]', + dictionary: 'en-US' }]; let (siteDef = liberator.globalVariables.lookupDictionary_site_definition) { |