fix: improve shorts filtering in search results to catch new formats#84
fix: improve shorts filtering in search results to catch new formats#84Wydady13 wants to merge 1 commit intoinsin:mainfrom
Conversation
|
Thanks! We haven't seen the new Have you seen grid and rich item renderer elements in Search results? Those (usually) only appear on pages with grid layouts, and we normally only add selectors we've verified have an effect. The new |
|
Hi @insin,
Please let me know if there are any other changes you'd like me to make or if further testing is required. I appreciate your guidance and look forward to improving the extension together. |
Fix: Improve shorts filtering in search results to catch new formats
This PR addresses issue #73 where shorts were appearing in search results despite the extension being configured to hide them.
Problem
YouTube has updated how shorts are displayed in search results, using different DOM elements and structure than what the extension was previously targeting. This allowed shorts to "leak through" and appear in search results when they should be hidden.
Solution
Added more comprehensive CSS selectors to target various ways YouTube displays shorts in search results:
For desktop:
ytd-reel-item-rendererelementsFor mobile:
Testing
The fix has been tested on a real YouTube search results page and successfully hides shorts that were previously visible.
Screenshots
See issue #73 for reference screenshots of the problem.