add any image to the favorite gifs tab
#FavouriteAnything
1 messages · Page 1 of 1 (latest)
love
false advertising
i cannot, in fact, favourite anything
send first image here
ninoware
GIF text does appear in the top left for like 2 seconds on some then vanishes
it works in this embed
weirdd
I think this is the condition that is checked when the fav button is rendered, the gif tag is added separately
so should i just patch this regex
to like .+
no 😭 that's horrible (ik i did that in my snippet)
patch the component maybe
like you could just always make it return that jsx
I wonder whether that would break in combination with other image accessories
hmm
thought i'd check how the bd plugin does it, and it's 12000 lines long 
they're rawdogging react dom AND real dom at the same time
its actually like 4000 lines, most of that is tanslations
why?
shitcode
guh why the friend invite
accident
ok
I'm trying to port a DevilBro BD plugin to Vencord and it's actually hell
If you're rewriting a BD plugin from scratch, don't ever use the original code as reference
or you'll end up like this guy #🧊-off-topic-iceman-only message
turns out these favorite medias show up on mobile too
Hi, i know this is still not working but is there a fix yet?
@onyx sinew can I do a PR to make this work with videos and attachments and stuff
sure
rich embeds are kinda weird but the rest should work fine
https://git.nin0.dev/userplugins/favouriteAnything/pulls/1
nin0git: A never-online, self-hosted Forgejo
This should work for most images and videos that were sent as an attachment, or embedded in a basic embed.
Rich embeds still have some issues, namely the fact that the video source url sometimes points to the static thumbnail instead (?), and I don't know what causes that. It's not caused by any ...

~~Figured out how to make this work with rich embeds, what should be the default behavior?
- Save the original link (eg
vxtwitter.com/...). This is cleaner, but the embed content can change over time. Could lead to abuse. - Save the media proxy link (eg
images-ext-1.discordapp.net/...). This is kinda messy, but there wont be an embed border and is impossible to abuse due to the unique hash~~
nvm, turns out some providers have custom short links that also point to the raw video file. It's a nice middleground between the two
Because of it, my Discord now crashes every time I open any chat in the guild. (i didnt try dm`s, but of friends tab did not crashes)
||at least of equicord||
Do you see any errors in the console? (ctrl-shift-i, then click on the console tab)
uhh nino git seems to be blocked on my network wtf
anyways here's the fix
go to vencord/src/userplugins/favouriteAnything (or wherever your local vencord copy is)
copy the file there
and run git apply fix.patch
I dont even know who the real nin0 is 😭
@onyx sinew
@orchid prism hiii can u commit this patch tyy
?remind 6am
Alright @orchid prism, in 19 hours, 57 minutes and 41 seconds: …
?remind 2h
Alright @orchid prism, in 2 hours: …
no ssh just exploded
this doesn't persist restart for some reason
@orchid prism, <t:1769248951:R>: …
@orchid prism, <t:1769248939:R>: …
is it possible to make also allow you to favorite mp3 / audio files
I wanna keep this compatible with vanilla discord, so for previews we would have to use a pregenerated image, maybe showing the audio file name and length (which is definitely doable)
however discord doesn't embed external audio files in any way, which is kinda annoying and I dont know if there's a way around this
maybe it could be sent as a voice message, but you no longer have access to the original asset id, so I doubt discord would allow you to send a random file in this way
yup this shows up fine on desktop
Maybe we could do a combined approach where with the plugin you're able to reupload the favorited audio files and without it it just sends a link
yeah
discor just broke video favoriting in the new canary build, the patch no longer works
@orchid prism thoughts on this UI? (demo image)
I realized it would be super easy to extend "favouriting mp3 files" to "favouriting files" (turns out all types of files can have the same sort of decorator button with little that needs to be changed)
however idk whether to send the file when the user clicks on it, or allow for interaction (eg if I want to play an audio file before sending it)
or maybe have a send button on the right?
id say more this
alright
also would you be willing to create and host a very simple placeholder image service, similar to https://placehold.co/600x400?text=file.mp3 ?
I need a thumbnail for these files for the vanilla client which would show basic info like the file name and maybe file size
but the only way I found to manually generate a valid cdn/media.discordapp.com link without a message is to use the unfurl embed endpoint which only works with full website embeds
so the process would be
- the plugin dynamically generates a link like
embed.nin0.dev/?name=file.mp3(I'll specify the full details later) - client sends a request to
/unfurler/unfurlwith this link - the awesome nino backend generates a simple embed with a thumbnail image
- the thumbnail image gets saved
Discord Userdoccers
Messages are the core of Discord. They are the primary way users communicate with each other, and they can contain text, images, and other media. Embeddable content, such as polls, system messages, an...
oh damn placehold doesn't even embed on discord at all
interesting
yeah i could do
yayyy thanks
i also like this version more

Small progress update, I've added an option to favourite external videos (you can identify those by the "open in browser" icon)
Ill hopefully have the whole update finished during the next week
It's finally done :D @orchid prism
I used a random japanese thumbnail service for the time being, so if you notice that favouriting a file takes too long, that's most likely the cause. It'd be cool if you make a custom one tho once you have time
lmk if you find any bugs, I've spent so long on the files thing that sometimes I managed to break gifs without even noticing
TODO:
fix mosaic embed styles
fix long file names
TODO: Fix not being able to send files in dms
favourite star for files aint existing for me
also, why is the fav icon in the top right when the discord default is alr in the top left
did you update to the latest version of the plugin?
why would I be here if not
They use completely separate components for the gif favourite button and the file accessories, and it was easier to inject into the accessories thingy 😭
aaaah gotcha
hmm, is it just this one file or does this happen with all files?
hmm, I've tried it with pdf files and it seemed to work fine on my machine ™
do you use any plugins that could be interfering?

lemme investigate then
ive disabled every plugin except yours and themes as well and its still broken
gimme some time to enable them again 
😭
could you send me one of the files that are broken (if it doesnt contain anything personal)
Thanks to zero for notifying me, I didn't realize that discord was once again using and old ahh electron version which would make it error when generating a url for the ⭐ button
I've added a polyfill for the missing methods and I'll PR it tomorrow
The plugin should otherwise work fine on vesktop and web
I wonder if vee would accept this as an official plugin 
btw i PRd the fixes if u want to check
does this work? I just installed it and nothing seems to have changed
oh no embed perms
I must be installing them wrong. I followed the guide but I don't see 3rd party plugins anywhere in the app
new to this
I got it working. I messed something up 
Plugin never loads. I built and even updated my vencord (equicord actually), even ran it through userplugininstaller in case I did anything wrong
Was met with:
"Error: Error invoking remote method
"VencordPluginNative_Userplugininstaller_initPlugi
ninstall: reply was never sent"
What was it if I may ask?
I might have the same issue
That error is caused by that plugin
No I understand
My issue is with this plugin not loading
I simply used nino's other plugin to see if it does load correctly
But it didn't on both sides
I was followng the last step all wrong. the rebuild vencord
You used pnpm build right?
I'm running that command in the parent folder (not src)
at first no I didn't do it at all but when I did it didn't work at first. I ended up doing the whole vencord install process again and it was fine
Never mind that's probably not my issue then
run it in the vencord folder
Pnpm build works for me in other plugins
What I did
Thanks regardless

is this fixed or smt
yeah, you should update if you havent already
TODO:
add support for custom file titles cuz apparently that's a thing now
this gets converted to "Idk_example_title_lol" which looks ugly
you guys should add banners to favorite cause It's technically an image
wdym by banners
Oh hmm I guess that could be done but it's kinda niche
Isn't there already a plugin that allows opening an icon/banner in an image gallery? That would make it easier to directly patch the gallery instead of an invite component without breaking anything
do you mean ViewIcons?
vp iconv
Couldn't find a plugin with that name, and there are no plugins with similar names.
yeah yeah I forgot the name
I might be stupid but it looks like it doesn't have an option to view invite assets in a gallery view 😭
this plugin so good it saves on discord mobile
i can't send proof but i have a zip file in my regular discord's favorites

i like it
😭
TODO: add support for message components (specifically the gallery thing and inline files) #🌺-regulars message
@lone fable i dont get it, does this plugin work? and if it does then what are the steps i have to do to get it
nope, i was just asking about it in vencord help
Follow these steps, this is required for installing any user plugin
As an alternative, you can also get the plugin on Equicord, where it's included in the preinstalled plugins
what is equicord 😭
It's a vencord fork with a bunch of extra plugins added by default
is it.. safe?
Hard to say, but I've never heard of any security issues on equi
i think im gonna try getting git and pnpm or wtv its called
mhm
@lone fable check dms i asked u a question
I just found out that the feature where unfavouriting a gif doesn't immediately hide it is probably a bug in favGifSearch 
I tried to replicate that behavior for the files tab because I thought that's how it's supposed to work
oh.. it's sad because it's not a bad feature
I think we can keep it this way, dw
hopefully favgifsearch never fixes it either
yayyy