Skip to content

Instantly share code, notes, and snippets.

@miRemid
Created March 27, 2020 13:52
Show Gist options
  • Save miRemid/e10662182e55049f7d047b45e71fad8c to your computer and use it in GitHub Desktop.
Save miRemid/e10662182e55049f7d047b45e71fad8c to your computer and use it in GitHub Desktop.
删除新浪所有微博
// 删除当前个人界面所有微博
// 需要登录
// 可以通过关键词搜索后运行脚本删除所有关键词微博
s.setAttribute(
'src',
'https://lib.sinaapp.com/js/jquery/2.0.3/jquery-2.0.3.min.js'
);
s.onload = function() {
setInterval(function() {
if (!$('a[action-type="feed_list_delete"]')) {
$('a.next').click();
} else {
$('a[action-type="feed_list_delete"]')[0].click();
$('a[action-type="ok"]')[0].click();
}
$('html, body').animate({ scrollTop: $(document).height() }, 'slow');
}, 500);
};
document.head.appendChild(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment