Skip to content

Instantly share code, notes, and snippets.

@chrisclark
Created November 16, 2015 23:34
Show Gist options
  • Save chrisclark/eeb3db3ded305025b617 to your computer and use it in GitHub Desktop.
Save chrisclark/eeb3db3ded305025b617 to your computer and use it in GitHub Desktop.
run = 0;
actionFunction = function() {
if (run === 0) {
$('.comment_input_wrapper .body .options').after($('<button id="unsubscribe" class="origin btn">Unsubscribe</button>'));
$('#unsubscribe').click(function(){
alert($('.sender').find('a').html());
});
run = 1;
}
};
waitForKeyElements(".comment_input_wrapper", actionFunction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment