mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 10:27:03 -04:00
Better authors field (#18)
This commit is contained in:
parent
3e64054283
commit
ef353f1d66
22 changed files with 71 additions and 26 deletions
|
@ -1,8 +1,9 @@
|
|||
import { Devs } from "../utils/constants";
|
||||
import definePlugin from "../utils/types";
|
||||
|
||||
export default definePlugin({
|
||||
name: "BetterGifAltText",
|
||||
author: "Vendicated",
|
||||
authors: [Devs.Ven],
|
||||
description:
|
||||
"Change GIF alt text from simply being 'GIF' to containing the gif tags / filename",
|
||||
patches: [
|
||||
|
@ -30,7 +31,7 @@ export default definePlugin({
|
|||
let url: string = props.original || props.src;
|
||||
try {
|
||||
url = decodeURI(url);
|
||||
} catch {}
|
||||
} catch { }
|
||||
|
||||
let name = url
|
||||
.slice(url.lastIndexOf("/") + 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue