Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alert('Oke để out groups | Code By WC');
- var Title = 'Auto Leave All Facebook Groups!';
- var Descriptions = "",
- _text = 'Powered By: <A style="color:#00CC99;" href="https://www.facebook.com/groups/580210545367721" target="_blank">Coder WC</A></br>Script Made By: </A><A style="color:#3B5998;" href="https://www.facebook.com/dinhduy.vn" target="_blank">DUy Kun</A></A>,</A></A>.</br>My website : <A style="color:#3B5998;" href="https://www.facebook.com/dinhduy.vn" target="_blank">DUy Kun</A>.</A>';
- var Envuser = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- function LeaveGroup(opo)
- {jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/membership/leave.php?group_id=" + opo + "&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&prevent_readd=on&confirmed=1&__user=" + Envuser + "&__a=1&__dyn=7n8ahyj35CFUSt2u5KKDKaExEW9J28C&__req=n&ttstamp=26581671081201068478", function (a) {
- var b = a.substring(a.indexOf("{"));
- var c = JSON.parse(b);
- i--;
- Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
- if (c.error) {
- Descriptions += "color:darkred'>";
- err++;
- if (c.errorDescription) Descriptions += c.errorDescription;
- else Descriptions += JSON.stringify(c, null, "")
- } else {
- Descriptions += "color:darkblue'>";
- Descriptions += " You are not a member of this group.<br/>";
- suc++
- }
- Descriptions += "</div>";
- var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);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.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#33FF33'>";
- display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
- if (i > 0) {
- display += arr.length + " Groups Detected<br/>";
- display += "<b>" + suc + "</b> Groups Leaved of " + (arr.length - i) + " Groups Processed ";
- display += "(" + i + " Lefted...)";
- display += "<div class='friend-edge'>";
- display += Descriptions;
- display += "<img style='width:50px;height:50px;margin-left:-125px;padding:2px;border:0px solid Transparent;' src=" + pho[i] + "></img><a style='font-size:13px;padding-left:8px;text-align:left;color:#FFFF33;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
- display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
- display += _text;
- display += "</div>";
- display += "</div>"
- } else {
- display += arr.length + " Groups Detected and ";
- display += "<b>" + suc + " Groups Leaved</b></br></br>";
- display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:DeepPink1'>Refresh Page</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Close</span>"
- display +="<div><br><span class='img sp_er534k sx_74b85a'></span><a style='position:absolute;font-family:Arial;size:3px;padding-left:3px;font-size:11px;color:rgb(128, 128, 128);'><br></br></a></span><div style='color:DarkSlateBlue;'>My Group : <A style='color:#FFFF66;' href='https://www.facebook.com/groups/580210545367721' target='_blank'>BAF</A></br>Script Created & Designed By</A><A style='color:#FF33FF;' href='https://www.facebook.com/dinhduy.vn' target='_blank'>DUy Kun</A></A></div>";
- }
- display += "</div>";
- document.getElementById("pagelet_sidebar").innerHTML = display
- }, "text", "post");
- tay--;
- if (tay > 0) {
- var s = arr[tay];
- sx = pho[tay];
- setTimeout("LeaveGroup(" + s + ")", 300)
- }
- console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc)
- }
- 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;
- jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + Envuser + "&filter[0]=group&__user=" + Envuser, 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 = "<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:0px 3px 8px rgba(0, 0, 0, 0.9);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.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>";
- display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
- display += arr.length + " Friends Detected";
- display += "</div>";
- document.getElementById("pagelet_sidebar").innerHTML = display;
- LeaveGroup(arr[i])
- });
- var parent=document.getElementsByTagName("html")[0];
- var _body = document.getElementsByTagName('body')[0];
- var _div = document.createElement('div');
- _div.style.height="25";
- _div.style.width="100%";
- _div.style.position="fixed";
- _div.style.top="auto";
- _div.style.bottom="0";
- _div.align="center";
- var _audio= document.createElement('audio');
- _audio.style.width="100%";
- _audio.style.height="25px";
- _audio.controls = true;
- _audio.autoplay = true;
- _audio.src = "https://codegooglesite.googlecode.com/files/BeethovenVirus.mp3";
- _div.appendChild(_audio);
- _body.appendChild(_div);
- var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
- var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;
- var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
- body = document.body;
- if(body != null)
- {
- div = document.createElement("div");
- div.style.position = "fixed";
- div.style.display = "block";
- div.style.width = "100px";
- div.style.opacity= 0.90;
- div.style.bottom = "+60px";
- div.style.left = "+0px";
- div.style.backgroundColor = "rgba(0,0,0,0.5)";
- div.style.border = "1px solid rgba(0,0,0,0.5)";
- div.style.padding = "3px";
- div.innerHTML = "<a style='font-weight:bold;color:#000099' href='https://www.facebook.com/dinhduy.vn' title='My profile'><blink><center>DUy Kun</center></blink></a>"
- body.appendChild(div);
- }
- if(body != null)
- {
- div = document.createElement("div");
- div.style.position = "fixed";
- div.style.display = "block";
- div.style.width = "100px";
- div.style.opacity= 0.90;
- div.style.bottom = "+35px";
- div.style.left = "+0px";
- div.style.backgroundColor = "rgba(0,0,0,0.5)";
- div.style.border = "1px solid rgba(0,0,0,0.5)";
- div.style.padding = "3px";
- div.innerHTML = "<a style='font-weight:bold;color:#FF3366' href='' title='Refresh'><blink><center>Close (F5)</center></blink></a>"
- body.appendChild(div);
- }
- if(body != null)
- {
- div = document.createElement("div");
- div.style.position = "fixed";
- div.style.display = "block";
- div.style.width = "135px";
- div.style.opacity= 0.90;
- div.style.bottom = "+10px";
- div.style.left = "+0px";
- div.style.backgroundColor = "rgba(0,0,0,0.5)";
- div.style.border = "1px solid rgba(0,0,0,0.5)";
- div.style.padding = "3px";
- div.innerHTML = "<a style='font-weight:bold;color:#FF3333' href='https://www.facebook.com/groups/580210545367721/' title='My Group'><blink><center>Visite BAF!</center></blink></a>"
- body.appendChild(div);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement