1. 24

Hello, I wanted to share some examples of how to hide stories from view using uBlock Origin’s filtering syntax, since the site does not implement custom filters.

You’ll need to enter these filters, one per line, in uBlock’s Origin’s settings, under the tab My filters. You will need to select Enable my custom filters too.

Example using the submission’s title:
lobste.rs##li.story:has(span[role="heading"].link > a:has-text("LLM")):remove()
Example using the submission’s domain:
lobste.rs##li.story:has(a.domain:has-text("oilshell")):remove()
  1.  

    1. 6

      The site does support filtering via tags. Just unsubscribe from the tags you don’t care about.

      1. 11

        The tag system clearly can not do the same.

        1. 3

          I have never said that. My comment was to

          since the site does not implement custom filters

          Unsubscribing from tags is to me a custom filter. I am not here to split hairs I want to point out a feature that is probably not known by quite a few people here.

      2. 6

        actually, I would mostly like to hide specific sites or submissions from specific users

      3. 4

        The uBlock Origin method allows hiding submissions with specific keywords in their titles, not just submissions with specific tags.

    2. 4

      Awesome!

      Finally I can hide the “What are you doing this week”:

      lobste.rs##li.story:has(span[role="heading"].link > a:has-text("What are you doing this week")):remove()

      1. 5

        Yeah, I was annoyed that the tag proposal for weekly posts failed, seemingly based on ad hominem arguments about the proposer rather than on the merits of the tag itself.

    3. 3

      Thanks, I will use this to hide news articles about football (soccer) on my news sites. If you create a custom filter list accessible via a URL, you can easily imports the rules on other devices.