Skip to content

Instantly share code, notes, and snippets.

@Maccimo
Created October 6, 2022 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maccimo/02c30e071d93dea005e329e4344cd9dc to your computer and use it in GitHub Desktop.
Save Maccimo/02c30e071d93dea005e329e4344cd9dc to your computer and use it in GitHub Desktop.
javascript:(function() {const c=$("#xpanel .new");const n=$("#xpanel .next_new");const p=$("#xpanel .prev_new");$(".js-comment").addClass("js-comment_new").find(".comment__head").addClass("comment__head_new-comment");const x=$(".js-comment.js-comment_new").length;const h=(x > 0);if (h) c.text(x);c.toggle(h);p.toggle(h);n.toggle(h);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment