Chat+ link previews: players for Vimeo and SoundCloud too, image links show the image

The YouTube-only field becomes a general embed address, made natively only for the frame hosts
X's chat CSP allows (www.youtube.com, player.vimeo.com, w.soundcloud.com) and re-checked in the
page. A link to an image previews the image itself. YouTube's thumbnail comes as data.
This commit is contained in:
CRTkafa 2026-10-10 21:56:46 +08:00
parent c03f1a989b
commit e90b468359
7 changed files with 115 additions and 32 deletions

View file

@ -3,7 +3,7 @@
## Unreleased
### New
- **Link previews in chats (Chat+).** X's web chat shows a link as a bare card with only the site's name. wayBetter shows the page's title, text and picture under the message, and for YouTube the video, playable right in the chat. Only the link is sent to its site (no cookies, never the message or who sent it), and nothing is saved. On by default; Chat+ → Link previews turns it off.
- **Link previews in chats (Chat+).** X's web chat shows a link as a bare card with only the site's name. wayBetter shows the page's title, text and picture under the message, an image link's image, and for YouTube, Vimeo and SoundCloud the video or track, playable right in the chat (Spotify and other sites get a card that opens the link). Only the link is sent to its site (no cookies, never the message or who sent it), and nothing is saved. On by default; Chat+ → Link previews turns it off.
## 1.0.2