commit 3b9bbd1efe374d99b8c53a3746f4861ec807e8a5
parent 286e81dab3d355a42a609d44b33962a4afb460fa
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Tue, 16 May 2017 20:45:34 +0200
Workaround googles new login
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/screencap.js b/screencap.js
@@ -102,6 +102,7 @@ function storeCookies() {
}
function firePlainLogin(user, pass, url) {
+ page.settings.userAgent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3 GTB5';
page.open('https://www.ingress.com/intel', function (status) {
page.evaluate(function () {
localStorage.clear()