SMYN: Actual fix this time. (#803)
This commit is contained in:
parent
4d7882396e
commit
0cdcb24060
1 changed files with 1 additions and 3 deletions
|
|
@ -28,7 +28,6 @@ const UserStore = findStoreLazy("UserStore");
|
||||||
const wrapEmojis = findByCodeLazy("lastIndex;return");
|
const wrapEmojis = findByCodeLazy("lastIndex;return");
|
||||||
const adjustColor = findByCodeLazy("light1", "dark1", "toonStroke");
|
const adjustColor = findByCodeLazy("light1", "dark1", "toonStroke");
|
||||||
const AccessibilityStore = findStoreLazy("AccessibilityStore");
|
const AccessibilityStore = findStoreLazy("AccessibilityStore");
|
||||||
const SelectedGuildStore = findStoreLazy("SelectedGuildStore");
|
|
||||||
|
|
||||||
const roleColorPattern = /^role((?:\+|-)\d{0,4})?$/iu;
|
const roleColorPattern = /^role((?:\+|-)\d{0,4})?$/iu;
|
||||||
const symbolPattern = /^[\p{S}\p{P}]{1,3}$/iu;
|
const symbolPattern = /^[\p{S}\p{P}]{1,3}$/iu;
|
||||||
|
|
@ -1068,7 +1067,6 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
|
|
||||||
UserStore,
|
UserStore,
|
||||||
SelectedGuildStore,
|
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
|
|
@ -1108,7 +1106,7 @@ export default definePlugin({
|
||||||
find: "location:\"DiscordTag\"});",
|
find: "location:\"DiscordTag\"});",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)(\i)/g,
|
match: /(?<=let{user:(\i).{0,800},{(?:primary|name):)(\i)/g,
|
||||||
replace: "!$self.SelectedGuildStore.getGuildId()?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"}):$2"
|
replace: "window.location.pathname===\"/channels/@me\"?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$1,type:\"membersList\"}):$2"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue