diff --git a/src/plugins/permissionsViewer/index.tsx b/src/plugins/permissionsViewer/index.tsx
index 6a503f2d..05d99fda 100644
--- a/src/plugins/permissionsViewer/index.tsx
+++ b/src/plugins/permissionsViewer/index.tsx
@@ -60,6 +60,12 @@ export const settings = definePluginSettings({
description: "Whether the permissions dropdown on user popouts should be open by default",
type: OptionType.BOOLEAN,
default: false,
+ },
+ preferButtonOverDropdown: {
+ description: "Show a button next to the roles instead of dropdown",
+ type: OptionType.BOOLEAN,
+ default: false,
+ restartNeeded: true
}
});
@@ -178,10 +184,18 @@ export default definePlugin({
},
{
find: ".VIEW_ALL_ROLES,",
- replacement: {
- match: /children:"\+"\.concat\(\i\.length-\i\.length\).{0,20}\}\),/,
- replace: "$&$self.ViewPermissionsButton(arguments[0]),"
- }
+ replacement: [
+ {
+ match: /children:"\+"\.concat\(\i\.length-\i\.length\).{0,20}\}\),/,
+ replace: "$&$self.ViewPermissionsButton(arguments[0]),",
+ predicate: () => settings.store.preferButtonOverDropdown
+ },
+ {
+ match: /0!==\i\.length\|\|\i\?\(0,.+?guild:(\i),guildMember:(\i).+?null/,
+ replace: "[$&,$self.UserPermissions($1,$2)]",
+ predicate: () => !settings.store.preferButtonOverDropdown
+ }
+ ]
}
],
diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx
index 456e15a5..fbe43a61 100644
--- a/src/plugins/reviewDB/index.tsx
+++ b/src/plugins/reviewDB/index.tsx
@@ -85,12 +85,21 @@ export default definePlugin({
replace: "$&,$self.getReviewsComponent($1)"
}
},
+ {
+ find: /inline:!1,profileViewedAnalytics:\i}\),/,
+ replacement: {
+ match: /currentUser:\i,guild:\i}\)(?<=user:(\i),bio:null==\i\?.+?)/,
+ replace: "$&,$self.getReviewsComponent($1)"
+ },
+ predicate: () => !settings.store.preferButtonOverDropdown
+ },
{
find: ".BITE_SIZE,user:",
replacement: {
match: /(?<=\.BITE_SIZE,children:\[)\(0,\i\.jsx\)\(\i\.\i,\{user:(\i),/,
replace: "$self.BiteSizeReviewsButton({user:$1}),$&"
- }
+ },
+ predicate: () => settings.store.preferButtonOverDropdown
}
],
diff --git a/src/plugins/reviewDB/settings.tsx b/src/plugins/reviewDB/settings.tsx
index c3c806f5..d4b0cb5d 100644
--- a/src/plugins/reviewDB/settings.tsx
+++ b/src/plugins/reviewDB/settings.tsx
@@ -54,6 +54,12 @@ export const settings = definePluginSettings({
description: "Hide reviews from blocked users",
default: true,
},
+ preferButtonOverDropdown: {
+ description: "Show a button instead of dropdown to view reviews",
+ type: OptionType.BOOLEAN,
+ default: false,
+ restartNeeded: true
+ },
buttons: {
type: OptionType.COMPONENT,
description: "ReviewDB buttons",
diff --git a/src/plugins/showConnections/index.tsx b/src/plugins/showConnections/index.tsx
index db8b789a..6e14cfea 100644
--- a/src/plugins/showConnections/index.tsx
+++ b/src/plugins/showConnections/index.tsx
@@ -20,7 +20,6 @@ import "./styles.css";
import { definePluginSettings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary";
-import { Flex } from "@components/Flex";
import { CopyIcon, LinkIcon } from "@components/Icons";
import { Devs } from "@utils/constants";
import { copyWithToast } from "@utils/misc";
@@ -106,13 +105,23 @@ function ConnectionsComponent({ id, theme, simplified }: { id: string, theme: st
return null;
const connectionsContainer = (
-
+
+ Connections
+
{connections.map(connection => )}
-
+
);
if (simplified)
@@ -120,13 +129,6 @@ function ConnectionsComponent({ id, theme, simplified }: { id: string, theme: st
return (
-
- Connections
-
{connectionsContainer}
);
@@ -211,9 +213,9 @@ export default definePlugin({
}
},
{
- find: /\.bio,hidePersonalInformation:\i,onClose:/,
+ find: /inline:!1,profileViewedAnalytics:\i}\),/,
replacement: {
- match: /currentUser:\i,guild:\i,onOpenProfile:.+?}\)(?=])(?<=user:(\i),bio:null==(\i)\?.+?)/,
+ match: /currentUser:\i,guild:\i}\)(?<=user:(\i),bio:null==(\i)\?.+?)/,
replace: "$&,$self.profilePopoutComponent({ user: $1, displayProfile: $2, simplified: true })"
}
}