mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 01:46:23 +00:00
initial commit
This commit is contained in:
parent
1a3a378fb1
commit
0a39788aff
2 changed files with 28 additions and 0 deletions
5
src/plugins/youtubeDescription/README.md
Normal file
5
src/plugins/youtubeDescription/README.md
Normal 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)
|
23
src/plugins/youtubeDescription/index.tsx
Normal file
23
src/plugins/youtubeDescription/index.tsx
Normal 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 }"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
Loading…
Reference in a new issue