Created
August 2, 2018 12:51
-
-
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:
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
(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