A ""funny"" youtube shorts bingo image
you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 8 months ago (4 children)

What does this do? I’d like to know, specifically, before I add some random code from the Internet into my ad blocker.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 8 months ago* (last edited 8 months ago) (1 child)

    Blocks shorts.

    uBlock filters use a modified form of CSS selectors to determine what parts of a page to hide.

    If you know vaguely how CSS selectors work you can infer that the filter definition is matching on youtube.com and is finding an element whose title property is shorts - so it seems to be doing an appropriate thing.

    The important part is that uBlock filters are not executable; you can't inject malicious code through one, as they are simply patterns which describe what parts of a page should be hidden, and hiding content is all they can do.

    The worst that a filter could do is hide something that shouldn't be hidden.

  • source
  • parent
  • hideshow 1 child comment