Skip to content

Instantly share code, notes, and snippets.

@jolyon129
Last active March 7, 2020 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jolyon129/5f7cfc1146c0837a9d720aef6e861c54 to your computer and use it in GitHub Desktop.
Save jolyon129/5f7cfc1146c0837a9d720aef6e861c54 to your computer and use it in GitHub Desktop.
Automate bulk delete weibo though web weibo. 批量删除微博
/*
Sign in to weibo webside.
Click on your home page.
Paste the following code into the console and enter.
*/
'use strict';
var s = document.createElement('script');
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();
}
// scroll bottom let auto load
$('html, body').animate({ scrollTop: $(document).height() }, 'slow');
}, 1100);
};
document.head.appendChild(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment