// f : voidfunc(S ua, S ip, bool hasCookie) static void ai1lol_onNewUAIP_noLookback(double interval, fO f) { doEvery(toMS(interval), 0, new Runnable { S last = last(tlft(loadPage("http://ai1.lol/1002157/raw/uaips"))); public void run() { L lines = tlft(loadPage("http://ai1.lol/1002157/raw/uaips?after=" + urlencode(last))); L l = (L) map safeUnstructure(lines); for (O x : l) pcallF(f, getString(x, 'ua), getString(x, 'ip), getBool(x, 'hasCookie)); if (nempty(l)) last = last(lines); } }); }