Last active
March 7, 2020 01:45
-
-
Save jolyon129/5f7cfc1146c0837a9d720aef6e861c54 to your computer and use it in GitHub Desktop.
Automate bulk delete weibo though web weibo. 批量删除微博
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
/* | |
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