Created
May 20, 2017 16:23
-
-
Save rocka/ba40f293fd7efa0438a26b8cd374b649 to your computer and use it in GitHub Desktop.
script to delete qzone feed
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 iframe = document.getElementsByTagName('iframe')[0].contentDocument; | |
var dels = iframe.getElementsByClassName('del'); | |
var len = dels.length; | |
for (var i = 0; i < len; i++) { | |
var el = dels[0]; | |
el.click(); | |
setTimeout(function () { | |
document.getElementsByClassName('qz_dialog_layer_sub')[0].click(); | |
}, 500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment