Now I am going to share a facebook
trick...
Sometimes we want to delet our
facebook group...Bt It's a boaring work
delete one by one member...
I am going to share a javascript code
by that u can delete all members from
your group automaticly
u nedd Google Chorme browe
Open google chorme and goto your
group members list
https://www.facebook.com/groups/
username/members/ {in username post
ur group user name]
then prs ctrl+j in Google Chorme
a pop up window will be open... then
paste this in the javascript console
deleteAll = [];
deleteAll.elms = [];
deleteAll.canClick = function (el)
{
return (typeof el != 'undefined'
&&
(typeof el.click != 'undefined' ;
}
deleteAll.load = function() {
deleteAll.elms =
document.getElementsByClassName
("uiPopoverButton _p uiButton
uiButtonSuppressed
uiButtonNoText" ;
if (i < deleteAll.elms.length - 5
&& !
more[0].hasChildNodes()) {
setTimeout(deleteAll.getMore,
2000);
} else {
setTimeout(deleteAll.go, 3000);
}
}
deleteAll.getMore = function() {
more =
document.getElementsByClassName
("pam uiBoxLightblue
uiMorePagerPrimary" ;
if (typeof more != 'undefined' &&
deleteAll.canClick(more[0])) {
more[0].click();
setTimeout(deleteAll.load, 3000);
} else {
setTimeout(deleteAll.load, 200);
}
}
deleteAll.go = function() {
try {
deleteAll.doClick(1);
} catch(e) {
setTimeout(deleteAll.load, 2000);
} finally {
setTimeout(deleteAll.load, 500000);
}
}
deleteAll.doClick = function(i) {
deleteAll.elms .click();
setTimeout(function()
{deleteAll.doClick2(i)}, 1000);
}
deleteAll.doClick2 = function(i) {
document.getElementsByClassName
("_54nc" [1].click()
setTimeout(function()
{deleteAll.confirm
(i)}, 2000);
}
deleteAll.confirm = function (i) {
remove_but =
document.getElementsByClassName
("_42ft _42fu layerConfirm
uiOverlayButton selected _42g-
_42gy" [0];
more =
document.getElementsByClassName
("pam uiBoxLightblue
uiMorePagerPrimary" ;
if ((i < deleteAll.elms.length - 5
|| !
more[0].hasChildNodes()) &&
deleteAll.canClick(remove_but) &&
remove_but.value == "1" {
remove_but.click();
setTimeout(function()
{deleteAll.confirm2(i)}, 2000);
} else {
setTimeout(deleteAll.getMore,
3000);
}
}
deleteAll.confirm2 = function(i) {
node =
document.getElementsByClassName
('uiContextualLayerPositioner
uiLayer
hidden_elem' [0];
node.parentNode.removeChild(node);
setTimeout(function()
{deleteAll.doClick
(i)}, 2000);
}
deleteAll.load();
That's it
Enjoy...
No comments:
Post a Comment