youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Remove useless search results

Open chirag127 opened this issue 3 years ago • 10 comments

Description : Just like remove related search results option also provide option to remove People also watched,Learn while you're at home,Watch again(only come if you already watched some videos related to the search query ),For you,Top news search results and more preferably also provide option to remove all useless search remove as it might be annoying for anyone to enable all the option one by one .

Issue URL (example) : https://www.youtube.com/results?search_query=russia

Screenshots:

image

image image image image


chirag127 avatar Jun 26 '21 05:06 chirag127

we can add it here
https://github.com/code4charity/YouTube-Extension/blob/585957d46d79e6606b650fb1d48fdaec2a5f9e01/content-styles.css#L200

each box is //*[@id="dismissible"]
identified only by the content of a <span id="title"> /html/body/ytd-app/div/ytd-page-manager/ytd-search/div[1]/ytd-two-column-search-results-renderer/div/ytd-section-list-renderer/div[2]/ytd-item-section-renderer/div[3]/ytd-shelf-renderer[2]/div[1]/div[1]/div/h2/span

ImprovedTube avatar Jun 26 '21 16:06 ImprovedTube

we can also make thumbnails smaller, as they force a lot of blank space & scrolling.

and move all the "dismissible"'s into a "secondary" column,
(search results are div id="columns" > div id="primary", while youtube's css also knows "secondary" from video pages...)

#948

ImprovedTube avatar Jun 26 '21 16:06 ImprovedTube

By the way , dismissible Id is used by all videos. No results when I block dismissible Id elements.

chirag127 avatar Jun 26 '21 17:06 chirag127

#dismissible {display:none;}
? (on youtube.com/results?search_query)

ImprovedTube avatar Jun 27 '21 18:06 ImprovedTube

why close?

ImprovedTube avatar Jul 04 '21 21:07 ImprovedTube

the solutions stated above do not work

my current solution is to use uBlock (Origin ofc) with these rules for yt search:

  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(People also watched)
  
  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(For you)
  
  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(Previously watched)
  

imho there is no good reason why code4charity/YouTube-Extension should do content blocking, when there is a popular content blockin plugin installed by most powerusers ;)

allanlaal avatar Jan 11 '22 23:01 allanlaal

the solutions state above do not work

my current solution is to use uBlock with these rules for yt search:

  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(People also watched)
  
  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(For you)
  
  ##ytd-shelf-renderer.ytd-item-section-renderer.style-scope > .ytd-shelf-renderer.style-scope:has-text(Previously watched)
  

imho there is no good reason why code4charity/YouTube-Extension should do content blocking, when there is a popular content blockin plugin installed by most powerusers ;)

Well menifest v3 is going to become compulsory soon and the has-text rules will be off no use.

chirag127 avatar Jan 12 '22 06:01 chirag127

luckily that only applies to Chrome and its derivates as of 2023-01-01 Firefox should be fine

allanlaal avatar Jan 18 '22 17:01 allanlaal

By the way, I have a better solution of the issue. Instead of removing these too many sections what we can do is that select video in type in filters . But with expense of no playlist , no channel . By the way I'm fine with that. Or maybe I should make a another feature requests for to make one of the filters default.

chirag127 avatar Jan 18 '22 19:01 chirag127

I changed my mind. I think its better if code-for-charity/YouTube-Extension is a one-click solution to fix all youtubes shitty behaviour

code for solution: https://greasyfork.org/en/scripts/441189-youtube-hide-for-you-suggestion-when-search

allanlaal avatar May 30 '22 03:05 allanlaal