Created
June 10, 2016 13:03
-
-
Save NitriKx/1c6f36729e1ec41c94fa3e0ab4aa7174 to your computer and use it in GitHub Desktop.
MA VENGANCE
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
var ids=[203742316, | |
292566812, | |
301889439, | |
554951139, | |
433199066, | |
598142724, | |
452958246, | |
880599639, | |
2021663434, | |
2014508379, | |
1492877675, | |
866094057, | |
541620366, | |
497257037, | |
2044369982, | |
727759399, | |
21160335, | |
215098269, | |
1736788470, | |
965059080, | |
1584860352, | |
1283601201, | |
667905092, | |
1619849605, | |
1083090885, | |
2044025100, | |
551982460, | |
149955907, | |
1894506553, | |
1464771254, | |
]; | |
$.each($("tr td.pname"), function(index, value) { | |
var name = $(value).find(".pname").text().trim(); | |
var id = $(value).attr("id") | |
if (id) { | |
id = id.replace(/part/ig, ""); | |
if (ids.includes(parseInt(id)) == false) { | |
console.log("Deleting " + name) | |
$.ajax({ | |
method:"POST", | |
url:"http://doodle.com/np/new-polls/589yverrfguiqy9m/participants/" + id + "/delete?token=&adminKey=" | |
}) | |
} | |
} | |
}) | |
$.each($(".cmt"), function(index, value) { | |
var id = $(value).attr("id").replace(/cmt/ig, ""); | |
console.log("Deleting " + id) | |
$.ajax({ | |
method:"POST", | |
url:"http://doodle.com/np/new-polls/589yverrfguiqy9m/comments/" + id + "/delete/?token=&adminKey=" | |
}) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment