Bookmarklet and JavaScript Sample Code to Bulk Show GitHub Hidden Comments

Tadashi Shigeoka ·  Thu, October 3, 2019

I’ll introduce JavaScript code and a bookmarklet to bulk show all GitHub issue Hidden Comments.

GitHub

Background - Want to Bulk Show Hidden Comments

You know when you want to Show comment all hidden comments in a GitHub issue so you can search them in the browser, right?

GitHub Hidden Comments Bulk Display

Bookmarklet

javascript:(function(){var detailsElements = document.getElementsByClassName("Details-element"); Array.prototype.filter.call(detailsElements, function(detailsElement){ detailsElement.open = true; });})();

JavaScript Sample Code

var detailsElements = document.getElementsByClassName("Details-element");
Array.prototype.filter.call(detailsElements, function(detailsElement){
  detailsElement.open = true;
});

That’s all from the Gemba.

Reference Information