Created
February 26, 2015 15:09
-
-
Save riophae/7c24b00be957eb7bd609 to your computer and use it in GitHub Desktop.
Delete all weibo with FaWave
This file contains hidden or 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
/*! | |
* 借助 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