• homes@piefed.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

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

    • tiramichu@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 hours ago

      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.

    • remon@ani.social
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      It removes short-videos from the main page and search results, as well as removing the link from the menu.