Show favicons for external links

This commit is contained in:
2026-01-28 16:41:08 +01:00
parent e6d6ad3c7b
commit a5b33c1b8d
4 changed files with 154 additions and 0 deletions

View File

@@ -275,6 +275,19 @@ Behaviour:
Scratchpads render the referenced file as wikitext and (when you have edit rights on the host page) provide an inline editor that saves directly to the backing file.
### 7) Link Favicons (automatic)
External links automatically display the favicon of the linked website. This feature:
- Uses DuckDuckGo's favicon service (`icons.duckduckgo.com`)
- Works on all external links (class `urlextern`)
- Shows grayscale icons that become colored on hover
- Browser handles caching; no server-side storage needed
No configuration required. The feature is enabled by default for all external links.
Based on the [linkfavicon plugin](https://github.com/shaoyanmin/linkfavicon) by Shao Yanmin.
## Inline options reference (directory/images)