Skip to content

Selectors were hiding search results.#18

Merged
mkazin merged 8 commits intomainfrom
dev
Jan 15, 2026
Merged

Selectors were hiding search results.#18
mkazin merged 8 commits intomainfrom
dev

Conversation

@mkazin
Copy link
Owner

@mkazin mkazin commented Apr 30, 2025

Commented out breaking code until I fix it.
Updated "People also ask" selector so it gets hidden

Commented out breaking code until I fix it.
Updated "People also ask" selector so it gets hidden
Copilot AI review requested due to automatic review settings April 30, 2025 20:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issues with hidden search results by updating selectors and modifying execution timing for style injections. Key changes include switching the script to run at document-start, updating the "People also ask" selector to a more specific parent-based approach, and adding styling adjustments for the AI overview section.

Comments suppressed due to low confidence (1)

Google/GoogleQuestionSuggestionRemover.user.js:11

  • Changing the run-at timing to document-start may affect when DOM elements are available for styling. Please verify that this timing change aligns with the intended load behavior to avoid potential issues with element availability.
// @run-at       document-start

HEADER_SELECTOR
, QUESTION_SELECTOR
, PEOPLE_ALSO_ASK_SELECTOR
// , WHAT_PEOPLE_ARE_SAYING_SELECTOR
Copy link

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider removing the commented-out selectors if they are no longer needed, to reduce clutter and avoid potential confusion during future maintenance.

Copilot uses AI. Check for mistakes.
mkazin added 7 commits June 1, 2025 12:17
Attempt at removing YouTube "Playables" section
* Split whenElementAppears to onceElementAppears and wheneverElementAppears
* Added disconnectOnDetect option to constructor to support this
* Added debugName option to constructor to help identify multiple trackers
* Added static array of tracker references to avoid garbage collection
* Fix: Proper export (fixes #15)
* Fix: Matching element passed to handler rather than mutation element
* Fix: Iterating over all mutations to search for selector match
* Documentation updates
* Addition of RedditSubredditHider script which uses ObserverTracker
@mkazin mkazin merged commit 4ad1047 into main Jan 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant