Fix Plugin Finds

This commit is contained in:
thororen1234 2026-03-18 18:33:08 -04:00
parent aaf311feb2
commit a13616eabf
No known key found for this signature in database
3 changed files with 15 additions and 16 deletions

View file

@ -168,20 +168,19 @@ export default definePlugin({
},
// member list
{
find: "._areActivitiesExperimentallyHidden=(",
replacement: {
match: /(?<=user:(\i),guildId:\i,channel:(\i).*?)BOOST_GEM_ICON.{0,10}\);/,
replace: "$&if($self.shouldHideUser($1.id, $2.id)) return null; "
}
},
// stop the role header from displaying if all users with that role are hidden (wip sorta)
{
find: "._areActivitiesExperimentallyHidden=(",
replacement: {
match: /\i.memo\(function\(\i\){/,
replace: "$&if($self.isRoleAllBlockedMembers(arguments[0].id, arguments[0].guildId)) return null;"
},
predicate: () => settings.store.hideEmptyRoles
find: "this.updateMaxContentFeedRowSeen()",
replacement: [
{
match: /(?<=user:(\i),guildId:\i,channel:(\i).*?)BOOST_GEM_ICON.{0,10}\);/,
replace: "$&if($self.shouldHideUser($1.id, $2.id)) return null; "
},
// stop the role header from displaying if all users with that role are hidden (wip sorta)
{
match: /\i.memo\(function\(\i\){/,
replace: "$&if($self.isRoleAllBlockedMembers(arguments[0].id, arguments[0].guildId)) return null;",
predicate: () => settings.store.hideEmptyRoles
},
]
},
// "1 blocked message"
{

View file

@ -13,7 +13,7 @@ export default definePlugin({
authors: [Devs.Samwich],
patches: [
{
find: "._areActivitiesExperimentallyHidden=(",
find: "this.updateMaxContentFeedRowSeen()",
replacement: {
match: /return \i===\i\.\i\.UNKNOWN/,
replace: "return null;$&"

View file

@ -1586,7 +1586,7 @@ export default definePlugin({
// Whether preloading assets is enabled or not, the placeholders loading
// before the assets causes a lot of element shifting, whereas if
// the elements load immediately instead, it doesn't.
find: /isVisibleInViewport:\i,onReceiveErrorHints/,
find: ".LEARN_MORE_CTA_AND_EXPRESSIVE_BUTTON_TREATMENT_FOUR_OPEN_GAME_LINK,sourceQuestContent:",
replacement: {
match: /showPlaceholder:!\i/,
replace: "showPlaceholder:false"