Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing Flipkart ISBN detection

Thanks to nishan.naseer@gmail.com for the patch
  • Loading branch information...
commit 425b5153d99c3a1f87bb0b7f38bba19a317bc3de 1 parent 579f488
@swaroopch authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  public/javascripts/bookmarklet_runner.js
View
2  public/javascripts/bookmarklet_runner.js
@@ -25,7 +25,7 @@ jQuery.runisbn = function() {
isbn = $.trim( $("b:contains('EAN:')").next().text() );
}
} else if ((/flipkart.com/i).test(window.location.href)) {
- isbn = $.trim( $("span:contains('ISBN:')").next().find("b h2").text() );
+ isbn = $.trim( $("td:contains('ISBN:')").next().find("b h2").text() );
} else if ((/a1books.co.in\/itemdetail/i).test(window.location.href)) {
isbn = $.trim( $("span:contains('ISBN:')").parent().next().text() );
} else if ((/books.rediff.com\/book\//i).test(window.location.href)) {
Please sign in to comment.
Something went wrong with that request. Please try again.