Better authors field (#18)

This commit is contained in:
Ven 2022-10-01 02:27:28 +02:00 committed by GitHub
parent 3e64054283
commit ef353f1d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 71 additions and 26 deletions

View file

@ -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)