Giter VIP home page Giter VIP logo

github-load-all-comments's Introduction

github-load-all-comments

A Tampermonkey script to automatically load all hidden comments on Github

When this script is enabled, the 'Load Hidden Comments' button is triggered immediately on page load.

To see this in action, visit rust-lang/rust#65819. With this script enabled, the "Load Hidden Comments" button should disappear shortly after the page loads.

Background

Github has a "feature" that hides a large fraction of the comments in long issue/PR threads, requiring the user to click a "Show hidden" button to see them.

Not only can this cut off important parts of a discussion, clicking the button only reveals some of the hidden comments. To show the entire thread, a user must:

  1. Search on the page for "show hidden"
  2. Click the button
  3. Wait several seconds for an AJAX request to complete and the page to update
  4. Go back to step 1 to see if there are more hidden comments

This must be done every time the user nagivates to an issue/PR page.

Implementation

This is based on refined-github/refined-github#2625, adjusted to use plain JavaScript instead of TypeScript.

Currently, the implementation relies on an undocumented query parameter to force loading all comments at once. This avoids the repeatedly trigger the 'Load Hidden Comments' button (incurring a round-trip delay with each click).

This could stop working at any time - however, the current method has worked for several methods without any problems.

Hopefully, GitHub either lets this continue to work, or provides a way to opt out of "hidden comments" entirely. .

github-load-all-comments's People

Contributors

aaron1011 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

johntitor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.