Last active
March 31, 2024 11:34
-
-
Save arterm-sedov/6ddab675c642b57247ce216b74800dc7 to your computer and use it in GitHub Desktop.
A script to remove all posts from your ok.ru wall
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.delete-stub_cancel'); | |
for (var i = 0; i < deletePostLink.length; i++) | |
{ | |
deletePostLink[i].click(); | |
} | |
alert( 'удалено записей:'+deletePostLink.length); | |
}()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
код не работает если есть темы от других авторов, которые уже не являются модераторами группы, если получится исправить скину