Fix all broken patches
This commit is contained in:
parent
a8c52486e6
commit
6758604d36
4 changed files with 14 additions and 14 deletions
|
|
@ -45,23 +45,23 @@ export default definePlugin({
|
|||
]
|
||||
},
|
||||
{
|
||||
find: '"disableGuildNameClick"',
|
||||
find: ".guildNameContainer,onClick:",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?=children:\i\.name\}\)\):)/,
|
||||
match: /(?=children:\i\.name\}\).{0,100}\.guildNameContainer)/,
|
||||
replace: "onClick:$self.Lurkable(arguments[0].invite?.guild?.id,arguments[0].invite?.guild?.features),"
|
||||
},
|
||||
{
|
||||
match: /\),\{profile:\i,disableGuildNameClick:\i/,
|
||||
replace: "$&,invite:arguments[0].invite"
|
||||
match: /(\.nameContainer.{0,100}disableGuildNameClick:\i)/,
|
||||
replace: "$1,invite:arguments[0].invite"
|
||||
},
|
||||
{
|
||||
match: /\}\)\)\}\),\i/,
|
||||
match: /disableGuildNameClick:\i.{0,50}\}\),\i/,
|
||||
replace: "$&,$self.RenderTip(arguments[0].invite?.expires_at)"
|
||||
},
|
||||
{
|
||||
match: /(?<=text:(\i\.name).*?\]\}\))/,
|
||||
replace: "$&,$self.Header(arguments[0].invite?.inviter,$1)"
|
||||
match: /\.nameContainer.{0,200}\]\}\)/,
|
||||
replace: "$&,$self.Header(arguments[0].invite?.inviter,arguments[0].profile.name)"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -264,17 +264,17 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Tooltips when hovering over message timestamps
|
||||
match: /(?<=text:)\(\)=>\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/,
|
||||
match: /\(0,\i.\i\)\((\i),"LLLL"\)/,
|
||||
replace: "$self.renderTimestamp($1,'tooltip')",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
find: ".full,tooltipClassName:",
|
||||
find: ".full,children:",
|
||||
replacement: {
|
||||
// Tooltips for timestamp markdown (e.g. <t:1234567890>)
|
||||
match: /text:(\i).full,/,
|
||||
replace: "text: $self.renderTimestamp(new Date($1.timestamp*1000),'tooltip'),"
|
||||
match: /(\i).full(?=,children:)/,
|
||||
replace: "$self.renderTimestamp(new Date($1.timestamp*1000),'tooltip')"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import { fetchNamesFromDataStore, getDefaultName, GetOsColor, GetPlatformIcon, s
|
|||
const AuthSessionsStore = findStoreLazy("AuthSessionsStore");
|
||||
const UserSettingsModal = findByPropsLazy("saveAccountChanges", "open");
|
||||
|
||||
const TimestampClasses = findByPropsLazy("timestampTooltip", "blockquoteContainer");
|
||||
const TimestampClasses = findByPropsLazy("timestamp", "blockquoteContainer");
|
||||
const SessionIconClasses = findByPropsLazy("sessionIcon");
|
||||
|
||||
const BlobMask = findComponentByCodeLazy("!1,lowerBadgeSize:");
|
||||
|
|
@ -108,7 +108,7 @@ export default definePlugin({
|
|||
|
||||
renderTimestamp: ErrorBoundary.wrap(({ session, timeLabel }: { session: Session, timeLabel: string; }) => {
|
||||
return (
|
||||
<Tooltip text={session.approx_last_used_time.toLocaleString()} tooltipClassName={TimestampClasses.timestampTooltip}>
|
||||
<Tooltip text={session.approx_last_used_time.toLocaleString()}>
|
||||
{props => (
|
||||
<span {...props} className={TimestampClasses.timestamp}>
|
||||
{timeLabel}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export default definePlugin({
|
|||
},
|
||||
// fixes a bug where Members page must be loaded to see highest role, why is Discord depending on MemberSafetyStore.getEnhancedMember for something that can be obtained here?
|
||||
{
|
||||
find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),allowOverflow:",
|
||||
find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),text:",
|
||||
predicate: () => settings.store.showModView,
|
||||
replacement: {
|
||||
match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue