Skip to content

Instantly share code, notes, and snippets.

@freman
Created October 24, 2017 00:08
Show Gist options
  • Save freman/c016ece53296eee15aeb08b05973f946 to your computer and use it in GitHub Desktop.
Save freman/c016ece53296eee15aeb08b05973f946 to your computer and use it in GitHub Desktop.
Not-Junk all the email in the outlook junk folder
var n = 0;
var repeats = 200
function omg() {
triggerEventOnPage('._lvv_W1', 'mouseup')
$('._n_41 button').click();
window.setTimeout(function() {
$('button span:contains("Not junk")').parent().click();
window.setTimeout(function() {
$('.popupShadow ._fce_V button.ms-bcl-tp-f').click();
n++;
if (n < repeats) {
triggerEventOnPage('._lvv_W1', 'mouseup')
window.setTimeout(omg, 200)
};
}, 750);
},500)
}
omg()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment