Merge pull request #16 from galgeek/logCaptchaHref

log captcha, href
This commit is contained in:
Noah Levitt 2016-10-03 18:12:07 -07:00 committed by GitHub
commit 5bdf916a78

View File

@ -198,9 +198,12 @@ var umbraBehaviorFinished = function() {
return false;
}
if (document.querySelector("div.captcha_interstitial") != null) { // found a captcha
console.log("captcha found for " + location.href);
}
if (document.getElementById("login_form") == null || UMBRA_FB_USER_NAME.indexOf("parameter")>0 || UMBRA_FB_PASSWORD.indexOf("parameter")>0 ) {//check for unset parameters
console.log("missing login_form or login credentials; maybe already logged in?")
console.log("missing #login_form or login credentials; maybe already logged in for " + location.href);
var umbraIntervalId = setInterval(umbraIntervalFunc, 200);
}
else {//login