Created
September 19, 2013 22:04
-
-
Save rick/6630515 to your computer and use it in GitHub Desktop.
dotjs file to mute unread github notifications on a repo
This file contains hidden or 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
$("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