!752 // static for extraction by Performance Collector static RGBImage img; static L clips; static Rect bestClip; p { img = rgbShootScreenHidingConsole(); calc(); showImage("Possible URL box", img.clip(bestClip)); } svoid calc { Color color = Color.white; clips = areasColored(img, color); print(n(clips, "areas") + " found for color " + new RGB(color) + ": " + struct(clips)); bestClip = bestAccordingTo(clips, f scoreClip); } static double scoreClip(Rect r) { double width = min(1, r.w/(double) img.w()*2); double top = r.y/(double) img.h(); double height = r.h/(double) img.h(); ret width-(top+height)*2; // thin, wide, high up }