Back up your wall contents, and remove potentially offending posts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Inga 🏳‍🌈 2af1b4784f Update README.md 6 years ago
.gitignore Initial commit 6 years ago
LICENSE Initial commit 6 years ago
README.md Update README.md 6 years ago
index.js Create index.js 6 years ago
package.json Create package.json 6 years ago

README.md

vkontakte-wall-cleaner

Back up your wall contents, and remove potentially offending posts

Content warning: the code is of extremely poor quality, it was written in an hour, and not intended to be reused.

Usage:

  1. npm install
  2. Create new stand-alone VK app on https://vk.com/apps?act=manage , remember its client_id.
  3. Open https://oauth.vk.com/authorize?client_id=CLIENT_ID&redirect_uri=https://oauth.vk.com/blank.html&display=page&scope=8192&response_type=token&v=5.80 , where CLIENT_ID is app id from the previous step (8192 means that script will have access to wall only). Log in if required to. VK should redirect you to https://oauth.vk.com/blank.html#TOKEN_AND_OTHER_DATA; copy the token from the address line there.
  4. Edit index.js, substituting token placeholder for your token.
  5. node index

All posts are backed up, along with their photo attachments and up to 100 comments per post.

All reposts, and all photo/album/video/audio posts without text are removed, except for those that have over 50 comments. The behaviour can be tweaked in line 123.