Skip to content

Instantly share code, notes, and snippets.

@RyanCavanaugh
Created October 24, 2016 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanCavanaugh/5616e330e66cea4e2946d6f49ba94f6d to your computer and use it in GitHub Desktop.
Save RyanCavanaugh/5616e330e66cea4e2946d6f49ba94f6d to your computer and use it in GitHub Desktop.
Mark as read
var ignames = ["andy-ms", "mhegazy", "vladima"];
var i = 100;
ignames.forEach(function (nm) {
$$('ul.notifications div.avatar-stack img[alt="@' + nm + '"]:first-child').forEach(function(el) {
var e = el.parentNode.parentNode.parentNode;
var b = e.getElementsByClassName("delete")[0].getElementsByTagName("button")[0];
window.setTimeout(function() { b.click(); } , i += 100);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment