Last active
April 17, 2016 14:34
-
-
Save amphineko/2d1071a523bcff144339 to your computer and use it in GitHub Desktop.
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
/* | |
打开个人首页, 翻到最后一页, 在开发者工具的控制台里运行即可 | |
适用于v5 | |
*/ | |
var _counter = 0; | |
var iV = setInterval(function () { | |
var oB = $('[action-type="feed_list_delete"]'); | |
window.scrollTo(0, 1024000); | |
if (oB) { | |
oB.click(); | |
oB.remove(); | |
setTimeout(function () { | |
var oA = $('.W_layer .bg table tbody tr td div.content .btn a.W_btn_a'); | |
oA.click(); | |
oA.remove(); | |
console.log('Action executed! Counter=' + ++_counter); | |
}, 1000); | |
} else { | |
$('.W_pages .W_btn_c').click(); | |
} | |
}, 2000); |
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
/* | |
打开个人首页, 翻到最后一页, 在开发者工具的控制台里运行即可 | |
适用于v6 | |
*/ | |
var _counter = 0; | |
var iV = setInterval(function () { | |
var oB = $('[action-type="feed_list_delete"]'); | |
window.scrollTo(0, 1024000); | |
if (oB) { | |
oB.click(); | |
oB.remove(); | |
setTimeout(function () { | |
var oA = $('[action-type="ok"]'); | |
oA.click(); | |
oA.remove(); | |
console.log('Action executed! Counter=' + ++_counter); | |
}, 1000); | |
} else { | |
$('.page.prev.S_txt1.S_line1').click(); | |
} | |
}, 1100); |
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
var clickDeleteInterval = 1500; | |
var clickOkDelay = 300; | |
var removeDelay = 300; | |
var removeButton = function (button, delay) { | |
setTimeout(function () { | |
button.remove(); | |
}, delay); | |
} | |
var mainInterval = setInterval(function () { | |
window.scrollTo(0, 1024000); | |
var buttonDelete = $('[action-type="feed_list_delete"]'); | |
if (buttonDelete) { | |
buttonDelete.click(); | |
//removeButton(buttonDelete, removeDelay); | |
setTimeout(function () { | |
var buttonOk = $('[action-type="ok"]'); | |
if (buttonOk) { | |
buttonOk.click(); | |
//removeButton(buttonDelete, removeDelay); | |
} | |
}, clickOkDelay); | |
} else { | |
$('[class="page prev S_txt1 S_line1"]').click(); | |
} | |
}, clickDeleteInterval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment