Skip to content

Instantly share code, notes, and snippets.

@riophae
Created February 26, 2015 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riophae/7c24b00be957eb7bd609 to your computer and use it in GitHub Desktop.
Save riophae/7c24b00be957eb7bd609 to your computer and use it in GitHub Desktop.
Delete all weibo with FaWave
/*!
* 借助 FaWave 自动删除所有微博消息
*
* FaWave 登入微博账号后(如果同时登录了多个,请先切换到需要删除消息的账号),
* 右击 FaWave 图标,点击 "Inspect Popup",在 console 里贴入所有代码运行即可
* 如需中止,直接关掉 Chrome DevTools 窗口即可
*
* 2015/2/16
* Coded by Riophae Lee (http://riophae.com)
*/
var del, waiting = false, $user_tab = $('.tab-user_timeline');
var reset = function() {
if (waiting) return;
$user_tab.click();
del = null;
waiting = true;
}
var interval = setInterval(function() {
var $del = $('a.deltweet').first();
if ($del.length && $del[0] !== del) {
waiting = false;
del = $del[0];
$del.click();
} else {
reset();
}
}, 1000);
reset();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment