Repository navigation
Preview
URL preview settings for Woggle.
Enable or disable previews globally with a boolean, or selectively enable them for URLs matching specific regex patterns.
# Type: boolean or array of strings
# Values: true, false, or array of regex patterns
# Default: true
[preview]
enabled = trueOnly show previews for matching URLs:
Tip
Use toml multi-line literal strings '''\bfoo'd\b''' when writing a regex. This allows you to write the regex without escaping. You can also use a literal string '\bfoo\b', but then you can't use ' inside the string.
Without literal strings, you'd have to write the above as "\\bfoo'd\\b"
[preview]
enabled = [
'''https?://(www\.)?imgur\.com/.*''',
'''https?://(www\.)?dr\.dk/.*'''
]Exclude URLs from showing previews by providing regex patterns.
# Type: array of strings
# Values: array of regex patterns
# Default: []
[preview]
exclude = []Prevent previews from showing for matching URLs:
Tip
Use toml multi-line literal strings '''\bfoo'd\b''' when writing a regex. This allows you to write the regex without escaping. You can also use a literal string '\bfoo\b', but then you can't use ' inside the string.
Without literal strings, you'd have to write the above as "\\bfoo'd\\b"
[preview]
exclude = [
'''https?://(www\.)?example\.com/.*''',
'''https?://(www\.)?spam-site\.net/.*'''
]Maximum number of previews to show for a single message.
# Type: integer
# Values: any non-negative integer
# Default: 1
[preview]
max_per_message = 1Specific card preview settings.
[preview.card]
exclude = "*" # hide card previews in all channels
include = { channels = ["#woggle"] } # show card previews in #woggleHides URL(s) in messages when their card preview is visible and the specified condition is met.
| Condition | Description |
|---|---|
"trailing" |
URL is hidden when it is at the end of a message and its card preview is visible. |
"contains-only-url" |
URL is hidden when it is the entire message. |
"never" |
URLs are never hidden. |
# Type: string
# Values: "trailing", "contains-only-url", or "never"
# Default: "never"
[preview.card]
hide_url = "contains-only-url"Show image for card previews.
# Type: boolean
# Values: true, false
# Default: true
[preview.card]
show_image = trueRound the corners of the image in the card preview (if shown).
# Type: boolean
# Values: true, false
# Default: true
[preview.card]
round_image_corners = trueMaximum width of the card in pixels.
# Type: number
# Values: any positive number
# Default: 400.0
[preview.card]
max_width = 400.0Maximum height of the description text in pixels.
# Type: number
# Values: any positive number
# Default: 100.0
[preview.card]
description_max_height = 100.0Maximum height of the image in the card preview in pixels.
# Type: number
# Values: any positive number
# Default: 200.0
[preview.card]
image_max_height = 200.0Action when clicking on the card preview image.
| Action | Description |
|---|---|
"open-url" |
Open the URL in the browser. |
"open-image-url" |
Open the image URL in the browser. |
"preview" |
Display a larger version of the image in-app. |
# Type: string
# Values: "open-url", "open-image-url", "preview"
# Default: "open-url"
[preview.card]
image_action = "preview"Exclusion conditions for when card previews will
be hidden. Inclusion conditions will take precedence over exclusion conditions.
You can also exclude all conditions by setting to "all" or "*".
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.card]
exclude = { criteria = [{ server_message = "topic", channel = "#linux" }] } # exclude previews from topic messages in #linuxInclusion conditions for when card previews will
be shown. Card previews will be shown for all conditions (when enabled) unless
explicitly excluded, so this setting is only relevant when combined with the
exclude setting.
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.card]
include = { users = ["BridgeBot"] }og:description is always a string, but due to it being in HTML it needs to be
escaped. Sometimes you may get double-escaped entries in this field, this
setting will allow you to handle this scenario.
Warning
Using this option may break purposely created og:description entries meant to include
HTML escape codes.
# Type: boolean or array of strings
# Values: true, false, or array of regex patterns
# Default: false
[preview.card]
description_decode_html = trueTo whitelist specific domains, you can use an array of regex patterns.
Tip
Use toml multi-line literal strings '''\bfoo'd\b''' when writing a regex. This allows you to write the regex without escaping. You can also use a literal string '\bfoo\b', but then you can't use ' inside the string.
Without literal strings, you'd have to write the above as "\\bfoo'd\\b"
[preview.card]
description_decode_html = [
'''https?://(www\.)?github\.com/.*''',
]Specific image preview settings.
[preview.image]
exclude = "*" # hide image previews in all channels
include = { channels = ["#woggle"] } # show image previews in #woggleAction when clicking on a image. open-url will open the image in the browser, and preview will display a larger version of the image in-app.
# Type: string
# Values: "open-url", "preview"
# Default: "preview"
[preview.image]
action = "preview"Hides URL(s) in messages when their image preview is visible and the specified condition is met.
| Condition | Description |
|---|---|
"trailing" |
URL is hidden when it is at the end of a message and its image preview is visible. |
"contains-only-url" |
URL is hidden when it is the entire message. |
"never" |
URLs are never hidden. |
# Type: string
# Values: "trailing", "contains-only-url", or "never"
# Default: "contains-only-url"
[preview.image]
hide_url = "trailing"Round the corners of the image.
# Type: boolean
# Values: true, false
# Default: true
[preview.image]
round_corners = trueMaximum width of the image in pixels.
# Type: number
# Values: any positive number
# Default: 550.0
[preview.image]
max_width = 550.0Maximum height of the image in pixels.
# Type: number
# Values: any positive number
# Default: 350.0
[preview.image]
max_height = 350.0Exclusion conditions for when image previews
will be hidden. Inclusion conditions will take precedence over exclusion
conditions. You can also exclude all conditions by setting to "all" or "*".
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.image]
exclude = { criteria = [{ server_message = "topic", channel = "#linux" }] } # exclude previews from topic messages in #linuxInclusion conditions for when image previews
will be shown. Image previews will be shown for all conditions (when enabled)
unless explicitly excluded, so this setting is only relevant when combined with
the exclude setting.
# Type: inclusion/exclusion conditions
# Values: any inclusion/exclusion conditions
# Default: not set
[preview.image]
include = { users = ["BridgeBot"] }Control when GIFs play. Default is "animate-on-hover".
With "animate-on-hover", GIFs play in chat when you hover over them. This also
works for images in link cards. Moving the mouse away, scrolling past the image,
switching buffers, or leaving the window stops it. Moving the mouse away keeps
the current frame on screen. Hover again to start over.
Opening an image with the preview action also plays it. It stops when you close the preview or leave its window. Coming back to the window starts it over. Link card images can use their preview action too.
Use "animate-on-preview-action" to play GIFs only when you open the image
preview. Use "disabled" to turn off GIF animations.
# Type: string
# Values: "animate-on-hover", "animate-on-preview-action", "disabled"
# Default: "animate-on-hover"
[preview.image]
animation = "animate-on-hover"Settings to control how the image cache is managed. The cache is stored in:
- Windows:
%AppData%\Roaming\Local\woggle\previews\images\ - macOS:
~/Library/Caches/woggle/previews/images/or$HOME/.cache/woggle/previews/images/ - Linux:
$XDG_CACHE_HOME/woggle/previews/images/,$HOME/.cache/woggle/previews/images/, or$HOME/.var/app/io.github.WoggleSL.Woggle/cache/woggle/previews/images/(Flatpak)
Maximum size in MB for cached preview images, or "unlimited" for an uncapped image cache (not recommended).
# Type: integer
# Values: any non-negative integer or "unlimited"
# Default: 500
[preview.request.image_cache]
max_size = 500Run image cache trimming every N successful image saves. Set to "first-save-only" to disable periodic trimming, and only trim on the first save to the image cache per app session.
# Type: integer
# Values: any non-negative integer or "first-save-only"
# Default: 32
[preview.request.image_cache]
trim_interval = 32Request settings for previews.
The User-Agent sent when fetching link previews. Defaults to Woggle/<version> and can be overridden for sites that require a browser-like User-Agent.
# Type: string
# Values: any string
# Default: "Woggle/<version>"
[preview.request]
user_agent = "Woggle/2026.10"Request timeout in milliseconds. Defaults is 10s.
# Type: integer
# Values: any non-negative integer
# Default: 10000
[preview.request]
timeout_ms = 10000Max image size in bytes. This prevents downloading responses that are too big. Default is 10mb.
# Type: integer
# Values: any non-negative integer
# Default: 10485760
[preview.request]
max_image_size = 10485760Max bytes streamed when scraping for opengraph metadata before cancelling the request. This prevents downloading responses that are too big. Default is 500kb.
# Type: integer
# Values: any non-negative integer
# Default: 512000
[preview.request]
max_scrape_size = 512000Number of allowed concurrent requests for fetching previews. Reduce this to prevent rate-limiting.
# Type: integer
# Values: any non-negative integer
# Default: 4
[preview.request]
concurrency = 4Number of milliseconds to wait before requesting another preview when number of requested previews > concurrency.
# Type: integer
# Values: any non-negative integer
# Default: 500
[preview.request]
delay_ms = 500Woggle: moderation IRC client for ScoutLink chanops, based on Halloy · Not an official ScoutLink product (logo usage) · Found a mistake? Open an issue or edit the page.
English · Norsk · Dansk · Svenska
Woggle
Getting started
Configuration
- Inclusion/Exclusion Conditions
- Actions
- Buffer
- Channel Monitor
- Check for Update on Launch
- Commands
- Config Editor
- Context Menu
- CTCP
- Display
- File Transfer
- File Upload
- Font
- Highlights
- Keyboard
- Logs
- Metadata
- Notifications
- Pane
- Platform Specific
- Preview
- Proxy
- Runtime
- Scale factor
- Servers
- Sidebar
- Themes
- Tooltips
- Window
Guides
- Building for Flatpak
- Building for macOS
- Connect with soju
- Connect with ZNC
- TLS Troubleshooting
- Command Line
- Custom Themes
- Exec Command
- Example Server Configurations
- Monitor Users
- Multiple Servers
- Optional Features
- Portable Mode
- Pronunciation
- Reduce Noise
- Single Pane
- Storing Passwords in a File
- Storing Passwords in the System Keyring
- File Uploads
- Internal Buffers
- Unix Signals
- Text Formatting
- URL Schemes
- Flatpak Tips