Skip to content

Instantly share code, notes, and snippets.

@shendongming
Last active August 29, 2015 13:57
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 shendongming/9663563 to your computer and use it in GitHub Desktop.
Save shendongming/9663563 to your computer and use it in GitHub Desktop.
(function() {
var time=9500
var doc = window.document.querySelector('iframe.app_canvas_frame').contentDocument;
var all = doc.querySelectorAll('a[class="del del_btn author_display"]')
console.log(all.length)
if(all.length==0){
setTimeout(function(){location=location},time);
return
}
for (var i = 0; i < all.length; i++) {
(function(i) {
setTimeout(function() {
all[i].click();
setTimeout(function() {
var doc = document;
var aclick = doc.querySelector('a[class="qz_dialog_layer_btn qz_dialog_layer_sub"]');
if(aclick){
aclick.click()
}
}, time/3)
}, i * time);
})(i)
}
setTimeout(function(){location=location},all.length*time);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment