Fix plugins on new update

This commit is contained in:
Vendicated 2022-11-02 20:13:55 +01:00
parent 676f5c7e30
commit 5e1b42120c
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ export default definePlugin({
}]
},
{
find: "if(e.altKey){",
find: '("interactionUsernameProfile',
replacement: {
match: /var \w=(\w)\.id,\w=(\w)\.id;return .{1,2}\.useCallback\(\(?function\((.{1,2})\){/,
replace: (m, message, channel, event) =>

View File

@ -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))",
},
},
],