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.

1  
!752
2  
3  
import android.graphics.*;
4  
5  
  psvm {
6  
    S p;
7  
    List<String> matches = matchAll("x1?.fap.to/[^\"]+", p = loadPage("imagefap.com/gallery.php?" + makePostData("search", "breasts")));
8  
    saveTextFile (getProgramFile ("random.txt"), p);
9  
    //for (String match : matches)
10  
     // print(match);
11  
    if (empty(matches)) fail(p);
12  
    S url = oneOf(matches);
13  
    
14  
    print("URL: " + url);
15  
    byte [] x = loadBinaryPage("http://"+url);
16  
    Bitmap b = BitmapFactory.decodeByteArray(x, 0, l(x));
17  
    call(androidContext(), "updateWidgetWithBitmap", b);
18  
  }
19  
  
20  
  static List<String> matchAll(String pattern, String text) {
21  
    List<String> matches = new ArrayList<String>();
22  
    Matcher matcher = Pattern.compile(pattern).matcher(text);
23  
    while (matcher.find())
24  
      matches.add(matcher.group());
25  
    return matches;
26  
  }

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: 480 / 541
Version history: 1 change(s)
Referenced in: [show references]