Skip to content

Instantly share code, notes, and snippets.

@max107
Created March 30, 2015 09:41
Show Gist options
  • Save max107/2593cdbd169fc2fece70 to your computer and use it in GitHub Desktop.
Save max107/2593cdbd169fc2fece70 to your computer and use it in GitHub Desktop.
Delete all wall posts from
var h = document.getElementsByClassName("post_actions");
var i = 0;
function del_wall() {
var fn_str = h[i].getElementsByTagName("div")[0].onclick.toString();
var fn_arr_1 = fn_str.split("{");
var fn_arr_2 = fn_arr_1[1].split(";");
eval(fn_arr_2[0]);
if (i == h.length) {
clearInterval(int_id)
} else {
i++
}
};
var int_id = setInterval(del_wall, 200);
setInterval(function(){window.scrollTo(0,document.body.scrollHeight);}, 1600);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment