window.delayne = 5;
var regexne = /id:(\d+),name:null/g;
window.hthang = document.body.innerHTML.match(regexne);
window.list_uid = window.hthang.map(a=> /id:(\d+),name:null/.exec(a)[1]);
console.log("Có " + window.list_uid.length + " admin ẩn.");
function xoa_adminan() { if(window.list_uid.length >0){ var idan = window.list_uid.splice(0,1)[0];
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { if(this.responseText.indexOf("true")>=0){ console.log("Xóa thành công: " +idan + " ẩn khỏi TKQC.");
}
setTimeout(xoa_adminan,window.delayne * 1000);
} });
xhr.open("GET", "https://graph.facebook.com/v10.0/act_"+require("BusinessUnifiedNavigationContext").adAccountID+"/users?uid="+idan+"&access_token="+require("AdsCMConnectConfig").access_token+"&format=json&method=delete"); xhr.send(); } else { console.log("DONE");
} } xoa_adminan();
Check Also
Tut add thẻ đỡ hold mới nhất ngày 27/3/2023
tải app ads manager : log bằng 3g add sẽ tốt hơn tránh các ngân hàng …
Phạm Ngọc Hùng Blog Nhiệt tình chia sẻ