halloy
halloy copied to clipboard
have preview be able to use an allowlist of url patterns
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
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.
That only applies for including/excluding channels, not URLs, right?
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.