halloy icon indicating copy to clipboard operation
halloy copied to clipboard

have preview be able to use an allowlist of url patterns

Open Summertime opened this issue 7 months ago • 3 comments

e.g.

[preview]
    enabled = [
        "*://github.com/*",
        "*://imgur.com/*",
        # etc
    ]

I think this would be a good balance between having previews but not having major privacy issues with random URLs

Summertime avatar May 16 '25 01:05 Summertime

You can set allowlists via the configuration options preview.image.include and preview.card.include. You'll want to set the corresponding exclude configuration options to ["*"] in order to default to not showing image/card previews.

andymandias avatar May 19 '25 18:05 andymandias

That only applies for including/excluding channels, not URLs, right?

Summertime avatar May 25 '25 07:05 Summertime

Oh! Yes, sorry I don't know how I misread your request so completely. Include/exclude by URLs in addition to by channels would be a great feature addition.

andymandias avatar May 25 '25 07:05 andymandias