Fix plugins on new update
This commit is contained in:
parent
676f5c7e30
commit
5e1b42120c
|
@ -35,7 +35,7 @@ export default definePlugin({
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "if(e.altKey){",
|
find: '("interactionUsernameProfile',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /var \w=(\w)\.id,\w=(\w)\.id;return .{1,2}\.useCallback\(\(?function\((.{1,2})\){/,
|
match: /var \w=(\w)\.id,\w=(\w)\.id;return .{1,2}\.useCallback\(\(?function\((.{1,2})\){/,
|
||||||
replace: (m, message, channel, event) =>
|
replace: (m, message, channel, event) =>
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { Devs } from "../utils/constants";
|
import { Devs } from "../utils/constants";
|
||||||
import definePlugin from "../utils/types";
|
import definePlugin from "../utils/types";
|
||||||
|
|
||||||
|
@ -36,9 +37,9 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: 'preload:"none","aria',
|
find: 'preload:"none","aria',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\?.{0,5}\.Messages\.GIF/,
|
match: /(?<==(.{1,3})\.alt.{0,20})\?.{0,5}\.Messages\.GIF/,
|
||||||
replace:
|
replace:
|
||||||
"?(e.alt='GIF',Vencord.Plugins.plugins.BetterGifAltText.altify(e))",
|
"?($1.alt='GIF',Vencord.Plugins.plugins.BetterGifAltText.altify($1))",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue