diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index dae4c29513..ae2fcdb634 100644 --- a/chrome/content/zotero/recognizePDF.js +++ b/chrome/content/zotero/recognizePDF.js @@ -488,7 +488,8 @@ Zotero_RecognizePDF.Recognizer.prototype._queryGoogle = function() { Zotero_RecognizePDF.Recognizer.prototype._scrape = function(/**Zotero.Translate*/ translate) { if(this._hiddenBrowser.contentDocument.location.href == "about:blank") return; - if(this._hiddenBrowser.contentDocument.title == "403 Forbidden") { + if(Zotero.Utilities.xpath(this._hiddenBrowser.contentDocument, "//form[@action='Captcha']").length || + this._hiddenBrowser.contentDocument.location.toString().indexOf("/sorry") !== -1) { // hit the captcha /* var forms = this._hiddenBrowser.contentDocument.getElementsByTagName("form");