aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/betterGifAltText.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-02 20:13:55 +0100
committerVendicated <vendicated@riseup.net>2022-11-02 20:13:55 +0100
commit5e1b42120c647afb0fbd531d7fa795ef606742db (patch)
treefc625956f0d8d3215670a7e51f207ebdded15c65 /src/plugins/betterGifAltText.ts
parent676f5c7e30d5222d767e01c631ac45e8cbfbccfe (diff)
downloadVencord-5e1b42120c647afb0fbd531d7fa795ef606742db.tar.gz
Vencord-5e1b42120c647afb0fbd531d7fa795ef606742db.tar.bz2
Vencord-5e1b42120c647afb0fbd531d7fa795ef606742db.zip
Fix plugins on new update
Diffstat (limited to 'src/plugins/betterGifAltText.ts')
-rw-r--r--src/plugins/betterGifAltText.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/betterGifAltText.ts b/src/plugins/betterGifAltText.ts
index dbb4d12..f185e04 100644
--- a/src/plugins/betterGifAltText.ts
+++ b/src/plugins/betterGifAltText.ts
@@ -16,6 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+
import { Devs } from "../utils/constants";
import definePlugin from "../utils/types";
@@ -36,9 +37,9 @@ export default definePlugin({
{
find: 'preload:"none","aria',
replacement: {
- match: /\?.{0,5}\.Messages\.GIF/,
+ match: /(?<==(.{1,3})\.alt.{0,20})\?.{0,5}\.Messages\.GIF/,
replace:
- "?(e.alt='GIF',Vencord.Plugins.plugins.BetterGifAltText.altify(e))",
+ "?($1.alt='GIF',Vencord.Plugins.plugins.BetterGifAltText.altify($1))",
},
},
],