diff --git a/src/allActivities/index.ts b/src/allActivities/index.ts index ce63273..9f67417 100644 --- a/src/allActivities/index.ts +++ b/src/allActivities/index.ts @@ -5,8 +5,8 @@ export const patches: Patch[] = [ { find: '"UserProfileFeaturedActivity"', replace: { - match: /:function\(\){return (\i)}/, - replacement: ':function(){return require("allActivities_activities").default}' + match: /:\(\)=>(\i)}/, + replacement: ':()=>require("allActivities_activities").default}' } }, @@ -21,7 +21,7 @@ export const patches: Patch[] = [ // Do not de-duplicate entries in useUserProfileActivity { - find: '("use-user-profile-activity")', + find: '"use-user-profile-activity"', replace: { match: /\(0,\i\.uniqWith\)/, replacement: "((inp)=>inp)" diff --git a/src/allActivities/manifest.json b/src/allActivities/manifest.json index 56731a5..7232f2a 100644 --- a/src/allActivities/manifest.json +++ b/src/allActivities/manifest.json @@ -1,7 +1,7 @@ { "$schema": "https://moonlight-mod.github.io/manifest.schema.json", "id": "allActivities", - "version": "1.0.3", + "version": "1.0.4", "meta": { "name": "All Activities", "tagline": "Shows all activities in user popouts, and optionally icons in the member list", diff --git a/src/alwaysShowForwardTime/index.ts b/src/alwaysShowForwardTime/index.ts index ce484c4..db17a31 100644 --- a/src/alwaysShowForwardTime/index.ts +++ b/src/alwaysShowForwardTime/index.ts @@ -4,7 +4,7 @@ export const patches: Patch[] = [ { find: ".messageSnapshots.map(", replace: { - match: /(?<=return null==\i\?)null(?=:(\(0,(\i)\.jsxs\))\(\i\.Clickable,{className:(\i)\.footerContainer,)/, + match: /(?<=return null==\i\?)null(?=:(\(0,(\i)\.jsxs\))\(\i\.\i,{className:(\i)\.footerContainer,)/, replacement: (_, createElement, ReactJSX, classes) => `${createElement}(require("alwaysShowForwardTime_timestamp")?.default??${ReactJSX}.Fragment,{wrapperClass:${classes}.footerContainer,className:${classes}.footerText,timestamp:arguments[0].snapshot.message.timestamp})` } diff --git a/src/alwaysShowForwardTime/manifest.json b/src/alwaysShowForwardTime/manifest.json index 2b16f13..540a98b 100644 --- a/src/alwaysShowForwardTime/manifest.json +++ b/src/alwaysShowForwardTime/manifest.json @@ -1,14 +1,15 @@ { "$schema": "https://moonlight-mod.github.io/manifest.schema.json", "id": "alwaysShowForwardTime", - "version": "1.0.0", + "version": "1.0.1", "meta": { "name": "Always Show Forward Time", "tagline": "Shows the timestamp of forwards regardless of if its from a DM or unshared/private guild", "authors": ["Cynosphere"], "tags": ["qol", "chat"], "source": "https://github.com/Cynosphere/moonlight-extensions", - "donate": "https://ko-fi.com/Cynosphere" + "donate": "https://ko-fi.com/Cynosphere", + "changelog": "Fixes for latest Discord" }, "dependencies": ["spacepack"], "apiLevel": 2 diff --git a/src/inAppNotifications/manifest.json b/src/inAppNotifications/manifest.json index 1761109..b87ddc3 100644 --- a/src/inAppNotifications/manifest.json +++ b/src/inAppNotifications/manifest.json @@ -1,7 +1,7 @@ { "$schema": "https://moonlight-mod.github.io/manifest.schema.json", "id": "inAppNotifications", - "version": "1.0.2", + "version": "1.0.3", "meta": { "name": "In App Notifications", "tagline": "In app notifications akin to mobile", @@ -9,7 +9,7 @@ "tags": ["qol", "chat"], "source": "https://github.com/Cynosphere/moonlight-extensions", "donate": "https://ko-fi.com/Cynosphere", - "changelog": "Lazy load `useRoleIcon` to fix not loading on first load sometimes" + "changelog": "Fixes for latest Discord" }, "dependencies": ["spacepack", "common"], "settings": { diff --git a/src/inAppNotifications/webpackModules/notification.tsx b/src/inAppNotifications/webpackModules/notification.tsx index 56ff1ff..b4c24a0 100644 --- a/src/inAppNotifications/webpackModules/notification.tsx +++ b/src/inAppNotifications/webpackModules/notification.tsx @@ -28,7 +28,7 @@ const MessageContent = spacepack.findByCode(".hasFlag(", "SOURCE_MESSAGE_DELETED const MessageConstructor = spacepack.findByCode('.set("roleSubscriptionData",')[0].exports; const createMessageRecord = spacepack.findFunctionByStrings(MessageConstructor, ".createFromServer("); -const MemoizeMessage = spacepack.findByCode(".customRenderedContent:")[0].exports.Z; +const MemoizeMessage = spacepack.findByCode("let{renderChangelogMessageMarkup:")[0].exports.Z; const isMessageNewerThanImprovedMarkdownEpoch = Object.values( spacepack.findByCode('"1088216706570268682"')[0].exports diff --git a/src/mediaTweaks/index.ts b/src/mediaTweaks/index.ts index 78a9d22..a63d9be 100644 --- a/src/mediaTweaks/index.ts +++ b/src/mediaTweaks/index.ts @@ -83,7 +83,7 @@ export const patches: Patch[] = [ { find: ',"chat input type must be set");', replace: { - match: /(?<=!\i&&\()(\(0,\i\.\i\)\(.+?\.drafts\.type\))\?/, + match: /(?<=\i\|\|\()(\(0,\i\.\i\)\(.+?\.drafts\.type\))\?/, replacement: (_, orig) => `((moonlight.getConfigOption("mediaTweaks","noStickerAutosend")??true)?true:${orig})?` } } diff --git a/src/mediaTweaks/manifest.json b/src/mediaTweaks/manifest.json index 716312b..ca8ecd7 100644 --- a/src/mediaTweaks/manifest.json +++ b/src/mediaTweaks/manifest.json @@ -1,7 +1,7 @@ { "$schema": "https://moonlight-mod.github.io/manifest.schema.json", "id": "mediaTweaks", - "version": "1.0.8", + "version": "1.0.9", "meta": { "name": "Media Tweaks", "tagline": "Various tweaks to images and videos. Every feature togglable.",