im so sorry to anyone who has to read this disgrace of finds
This commit is contained in:
parent
40b4f98cb3
commit
6f02e91d8e
4 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ import { cl, ForwardOptionsContext, ForwardOptionsState } from ".";
|
|||
|
||||
type AttachmentType = "IMAGE" | "VIDEO" | "CLIP" | "AUDIO" | "VISUAL_PLACEHOLDER" | "PLAINTEXT_PREVIEW" | "OTHER" | "INVALID";
|
||||
|
||||
const TagGroup = findComponentByCodeLazy('"filter-tag-group"', '"tag-group"');
|
||||
const TagGroup = findComponentByCodeLazy('="default",layout:', '="inline"===');
|
||||
const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:", "GUILD_PROFILE");
|
||||
const getAttachmentType = findByCodeLazy('"PLAINTEXT_PREVIEW":"OTHER"');
|
||||
const formatChannelName = findByCodeLazy("#{intl::NO_ACCESS}", "isObfuscated()");
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ export default definePlugin({
|
|||
replace: "$self.renderWrapper(__state,$&)"
|
||||
},
|
||||
{
|
||||
match: /(?<=#{intl::CHECKPOINT_2025}.{50,100}?)\i>0&&\(.{200,250}?\}\)\]\}\)/,
|
||||
match: /(?<=compact:\i\}\),)\i>0&&\(.{200,250}?\}\)\]\}\)/,
|
||||
replace: "$self.ForwardPicker()"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ export default definePlugin({
|
|||
// Nameplate
|
||||
find: ".MINI_PREVIEW,[",
|
||||
replacement: {
|
||||
match: /function \i\((\i)\)\{(?=let.{1,5}\{nameplate:\i,)/,
|
||||
match: /function \i\((\i)\)\{(?=let.{0,5}\{nameplate:\i,)/,
|
||||
replace:
|
||||
'$&if($1.placement!=="preview"&&$1.placement!=="mini_preview")return null;',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ interface SettingsSwitchLayoutProps extends SwitchWithLabelProps {
|
|||
tooltip?: { position: "top" | "bottom", text: string; };
|
||||
}
|
||||
|
||||
const SwitchWithLabel = findComponentByCodeLazy('auxiliaryContentPosition:"under-label"') as React.ComponentType<SwitchWithLabelProps>;
|
||||
const SwitchWithLabel = findComponentByCodeLazy("switchIconsEnabled:", ".hasIcon?") as React.ComponentType<SwitchWithLabelProps>;
|
||||
|
||||
export type SettingsSubtleSwitchProps = Omit<SettingsSwitchLayoutProps, "description">;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue