mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Detect CAPTCHA
This commit is contained in:
parent
7cd3479094
commit
6dd420458f
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue