Skip to content

Commit

Permalink
r10957@agentz-office (orig r3251): agentzh | 2008-08-17 17:11:36 +0800
Browse files Browse the repository at this point in the history
 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 committed Aug 17, 2008
1 parent 3774fa9 commit a69024f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions js/fmt-view.js
Expand Up @@ -23,10 +23,10 @@ SearchAll.patterns = {
//'www.google.cn' : "div.g[h2]", //'www.google.cn' : "div.g[h2]",
//'www.google.com' : "div.g[h2]", //'www.google.com' : "div.g[h2]",


'www.google.cn' : "div#res>div>div.g", //'www.google.cn' : "div#res>div>div.g",
//'www.google.cn' : "div#res>div>ol>li", 'www.google.cn' : "div#res>div>ol>li",
'www.google.com' : "div#res>div>div.g", //'www.google.com' : "div#res>div>div.g",
//'www.google.com' : "div#res>div>ol>li", 'www.google.com' : "div#res>div>ol>li",


'www.yisou.com' : "div.web>ol>li", 'www.yisou.com' : "div.web>ol>li",
'so.sohu.com' : "body>div#content>div", 'so.sohu.com' : "body>div#content>div",
Expand Down
6 changes: 6 additions & 0 deletions js/prev-next.js
Expand Up @@ -30,6 +30,9 @@ SearchAll.PrevNext.gotoNext = function (i) {
links = $("img[@alt*='Next']", doc).parent('a'); links = $("img[@alt*='Next']", doc).parent('a');
if (links.length == 0) { if (links.length == 0) {
links = $("a:contains('次へ')", doc); links = $("a:contains('次へ')", doc);
if (links.length == 0) {
links = $("a:contains('next')", doc);
}
} }
} }
} }
Expand Down Expand Up @@ -91,6 +94,9 @@ SearchAll.PrevNext.gotoPrev = function (i) {
links = $("img[@alt*='Prev']", doc).parent('a'); links = $("img[@alt*='Prev']", doc).parent('a');
if (links.length == 0) { if (links.length == 0) {
links = $("a:contains('前へ')", doc); links = $("a:contains('前へ')", doc);
if (links.length == 0) {
links = $("a:contains('previous')", doc);
}
} }
} }
} }
Expand Down
2 changes: 1 addition & 1 deletion lib/SearchAll/App.pm
Expand Up @@ -49,7 +49,7 @@ use XUL::App schema {
id is 'searchall@yahoo.cn', id is 'searchall@yahoo.cn',
name is 'SearchAll', name is 'SearchAll',
description is 'A side-by-side search engine comparison tool', description is 'A side-by-side search engine comparison tool',
version is '0.4.28', version is '0.4.30',
targets { targets {
Firefox => ['2.0' => '3.0.*'], Firefox => ['2.0' => '3.0.*'],
Mozilla => ['1.5' => '1.8'], Mozilla => ['1.5' => '1.8'],
Expand Down

0 comments on commit a69024f

Please sign in to comment.