SMYN & Questify: Fix patches. (#581)

* Fix patches.

* Update.

* Update.

* Lint.
This commit is contained in:
Etorix 2025-12-19 13:15:39 -08:00 • committed by GitHub
parent 7ac0187a8a
commit a61e7ece75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -1012,11 +1012,11 @@ export default definePlugin({
{
// Hides the Quest icon from members list items when
// a user is playing a game tied to an active Quest.
find: "HANG_STATUS});",
find: "),\"activity-\".concat",
group: true,
replacement: [
{
match: /(?=if\(\(0,.{0,30}?isBlockedOrIgnored)/,
match: /(?<=voiceActivityChannel:\i\?\i:null}\);)/,
replace: "const shouldHideMembersListActivelyPlayingIcon=$self.shouldHideMembersListActivelyPlayingIcon();"
},
{

View file

@ -969,7 +969,7 @@ export default definePlugin({
// Tags *should* contain the guild ID nested in its structure, but on the first time
// loading a guild member's preview profile, it will be undefined. This patch bypasses
// that by passing the guild ID as its own prop.
find: ".hasAvatarForGuild(null==",
find: "\"UserProfilePopoutBody\"}",
replacement: {
match: /(pronouns,tags:)/,
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"
@ -977,7 +977,7 @@ export default definePlugin({
},
{
// Same as above, but for bot members.
find: "BotUserProfilePopoutBody\"}",
find: "popularApplicationCommandIds)!=null&&null",
replacement: {
match: /(pronouns,tags:)/,
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"