mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-10 07:20:39 -04:00
better still facebook login logging
This commit is contained in:
parent
98ea743489
commit
82cc6af366
1 changed files with 3 additions and 3 deletions
|
@ -178,9 +178,7 @@ var umbraFacebookLogin = function() {
|
||||||
var loginButton = document.querySelector("form#login_form label#loginbutton > input");
|
var loginButton = document.querySelector("form#login_form label#loginbutton > input");
|
||||||
emailInput.value=UMBRA_FB_USER_NAME;
|
emailInput.value=UMBRA_FB_USER_NAME;
|
||||||
passwordInput.value=UMBRA_FB_PASSWORD;
|
passwordInput.value=UMBRA_FB_PASSWORD;
|
||||||
if (loginButton) { console.log("clicking #loginButton"); }
|
|
||||||
loginButton.click();
|
loginButton.click();
|
||||||
console.log("logging in with facebook user: " + UMBRA_FB_USER_NAME + " with password: " + UMBRA_FB_PASSWORD);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we haven't had anything to do (scrolled, clicked, etc) in this amount of
|
// If we haven't had anything to do (scrolled, clicked, etc) in this amount of
|
||||||
|
@ -200,10 +198,12 @@ var umbraBehaviorFinished = function() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (document.getElementById("login_form") == null || UMBRA_FB_USER_NAME.indexOf("parameter")>0 || UMBRA_FB_PASSWORD.indexOf("parameter")>0 ) {//check for unset parameters
|
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?")
|
||||||
var umbraIntervalId = setInterval(umbraIntervalFunc, 200);
|
var umbraIntervalId = setInterval(umbraIntervalFunc, 200);
|
||||||
}
|
}
|
||||||
else {//login
|
else {//login
|
||||||
console.log("#login_form found for " + location.href);
|
console.log("#login_form and credentials found for " + location.href);
|
||||||
umbraFacebookLogin();
|
umbraFacebookLogin();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue