Adding Gracile's 11feb10 changes.

This commit is contained in:
Matt Burton 2010-03-29 15:01:57 +00:00
parent 466cf794e1
commit 6a846a6557

View file

@ -18,9 +18,9 @@ function detectWeb(doc, url) {
if (prefix == 'x') return namespace; else return null;
} : null;
if (doc.evaluate('//span[contains(., "Results")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
if (doc.evaluate('//span[@class="results_corner EXLResultsTitleCorner"]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext() ) {
return 'multiple';
} else if (doc.evaluate('//div/h2[contains(., "Details")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
} else if (doc.evaluate('//div[@class="results2 EXLFullResultsHeader"]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext() ) {
return 'document';
}
}