!752 import android.graphics.*; psvm { S p; List matches = matchAll("x1?.fap.to/images/thumb/([0-9/]+)\\.jpg", p = loadPage("imagefap.com/random.php")); saveTextFile (getProgramFile ("random.txt"), p); //for (String match : matches) // print(match); if (empty(matches)) fail(p); S url = oneOf(matches); print("URL: " + url); byte [] x = loadBinaryPage("http://"+url); Bitmap b = BitmapFactory.decodeByteArray(x, 0, l(x)); call(androidContext(), "updateWidgetWithBitmap", b); } static List matchAll(String pattern, String text) { List matches = new ArrayList(); Matcher matcher = Pattern.compile(pattern).matcher(text); while (matcher.find()) matches.add(matcher.group()); return matches; }