Skip to content

Commit c8c77e1

Browse files
committed
🐛 Fixed running on GitHub Gists (fixes jerone#43);
1 parent 675bfaf commit c8c77e1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
};
470470

471471
function addSuggestions(commentForm) {
472-
var jssuggester = commentForm.parentNode.parentNode.querySelector(".js-suggester-container .js-suggester");
472+
var jssuggester = commentForm.parentNode.parentNode.querySelector(".suggester-container .suggester");
473473
var url = jssuggester.getAttribute("data-url");
474474
unsafeWindow.$.fetchText(url).then(function(suggestionsData) {
475475
suggestionsData = suggestionsData.replace(/js-navigation-item/g, "function-button js-navigation-item select-menu-item");

Github_Comment_Enhancer/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Add features to enhance comments & wiki on [Github](https://github.com) and comm
3333
* Added underline button;
3434
* Added option to choose the character that precedes the list;
3535
* Added option to choose the characters that makes up a horizontal line;
36+
* Fixed running on GitHub Gists (fixes https://github.com/jerone/UserScripts/issues/43);
3637
* Searching snippets improved;
3738
* Improve table code;
3839
* Added missing tooltips;
@@ -97,7 +98,7 @@ Add features to enhance comments & wiki on [Github](https://github.com) and comm
9798
* https://github.com/jerone/UserScripts/issues/1 (new comment & edit comment)
9899
* https://github.com/jerone/UserScripts/commit/master (comments below & inline comments)
99100
* https://github.com/jerone/UserScripts/wiki/_new (new wiki)
100-
* https://github.com/jerone/OpenUserJS.org/compare/master...app_route (new PR)
101+
* https://github.com/jerone/bootstrap-material-design/pull/new/feature/sass (new PR)
101102
* https://gist.github.com/jerone/9526258 (new comment & edit comment)
102103

103104

0 commit comments

Comments
 (0)