Skip to content

New plugin: FavouriteAnything - #4444

Open
Davr1 wants to merge 18 commits into
Vendicated:mainfrom
Davr1:favouriteAnything
Open

New plugin: FavouriteAnything#4444
Davr1 wants to merge 18 commits into
Vendicated:mainfrom
Davr1:favouriteAnything

Conversation

@Davr1

@Davr1 Davr1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This plugin allows you to add common media and file types to your favourites (including images, videos, audio files, text files, content within rich embeds, external youtube/tiktok embeds, cv2 file/media components, clips, etc), and is compatible with the vanilla client, so anything you favourite will be displayed in the gif picker as a regular image/video (if possible) or a simple thumbnail with the proper source url.

Favorite button is displayed either on the left for basic attachments, or on the right grouped with other actions
image
Favourite files live in a separate tab, and are fully interactive. Plugin is made to be extensible so adding another type of favouritable item would take ~50 lines tops, however the split between "media" and "files" already covers most use cases
image
What custom non-media items look like with the plugin disabled. Clicking on the thumbnail will send the original attachment url. Attachments are still searchable given the fact that the filename is used in the thumbnail url itself
image

This plugin has been in Equicord (and vencor #unofficial-plugins) for a while now so most edge cases are already handled correctly.
Supersedes #2091.

Checklist before submitting

  • I have read the CONTRIBUTING.md file and made sure this pull request complies with it
  • This pull request was written by me, and not an AI agent

Comment thread src/plugins/favouriteAnything/components.tsx Outdated
Comment thread src/plugins/favouriteAnything/index.tsx Outdated
Comment thread src/plugins/favouriteAnything/index.tsx Outdated
Comment thread src/plugins/favouriteAnything/index.tsx Outdated
Comment thread src/plugins/favouriteAnything/stores.ts Outdated
@Davr1

Davr1 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

I can finally remove the polyfill
image

@Davr1

Davr1 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Updated the attachment thumbnails to use tiny svgs instead of an external placeholder image service (Thanks fres!)
image
This also means one less patch since the thumbnail can be generated fairly cheaply at runtime

@nin0-dev

Copy link
Copy Markdown
Contributor

does it work on iPhone

@Davr1

Davr1 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Mobile can't render inline svgs I think (haven't tested on iphone)
at least the expression picker search still works so if you know what the file is called you can find it blindly

Maybe I could add a toggle to choose between inline svg and external bitmap thumbnails (which would have to use an external service, since storing a bitmap in the protobuf would be really wasteful)

@Davr1

Davr1 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Added mobile compatible thumbnails generated with placeholder.nin0.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants