Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u = document.body.innerHTML.match(/user.(\d+)/i)[1];
- document.body.innerHTML = "<h3>Profiles já processados</h3>";
- while(1) {
- s = ajaxRequest("GET", false, "/ajax/browser/list/allfriends/?uid="+u+"&infinitescroll=1&location=friends_tab&start=0&__a=1&__user="+u, null, null);
- s = s.match(/user\.php\?.{3}(\d+)\\\">(.*?)\\u/gi);
- if(s.length > 0) {
- for(x in s) {
- d = s[x].match(/user\.php\?.{3}(\d+)\\\">(.*?)\\u/i);
- if(ajaxRequest("POST", false, "/ajax/profile/removefriend.php?__a=1", "__user="+u+"&fb_dtsg="+ajaxRequest("GET", false, "/profile.php?id="+d[1], null, null).match(/fb_dtsg...(.*?)\"/i)[1]+"&norefresh=false&phstamp=16581685373109578375&uid="+d[1], [["Content-Type", "application/x-www-form-urlencoded"]]).indexOf("has been") !== -1)
- document.body.innerHTML += "<font color='green'>"+d[2]+ "</font><br />";
- else
- document.body.innerHTML += "<font color='red'>"+d[2]+ "</font><br />";
- }
- } else
- break;
- }
- function ajaxRequest(method, option, url, sendData, headers) {
- $ = new XMLHttpRequest;
- t = null;
- with($) {
- open(method, url, option);
- if(method == "POST")
- if(headers.length > 0)
- for(y in headers)
- setRequestHeader(headers[y][0], headers[y][1]);
- send(sendData);
- t = responseText;
- }
- return t;
- }
Advertisement
Add Comment
Please, Sign In to add comment