Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1004413 // P0rn Widget :) 2

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (1396L) is out of date.

!752

import android.graphics.*;

  psvm {
    S p;
    List<String> matches = matchAll("x1?.fap.to/[^\"]+", p = loadPage("imagefap.com/gallery.php?" + makePostData("search", "breasts")));
    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<String> matchAll(String pattern, String text) {
    List<String> matches = new ArrayList<String>();
    Matcher matcher = Pattern.compile(pattern).matcher(text);
    while (matcher.find())
      matches.add(matcher.group());
    return matches;
  }

Author comment

Began life as a copy of #1004412

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, crvwmplrxojx, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004413
Snippet name: P0rn Widget :) 2
Eternal ID of this version: #1004413/2
Text MD5: eaa776c7ec092bc568e2653bf9ad7a47
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-23 14:45:44
Source code size: 849 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 476 / 534
Version history: 1 change(s)
Referenced in: [show references]