boom 4
This commit is contained in:
parent
8c51c6c8d3
commit
37ca1ef1f0
5 changed files with 8 additions and 8 deletions
|
|
@ -71,7 +71,7 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
match: /children:\[(\i\.useMemo[^}]+"aria-multiselectable")(?<=className:(\i),.+?)/,
|
||||
replace: "children:[$1?.includes('members')?$self.render():null,$2",
|
||||
replace: "children:[$2?.includes('members')?$self.render():null,$1",
|
||||
},
|
||||
],
|
||||
predicate: () => settings.store.memberList
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ export default definePlugin({
|
|||
replace: "$&$self.pushSection($1,arguments[0].user);"
|
||||
},
|
||||
{
|
||||
match: /className:\i\.\i,children:(?=.{0,100}?component:.*?section:(\i))/,
|
||||
match: /children:(?=.{0,100}?component:.+?section:(\i))/,
|
||||
replace: "$&$1==='MUTUAL_GDMS'?$self.renderMutualGDMs(arguments[0]):"
|
||||
},
|
||||
// Make the gap between each item smaller so our tab can fit.
|
||||
|
|
@ -137,7 +137,7 @@ export default definePlugin({
|
|||
replace: "$&||$self.getMutualGroupDms(arguments[0].user.id).length>0"
|
||||
},
|
||||
{
|
||||
match: /\.openUserProfileModal.+?\)}\)}\)(?<=,(\i)&&(\i)&&(\(0,\i\.jsxs?\)\(\i\.\i,{className:(\i)\.\i\}\)).{0,50}"MUTUAL_FRIENDS".+?)/,
|
||||
match: /\.openUserProfileModal.+?\)}\)}\)(?<=,(\i)&&(\i)&&(\(0,\i\.jsxs?\)\(\i\.\i,{className:(\i)\.\i}\)).{0,50}?"MUTUAL_FRIENDS".+?)/,
|
||||
replace: (m, hasMutualGuilds, hasMutualFriends, Divider, classes) => "" +
|
||||
`${m},$self.renderDMPageList({user:arguments[0].user,hasDivider:${hasMutualGuilds}||${hasMutualFriends},Divider:${Divider},listStyle:${classes}.list})`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export default definePlugin({
|
|||
{
|
||||
find: '["VIDEO","CLIP","AUDIO"]',
|
||||
replacement: {
|
||||
match: /("div",{className:.+?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
match: /(\[\i>0&&\i\.length>0.+?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
find: '"no-private-channels"',
|
||||
find: '"private-channels-".concat(',
|
||||
replacement: [
|
||||
{
|
||||
// Filter out pinned channels from the private channel list
|
||||
|
|
@ -95,8 +95,8 @@ export default definePlugin({
|
|||
replace: "$&if($self.isCategoryIndex($1.section))return $self.renderCategory($1);"
|
||||
},
|
||||
{
|
||||
match: /(?<=span",{)className:\i\.\i,(?=children:\i.)/,
|
||||
replace: "...$self.makeSpanProps(),$&"
|
||||
match: /"renderSection".+?"span",{/,
|
||||
replace: "$&...$self.makeSpanProps(),"
|
||||
},
|
||||
|
||||
// Fix Row Height
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".SEND_FAILED,",
|
||||
replacement: {
|
||||
match: /(?<=\i\.\i\]:(\i)\.isUnsupported\}\),)(?=children:\[)/,
|
||||
match: /(?<=\]:(\i)\.isUnsupported.+?,)(?=children:\[)/,
|
||||
replace: "style:$self.useMessageColorsStyle($1),"
|
||||
},
|
||||
predicate: () => settings.store.colorChatMessages
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue