Skip to content

Instantly share code, notes, and snippets.

@noomz
Created May 29, 2013 02:43
Show Gist options
  • Save noomz/5667633 to your computer and use it in GitHub Desktop.
Save noomz/5667633 to your computer and use it in GitHub Desktop.
Clear yammer unread inbox
// Browse to yammer company's home page, then click inbox (mail) link,
// after that run this script in javascript console
var clearYammer = function (interval) {
jQuery('.yj-inbox-list-item').eq(0).trigger('click');
setTimeout(function () {
history.back();
clearYammer(interval);
}, interval);
}
clearYammer(2000);
@Kevin-Garber
Copy link

Seems as if Yammer has changed since the code above, as of November 2014, line 5, should read as follows, this seems to work.

 jQuery('.yj-inbox-list-item-preview').eq(0).trigger('click');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment