Skip to content

Instantly share code, notes, and snippets.

@m4rr
Created August 2, 2018 12:51
Show Gist options
  • Save m4rr/6e13ca0b04cf6d1267d57ddb376aefd6 to your computer and use it in GitHub Desktop.
Save m4rr/6e13ca0b04cf6d1267d57ddb376aefd6 to your computer and use it in GitHub Desktop.
Remove all vk.com wall posts (except 20 first and 20 last items.) First, load all wall posts on single page, then run in console:
(function () { 'use strict'; if (!confirm('Удалить все записи со стены?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick^="wall.deletePost"]'); for (var i = 20; i < deletePostLink.length - 20; i++) { deletePostLink[i].click(); } alert(deletePostLink.length + ' posts deleted'); }());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment