diff --git a/src/plugins/customRPC/index.tsx b/src/plugins/customRPC/index.tsx index d5faed9d..f4b9ab06 100644 --- a/src/plugins/customRPC/index.tsx +++ b/src/plugins/customRPC/index.tsx @@ -26,12 +26,11 @@ import { Margins } from "@utils/margins"; import { classes } from "@utils/misc"; import { useAwaiter } from "@utils/react"; import definePlugin, { OptionType } from "@utils/types"; -import { findByCodeLazy, findByPropsLazy, findComponentByCodeLazy } from "@webpack"; +import { findByCodeLazy, findComponentByCodeLazy } from "@webpack"; import { ApplicationAssetUtils, Button, FluxDispatcher, Forms, GuildStore, React, SelectedChannelStore, SelectedGuildStore, UserStore } from "@webpack/common"; const useProfileThemeStyle = findByCodeLazy("profileThemeStyle:", "--profile-gradient-primary-color"); -const ActivityComponent = findComponentByCodeLazy(",onOpenGameProfileModal:"); -const ActivityClassName = findByPropsLazy("activity", "buttonColor"); +const ActivityComponent = findComponentByCodeLazy("onOpenGameProfile"); const ShowCurrentGame = getUserSettingLazy("status", "showCurrentGame")!; @@ -436,8 +435,8 @@ export default definePlugin({ -
- {activity[0] && + {activity[0] && } diff --git a/src/plugins/timeBarAllActivities/index.tsx b/src/plugins/timeBarAllActivities/index.tsx index ea0cf99f..91b1bc2f 100644 --- a/src/plugins/timeBarAllActivities/index.tsx +++ b/src/plugins/timeBarAllActivities/index.tsx @@ -40,7 +40,7 @@ export default definePlugin({ settings, patches: [ { - find: '"UserProfileActivityCard"', + find: ".gameState,children:", replacement: [ // Insert Spotify time bar component { @@ -49,7 +49,7 @@ export default definePlugin({ }, // Hide the large title on listening activities, to make them look more like Spotify (also visible from hovering over the large icon) { - match: /(\i).type===(\i\..{0,10})\.WATCHING/, + match: /(\i).type===(\i\.\i)\.WATCHING/, replace: "($self.settings.store.hideActivityDetailText&&$self.isActivityTimestamped($1)&&$1.type===$2.LISTENING)||$&" } ]