From 18df66a4b4cdbef73fff82e184c36566fc9a3d75 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 22 Jun 2024 00:31:28 +0200 Subject: [PATCH 1/4] fix SpotifyControls --- src/plugins/spotifyControls/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/spotifyControls/index.tsx b/src/plugins/spotifyControls/index.tsx index 033d49357..b811b2eed 100644 --- a/src/plugins/spotifyControls/index.tsx +++ b/src/plugins/spotifyControls/index.tsx @@ -48,10 +48,10 @@ export default definePlugin({ }, patches: [ { - find: "showTaglessAccountPanel:", + find: '"AccountConnected"', replacement: { // react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah }) - match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?showTaglessAccountPanel:)/, + match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,hidePrivateData:)/, // react.jsx(WrapperComponent, { VencordOriginal: AccountPanel, ... replace: "$self.PanelWrapper,{VencordOriginal:$1," } From 0a4bcd5ccd037eb155b4974af9c683846667a00e Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:47:44 -0300 Subject: [PATCH 2/4] fix cache find --- src/webpack/webpack.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webpack/webpack.tsx b/src/webpack/webpack.tsx index 8388a3fd8..c7dbaa234 100644 --- a/src/webpack/webpack.tsx +++ b/src/webpack/webpack.tsx @@ -469,11 +469,11 @@ export const _cacheFind = traceFunction("cacheFind", function _cacheFind(filter: if (!mod?.loaded || mod?.exports == null) continue; if (filter.$$vencordIsFactoryFilter && filter(wreq.m[key])) { - return { result: exports, id: key, exportKey: null, factory: wreq.m[key] }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] }; } if (filter(mod.exports)) { - return { result: exports, id: key, exportKey: null, factory: wreq.m[key] }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] }; } if (typeof mod.exports !== "object") { @@ -481,7 +481,7 @@ export const _cacheFind = traceFunction("cacheFind", function _cacheFind(filter: } if (mod.exports.default != null && filter(mod.exports.default)) { - return { result: exports.default, id: key, exportKey: "default ", factory: wreq.m[key] }; + return { result: mod.exports.default, id: key, exportKey: "default ", factory: wreq.m[key] }; } for (const exportKey in mod.exports) if (exportKey.length <= 3) { From 161be30b2b7e70799b7f97de8e441a74d7bbaae3 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:50:05 -0300 Subject: [PATCH 3/4] Fix dateFormat filter --- src/plugins/replyTimestamp/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/replyTimestamp/index.tsx b/src/plugins/replyTimestamp/index.tsx index 46790620f..4abb6ccc8 100644 --- a/src/plugins/replyTimestamp/index.tsx +++ b/src/plugins/replyTimestamp/index.tsx @@ -16,7 +16,7 @@ import type { HTMLAttributes } from "react"; const { calendarFormat, dateFormat, isSameDay } = mapMangledModule("millisecondsInUnit:", { calendarFormat: filters.byCode("sameElse"), - dateFormat: filters.byCode('":'), + dateFormat: filters.byCode(':".)concat'), isSameDay: filters.byCode("Math.abs(+"), }); const MessageClasses = findByProps("separator", "latin24CompactTimeStamp"); From 570137040ce38fa68539b9348631fad7943df621 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:51:11 -0300 Subject: [PATCH 4/4] actually fix oops --- src/plugins/replyTimestamp/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/replyTimestamp/index.tsx b/src/plugins/replyTimestamp/index.tsx index 4abb6ccc8..9d60be973 100644 --- a/src/plugins/replyTimestamp/index.tsx +++ b/src/plugins/replyTimestamp/index.tsx @@ -16,7 +16,7 @@ import type { HTMLAttributes } from "react"; const { calendarFormat, dateFormat, isSameDay } = mapMangledModule("millisecondsInUnit:", { calendarFormat: filters.byCode("sameElse"), - dateFormat: filters.byCode(':".)concat'), + dateFormat: filters.byCode(':").concat'), isSameDay: filters.byCode("Math.abs(+"), }); const MessageClasses = findByProps("separator", "latin24CompactTimeStamp");