Last active
April 1, 2021 16:07
-
-
Save ThomazPom/1e7fe81285db1da20f6f77b1b4cb2eaf to your computer and use it in GitHub Desktop.
Auto accept people from private facebook group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto accept members in group facebook | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.facebook.com/groups/*/member-requests | |
// @match https://www.facebook.com/groups/*/admin_activities/ | |
// @match https://www.facebook.com/groups/*/requests/ | |
// @grant none | |
// ==/UserScript== | |
//window.willrefresh =setInterval(function(){document.location.reload()},1000*3600*1) | |
//window.willrefresh =setInterval(function(){document.location.reload()},1000*3600*1) | |
//window.willrefresh =setInterval(function(){document.location.reload()},1000*3600*1) | |
//window.willrefresh =setInterval(function(){document.location.reload()},1000*3600*1) | |
//window.willrefresh =setInterval(function(){document.location.reload()},1000*3600*1) | |
window.willeexit =setInterval(function(){window.close()},1000*60*1) | |
window.clickbycontent =function (regex,time=1000){ | |
var endres = []; | |
document.querySelectorAll("*").forEach(function(e){ | |
var iex = e.querySelector("*"); | |
iex = !iex && e.innerText && e.innerText.match(regex) | |
if(iex) | |
{ | |
console.log(iex) | |
e.style.backgroundColor="lightgreen" | |
endres.push(e); | |
} | |
}) | |
var i = 0; | |
endres.forEach(function(endresel){ | |
setTimeout(function(){ | |
endresel.click(); | |
},time*i) | |
i++; | |
}) | |
return endres; | |
} | |
setTimeout(function(){clickbycontent(/demandes d.adh.sion/gi) | |
setTimeout(function(){ clickbycontent(/Approuver/); | |
},6000) | |
},10*1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment