Permalink
Browse files

r10957@agentz-office (orig r3251): agentzh | 2008-08-17 17:11:36 +0800

 fixed the prev/next button for wikipedia


git-svn-id: http://svn.openfoundry.org/searchall/trunk@521 1fb3952c-a762-dc11-853b-000bcdefe56b
  • Loading branch information...
agentz
agentz committed Aug 17, 2008
1 parent 3774fa9 commit a69024f64b7321f147c9985533dc8014b4d5215b
Showing with 11 additions and 5 deletions.
  1. +4 −4 js/fmt-view.js
  2. +6 −0 js/prev-next.js
  3. +1 −1 lib/SearchAll/App.pm
View
@@ -23,10 +23,10 @@ SearchAll.patterns = {
//'www.google.cn' : "div.g[h2]",
//'www.google.com' : "div.g[h2]",
- 'www.google.cn' : "div#res>div>div.g",
- //'www.google.cn' : "div#res>div>ol>li",
- 'www.google.com' : "div#res>div>div.g",
- //'www.google.com' : "div#res>div>ol>li",
+ //'www.google.cn' : "div#res>div>div.g",
+ 'www.google.cn' : "div#res>div>ol>li",
+ //'www.google.com' : "div#res>div>div.g",
+ 'www.google.com' : "div#res>div>ol>li",
'www.yisou.com' : "div.web>ol>li",
'so.sohu.com' : "body>div#content>div",
View
@@ -30,6 +30,9 @@ SearchAll.PrevNext.gotoNext = function (i) {
links = $("img[@alt*='Next']", doc).parent('a');
if (links.length == 0) {
links = $("a:contains('次へ')", doc);
+ if (links.length == 0) {
+ links = $("a:contains('next')", doc);
+ }
}
}
}
@@ -91,6 +94,9 @@ SearchAll.PrevNext.gotoPrev = function (i) {
links = $("img[@alt*='Prev']", doc).parent('a');
if (links.length == 0) {
links = $("a:contains('前へ')", doc);
+ if (links.length == 0) {
+ links = $("a:contains('previous')", doc);
+ }
}
}
}
View
@@ -49,7 +49,7 @@ use XUL::App schema {
id is 'searchall@yahoo.cn',
name is 'SearchAll',
description is 'A side-by-side search engine comparison tool',
- version is '0.4.28',
+ version is '0.4.30',
targets {
Firefox => ['2.0' => '3.0.*'],
Mozilla => ['1.5' => '1.8'],

0 comments on commit a69024f

Please sign in to comment.