[GH-ISSUE #113] [FEATURE] Collapse "People also ask" sections in results #84

Closed
opened 2026-02-25 20:34:51 +03:00 by kerem · 6 comments
Owner

Originally created by @grigsby on GitHub (Aug 1, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/113

Describe the feature you'd like to see added
Searching on Google directly often results in a section labeled "People also ask" with collapsed drop-downs so the answers are normally hidden. It would be great to have something similar in Whoogle to hide the "People also ask" section/results, so they don't take up so much space on the results page (and have to be scrolled past to get to the rest of the "regular" results.)

Describe which parts of the project this would modify (front end/back end/configuration/etc)
?? Sorry, no idea.

Additional context
Maybe not possible if it's done in Javascript? Screenshot of Google section collapsed:
Screen Shot 2020-08-01 at 2 22 48 PM

Originally created by @grigsby on GitHub (Aug 1, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/113 **Describe the feature you'd like to see added** Searching on Google directly often results in a section labeled "People also ask" with collapsed drop-downs so the answers are normally hidden. It would be great to have something similar in Whoogle to hide the "People also ask" section/results, so they don't take up so much space on the results page (and have to be scrolled past to get to the rest of the "regular" results.) **Describe which parts of the project this would modify (front end/back end/configuration/etc)** ?? Sorry, no idea. **Additional context** Maybe not possible if it's done in Javascript? Screenshot of Google section collapsed: <img width="690" alt="Screen Shot 2020-08-01 at 2 22 48 PM" src="https://user-images.githubusercontent.com/10609747/89110734-969b3a80-d402-11ea-9cbe-262a0e609f29.png">
kerem 2026-02-25 20:34:51 +03:00
Author
Owner

@benbusby commented on GitHub (Sep 30, 2020):

Yeah this bothers me too. I'd like to get around to implementing this soon, but it'll inevitably require some amount of Javascript (which isn't a bad thing necessarily, I'm already using Javascript for the search suggestions feature anyways).

<!-- gh-comment-id:701420151 --> @benbusby commented on GitHub (Sep 30, 2020): Yeah this bothers me too. I'd like to get around to implementing this soon, but it'll inevitably require some amount of Javascript (which isn't a bad thing necessarily, I'm already using Javascript for the search suggestions feature anyways).
Author
Owner

@mitnworb commented on GitHub (Oct 12, 2020):

Is there a way to get rid of the section all together?

<!-- gh-comment-id:707297323 --> @mitnworb commented on GitHub (Oct 12, 2020): Is there a way to get rid of the section all together?
Author
Owner

@benbusby commented on GitHub (Oct 13, 2020):

It's possible, but some people use it and others don't, so the option to remove the section altogether would mean introducing a new config option. I've been trying to make sure the available config options don't get overly long and specific, so it'd be preferable to just handle this either with a little bit of Javascript or with something more elegant on the back-end.

There's already code for collapsing a div with CSS-only (seen with the config options on the home page), so the ideal way to address this would be to have the filter step of the back-end look for some unique identifier for the section and apply the correct CSS class along with adding a "People also ask" button to toggle visibility. I haven't looked into how the section is constructed on Google's side yet, but that should be doable.

<!-- gh-comment-id:707770861 --> @benbusby commented on GitHub (Oct 13, 2020): It's possible, but some people use it and others don't, so the option to remove the section altogether would mean introducing a new config option. I've been trying to make sure the available config options don't get overly long and specific, so it'd be preferable to just handle this either with a little bit of Javascript or with something more elegant on the back-end. There's already code for collapsing a div with CSS-only (seen with the config options on the home page), so the ideal way to address this would be to have the filter step of the back-end look for some unique identifier for the section and apply the correct CSS class along with adding a "People also ask" button to toggle visibility. I haven't looked into how the section is constructed on Google's side yet, but that should be doable.
Author
Owner

@mitnworb commented on GitHub (Oct 13, 2020):

Cool. For the time being I am filtering it out in my fork. I am treating fix_question_section function like the remove_ads function.

<!-- gh-comment-id:707953242 --> @mitnworb commented on GitHub (Oct 13, 2020): Cool. For the time being I am filtering it out in my fork. I am treating fix_question_section function like the remove_ads function.
Author
Owner

@benbusby commented on GitHub (Dec 15, 2020):

Fixed in b695179c79. It actually didn't require any Javascript after all, just a simple details element.

<!-- gh-comment-id:745394171 --> @benbusby commented on GitHub (Dec 15, 2020): Fixed in b695179c79c76dbfdf4f00c0bfbf1247e62825d1. It actually didn't require any Javascript after all, just a simple [details element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details).
Author
Owner

@grigsby commented on GitHub (Dec 15, 2020):

Awesome!! Thank you!

<!-- gh-comment-id:745506219 --> @grigsby commented on GitHub (Dec 15, 2020): Awesome!! Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#84
No description provided.