Created
June 2, 2017 13:10
-
-
Save herkulano/3a172dbc8ee9ccd06e6d5b491d492545 to your computer and use it in GitHub Desktop.
Delete all Google+ posts script
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
// https://plus.google.com/apps/activities/ | |
let intervalID = window.setInterval(function () { | |
if (document.getElementsByClassName('kKHdKc').length === 0) { | |
clearInterval(intervalID) | |
console.log('FIN') | |
} else { | |
document | |
.getElementsByClassName('kKHdKc')[0] | |
.querySelector('.mUbCce.fKz7Od') | |
.click() | |
window.setTimeout(() => { | |
document | |
.getElementsByClassName('O0WRkf oG5Srb HQ8yf C0oVfc kHssdc HvOprf')[0] | |
.click() | |
console.log( | |
`${document.getElementsByClassName('kKHdKc').length} to go...` | |
) | |
}, 10) | |
} | |
}, 2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment