Created
March 30, 2015 09:41
-
-
Save max107/2593cdbd169fc2fece70 to your computer and use it in GitHub Desktop.
Delete all wall posts from
This file contains hidden or 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 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