Skip to content

Instantly share code, notes, and snippets.

@buesing
Last active August 29, 2015 14:10
Show Gist options
  • Save buesing/83fbac6f89a16920e160 to your computer and use it in GitHub Desktop.
Save buesing/83fbac6f89a16920e160 to your computer and use it in GitHub Desktop.
var ads = document.getElementsByClassName("abb");
var params = "";
for (var i = 0; i < ads.length; i++) {
params += ads[i].src + ",";
}
params = params.substr(0, params.length - 1);
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST","adblockblock.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("url=" + params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment