Last active
May 15, 2018 22:19
-
-
Save valsaven/5608f1c8021eaa58a21a627938532422 to your computer and use it in GitHub Desktop.
Remove all audio files from Vkontakte profile. Удалить все аудиозаписи из профиля Вконтакте.
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
document.querySelectorAll('.audio_act._audio_act_delete').forEach(audioDeleteButton => audioDeleteButton.click()); |
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 = 0; i < deletePostLink.length; 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