Skip to content

Commit

Permalink
fixed barnes and noble member, damn site changed their layout
Browse files Browse the repository at this point in the history
  • Loading branch information
benandrews committed Dec 8, 2009
1 parent d6aaf4b commit 70a0c23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chrome/content/data/stores.js
Expand Up @@ -199,8 +199,11 @@ var stores = [
query: 'http://search.barnesandnoble.com/booksearch/isbninquiry.asp?isbn=#{ISBN}',
process: function(req) {
// <strong style="text-decoration: none;">$35.99</strong></span> Member price
try {
return req.responseText.match(/<strong[^>]*>(\$[0-9.]*)<\/strong><\/span> Member price/)[1];
//<span class="memberPriceValue">$14.36</span>

try {
return req.responseText.match(/<span class=['"]+[^'"]*memberPriceValue[^'"]*['"]+>(\$[0-9.]*)<\/span>/)[1];
//return req.responseText.match(/<strong[^>]*>(\$[0-9.]*)<\/strong><\/span> Member price/)[1];
} catch (e) {}
}
},
Expand Down

0 comments on commit 70a0c23

Please sign in to comment.