From fb49502e359fe567f02fb64603906bd6b5d00a36 Mon Sep 17 00:00:00 2001 From: teramako Date: Mon, 11 Feb 2013 22:01:15 +0900 Subject: fix wikipedia XPath --- lookupDictionary.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lookupDictionary.js') 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) { -- cgit v1.2.3