diff --git a/src/injections/github.js b/src/injections/github.js index 73aed85..2f6de8d 100644 --- a/src/injections/github.js +++ b/src/injections/github.js @@ -12,7 +12,7 @@ function change_wiki() { } function change_commits() { - insert_emoticons('table.files a .message'); + insert_emoticons('table.files a.message'); insert_emoticons('table.timeline-commits commit-message a.message'); } @@ -27,8 +27,7 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i $('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki); -$('table.files').on('DOMNodeInserted DOMNodeRemoved change load', change_commits); -$('table.timeline-commits').on('DOMNodeInserted DOMNodeRemoved change load', change_commits); +$('table.timeline-commits').on('change load', change_commits); $(document).on('ready', function() { console.log("Ready");