-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add expand-all-hidden-comments
feature
#2754
Add expand-all-hidden-comments
feature
#2754
Conversation
Thank you for the PR! #2625 implemented this in a single HTTP request, could you copy it and adjust it to work on |
Also, maybe it would make sense to add this as an extra feature of |
@fregante I'm a little bit hesitate of implementing it with an official API. Even though everything we did here would potentially break at any time, at least we simulate a regular user interaction as much as possible. However, undocumented API is not meant to be call by the users in any way, especially when we don't know what's the limit of that API. Is there a maximum count on Anyways, that's just my concern. Maybe I worry too much 😂
Ahh, I didn't know we have that! I'll take a look, thx! |
If it breaks in the future, not a huge deal. This feature is enable via alt+click so it doesn’t break regular usage. I’d rather use that than making multiple HTTP calls. |
@fregante Cool, sure! Let me do that later 👍 |
@fregante All done! Not sure we should include this in |
Agree. Let's merge everything. Kidding! heheh it's good as is. |
Co-Authored-By: Federico Brigante <[email protected]>
Co-Authored-By: Federico Brigante <[email protected]>
Co-Authored-By: Federico Brigante <[email protected]>
謝謝凱 |
Closes #1892
Add
expand-all-hidden-comments
feature. Doing a Alt + Click on theLoad more
button will load all the hidden comments in the same page.Currently we just recursively click on the button over and over again until there is no more button.We use an undocumented API from #2625 to load all the comments. Should we add a maximum limit on how many pages a click should load?Test
rust-lang/rfcs#2544
GIF: (pay attention to the scroll bar on the right, it takes a long time...)