diff --git a/src/plugins/replyTimestamp/index.tsx b/src/plugins/replyTimestamp/index.tsx index 46790620f..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('":'), + dateFormat: filters.byCode(':").concat'), isSameDay: filters.byCode("Math.abs(+"), }); const MessageClasses = findByProps("separator", "latin24CompactTimeStamp"); diff --git a/src/plugins/spotifyControls/index.tsx b/src/plugins/spotifyControls/index.tsx index 5308c2ffc..c710ed533 100644 --- a/src/plugins/spotifyControls/index.tsx +++ b/src/plugins/spotifyControls/index.tsx @@ -51,10 +51,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," } diff --git a/src/webpack/webpack.tsx b/src/webpack/webpack.tsx index 2befb49d5..087237da7 100644 --- a/src/webpack/webpack.tsx +++ b/src/webpack/webpack.tsx @@ -475,11 +475,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] as AnyModuleFactory }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] as AnyModuleFactory }; } if (filter(mod.exports)) { - return { result: exports, id: key, exportKey: null, factory: wreq.m[key] as AnyModuleFactory }; + return { result: mod.exports, id: key, exportKey: null, factory: wreq.m[key] as AnyModuleFactory }; } if (typeof mod.exports !== "object") { @@ -487,7 +487,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] as AnyModuleFactory }; + return { result: mod.exports.default, id: key, exportKey: "default ", factory: wreq.m[key] as AnyModuleFactory }; } for (const exportKey in mod.exports) if (exportKey.length <= 3) {