mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 04:05:57 +03:00
[GH-ISSUE #113] [FEATURE] Collapse "People also ask" sections in results #84
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
@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).
@mitnworb commented on GitHub (Oct 12, 2020):
Is there a way to get rid of the section all together?
@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.
@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.
@benbusby commented on GitHub (Dec 15, 2020):
Fixed in
b695179c79. It actually didn't require any Javascript after all, just a simple details element.@grigsby commented on GitHub (Dec 15, 2020):
Awesome!! Thank you!