aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-06-25 06:57:18 -0300
committerGitHub <noreply@github.com>2023-06-25 09:57:18 +0000
commitafbfb641e8eb3583890f9264e6ede78e50dff0a7 (patch)
tree6e3f66b6bf82fc49d9496ad74cc4a5faff78d045 /src/plugins
parentd7ac418e05f43255c42ea115c9c352cf214753d5 (diff)
downloadVencord-afbfb641e8eb3583890f9264e6ede78e50dff0a7.tar.gz
Vencord-afbfb641e8eb3583890f9264e6ede78e50dff0a7.tar.bz2
Vencord-afbfb641e8eb3583890f9264e6ede78e50dff0a7.zip
Fix IgnoreActivities broken patch (#1337)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/ignoreActivities.tsx20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/plugins/ignoreActivities.tsx b/src/plugins/ignoreActivities.tsx
index cf54648..6d58eb4 100644
--- a/src/plugins/ignoreActivities.tsx
+++ b/src/plugins/ignoreActivities.tsx
@@ -45,7 +45,7 @@ function ToggleIconOff() {
className={RegisteredGamesClasses.overlayToggleIconOff}
height="24"
width="24"
- viewBox="0 0 32 26"
+ viewBox="0 2.2 32 26"
aria-hidden={true}
role="img"
>
@@ -77,7 +77,7 @@ function ToggleIconOn({ forceWhite }: { forceWhite?: boolean; }) {
className={RegisteredGamesClasses.overlayToggleIconOn}
height="24"
width="24"
- viewBox="0 0 32 26"
+ viewBox="0 2.2 32 26"
>
<path
className={forceWhite ? "" : RegisteredGamesClasses.fill}
@@ -119,7 +119,7 @@ function ToggleActivityComponentWithBackground({ activity }: { activity: Ignored
return (
<div
className={`${TryItOutClasses.tryItOutBadge} ${BaseShapeRoundClasses.baseShapeRound}`}
- style={{ padding: "0px 2px" }}
+ style={{ padding: "0px 2px", height: 28 }}
>
<ToggleActivityComponent activity={activity} forceWhite={true} />
</div>
@@ -157,10 +157,16 @@ export default definePlugin({
},
{
find: ".overlayBadge",
- replacement: {
- match: /(?<=\(\)\.badgeContainer.+?(\i)\.name}\):null)/,
- replace: (_, props) => `,$self.renderToggleActivityButton(${props})`
- }
+ replacement: [
+ {
+ match: /(?<=\(\)\.badgeContainer,children:).{0,50}?name:(\i)\.name.+?null/,
+ replace: (m, props) => `[${m},$self.renderToggleActivityButton(${props})]`
+ },
+ {
+ match: /(?<=\(\)\.badgeContainer,children:).{0,50}?name:(\i\.application)\.name.+?null/,
+ replace: (m, props) => `${m},$self.renderToggleActivityButton(${props})`
+ }
+ ]
},
{
find: '.displayName="LocalActivityStore"',