Last active
August 29, 2015 13:57
-
-
Save shendongming/9663563 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
(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