Skip to content

Instantly share code, notes, and snippets.

@rick
Created September 19, 2013 22:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rick/6630515 to your computer and use it in GitHub Desktop.
Save rick/6630515 to your computer and use it in GitHub Desktop.
dotjs file to mute unread github notifications on a repo
$("button.mark-all-as-read").parent().prepend('<button class="box-action mute-all-unread css-truncate tooltipped upwards" original-title="mute all unread notifications"> <span class="octicon octicon-mute"></span> </button>');
$('button.mute-all-unread').click(function(event) {
// mute all unread notifications
$(this).parent().parent().parent().find('li.unread').find('.js-mute-notification button').click();
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment