initial commit

This commit is contained in:
Han Seung Min - 한승민 2024-05-10 02:59:44 +09:00
parent 1a3a378fb1
commit 0a39788aff
No known key found for this signature in database
GPG key ID: 9F3C237B3396AC97
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# YoutubeDescription
Adds descriptions to youtube video embeds
![demo](https://github.com/Vendicated/Vencord/assets/82430093/a69a48fa-d1a5-490d-a917-5c60e3fc38a8)

View file

@ -0,0 +1,23 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "YoutubeDescription",
description: "Adds descriptions to youtube video embeds",
authors: [Devs.arHSM],
patches: [
{
find: ".default.Messages.SUPPRESS_ALL_EMBEDS",
replacement: {
match: /case \i\.MessageEmbedTypes\.VIDEO:(case \i\.MessageEmbedTypes\.\i:)*break;default:(\i=this\.renderDescription\(\))\}/,
replace: "$1 break; default: $2 }"
}
}
]
});