11 votes

Feature request: Filter out sites

I see we can filter by topic tags (https://tildes.net/settings/filters), and that's nice.

What I'd also like to be able to do is filter out by site:somedomain.com.

I went to look at the tildes source code, but, in my brief visit, it didn't strike me as something I could quickly cobble a pull request together for.

The main thing I want this for is to filter out YouTube. Nothing wrong with other people liking Tildes recommendation of YT videos, but I come to Tildes for things to read, not things to watch.

8 comments

  1. [3]
    Adys
    Link
    For your particular use case you can filter out the “videos” tag. Have you tried that?

    For your particular use case you can filter out the “videos” tag. Have you tried that?

    11 votes
    1. [2]
      Pistos
      Link Parent
      Application of this tag looks inconsistent. (Counter)example: https://tildes.net/~comp/11xu/harden_your_linux_server_using_ssh_keys_and_turn_off_password_auth doesn't have a videos tag on it.

      Application of this tag looks inconsistent. (Counter)example: https://tildes.net/~comp/11xu/harden_your_linux_server_using_ssh_keys_and_turn_off_password_auth doesn't have a videos tag on it.

      2 votes
      1. cfabbro
        (edited )
        Link Parent
        It's not inconsistent on purpose, it's just that tags are all added manually, and I happened to miss that one. Thanks for pointing it out. Fixed. See below.

        It's not inconsistent on purpose, it's just that tags are all added manually, and I happened to miss that one. Thanks for pointing it out. Fixed.

        p.s. When I get up in the morning I will add a Tildes Gitlab issue for this suggestion. I could have sworn we had a feature request for this already, but I couldn't find one, so I guess we never got around to adding it.

        See below.

        11 votes
  2. [2]
    TemulentTeatotaler
    (edited )
    Link
    If you want a quick Tamper/Greasemonkey script (and if Adys solution isn't better) I think this should work: // ==UserScript== // @name Tildes Site Block // @match https://tildes.net/* // @icon...

    If you want a quick Tamper/Greasemonkey script (and if Adys solution isn't better) I think this should work:

    // ==UserScript==
    // @name         Tildes Site Block
    // @match        https://tildes.net/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=tildes.net
    // ==/UserScript==
    
    (function() {
        'use strict';
        
        // Sites you want to remove
        var sites = ["youtube.com"]
        var sources = document.getElementsByClassName('topic-info-source');
        for(var source of sources)
            if(sites.find(el => el.includes(source.title)))
                source.parentNode.parentNode.style = 'display: none'; //or just .remove() it
    }
    
    6 votes
    1. Pistos
      Link Parent
      Thanks for your suggestion. Eyeballing things, it does look like it would work. I seem to have a workable CSS-only solution.

      Thanks for your suggestion. Eyeballing things, it does look like it would work.

      I seem to have a workable CSS-only solution.

      3 votes
  3. oidar
    Link
    In case anybody is trying to get this work in firefox with violentmonkey, I had to make some changes: // ==UserScript== // @name Tildes Site Block // @match https://tildes.net/* // @icon...

    In case anybody is trying to get this work in firefox with violentmonkey, I had to make some changes:

    // ==UserScript==
    // @name         Tildes Site Block
    // @match        https://tildes.net/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=tildes.net
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        // Sites you want to remove
        var sites = ["youtube.com"];
        var sources = document.getElementsByClassName('topic-info-source');
        for(var source of sources)
            if(sites.find(el => el.includes(source.title)))
                source.parentNode.parentNode.style = 'display: none'; //or just .remove() it
    })();
    
    3 votes
  4. synergy-unsterile
    Link
    For anyone who doesn't want to use a userscript, here are some uBlock Origin filters that should remove YouTube submissions from your feed:...

    For anyone who doesn't want to use a userscript, here are some uBlock Origin filters that should remove YouTube submissions from your feed:

    tildes.net##article:has(.topic-title:has([href^="https://www.youtube.com/watch"]))
    tildes.net##article:has(.topic-title:has([href^="https://youtu.be/"]))
    

    See the wiki for usage instructions and more example filters using uBlock Origin.

    3 votes
  5. cfabbro
    (edited )
    Link
    I was going to create a Gitlab issue for this idea, but it turns out there already is one: https://gitlab.com/tildes/tildes/-/issues/117

    I was going to create a Gitlab issue for this idea, but it turns out there already is one:
    https://gitlab.com/tildes/tildes/-/issues/117

    2 votes