Skip to content

Instantly share code, notes, and snippets.

@ac130kz
Created September 28, 2022 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ac130kz/cecc18bb1f0b77ea061a47cd40a0950e to your computer and use it in GitHub Desktop.
Save ac130kz/cecc18bb1f0b77ea061a47cd40a0950e to your computer and use it in GitHub Desktop.
Delete all Vk posts (F12 -> Console -> Paste + Enter)
var h = document.getElementsByClassName("ui_actions_menu _ui_menu ui_actions_menu--actionSheet");
var i = 0;
function del_wall() {
try {
var fn_str = h[i].getElementsByTagName("a")[0].onclick.toString();
} catch (error) {
clearInterval(int_id);
return;
}
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,700);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment