intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit 1ca24f4d4dab4ad7e9aeab7b227793bac45301bd
parent ce5507654d4202aa24da5de9f5b9c4185d3a573a
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Mon, 14 Nov 2016 17:15:12 +0100

Optimizing part2
Diffstat:
Mscreencap_iitc.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/screencap_iitc.js b/screencap_iitc.js @@ -106,7 +106,12 @@ function afterCookieLogin(IntelURL, search) { e.keyCode = 13; $("#search").trigger(e); }, 2000); - if ($('.searchquery').length > 0) {window.setTimeout(function() {$('.searchquery > :nth-child(2)').children()[0].click();}, 1000);} + setInterval(function() { + if ($('.searchquery').length > 0) { + window.setTimeout(function() {$('.searchquery > :nth-child(2)').children()[0].click();}, 1000); + clearInterval(checkExist); + } + }, 100); } }, search); }