1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

Fix store finds

This commit is contained in:
Nuckyz 2024-03-28 09:48:47 -03:00 committed by Luna
parent e9e1a9e70d
commit a4ac21fe23
6 changed files with 9 additions and 9 deletions

View file

@ -41,7 +41,7 @@ export default definePlugin({
authors: [Devs.zt, Devs.Trwy],
patches: [
{
find: ".displayName=\"MaskedLinkStore\"",
find: '="MaskedLinkStore",',
replacement: {
match: /(?<=isTrustedDomain\(\i\){)return \i\(\i\)/,
replace: "return true"

View file

@ -210,7 +210,7 @@ export default definePlugin({
patches: [
{
find: '.displayName="LocalActivityStore"',
find: '="LocalActivityStore",',
replacement: [
{
match: /HANG_STATUS.+?(?=!\i\(\i,\i\)&&)(?<=(\i)\.push.+?)/,

View file

@ -38,8 +38,8 @@ export default definePlugin({
]
},
...[
'displayName="MessageStore"',
'displayName="ReadStateStore"'
'="MessageStore",',
'="ReadStateStore",'
].map(find => ({
find,
predicate: () => Settings.plugins.NoBlockedMessages.ignoreBlockedMessages === true,

View file

@ -191,7 +191,7 @@ export default definePlugin({
},
{
// Hide the new version of unreads box for hidden channels
find: '.displayName="ChannelListUnreadsStore"',
find: '="ChannelListUnreadsStore",',
replacement: {
match: /(?<=if\(null==(\i))(?=.{0,160}?getHasImportantUnread\)\(\i\))/g, // Global because Discord has multiple methods like that in the same module
replace: (_, channel) => `||$self.isHiddenChannel(${channel})`
@ -442,7 +442,7 @@ export default definePlugin({
}
},
{
find: '.displayName="GuildChannelStore"',
find: '="GuildChannelStore",',
replacement: [
{
// Make GuildChannelStore contain hidden channels
@ -465,7 +465,7 @@ export default definePlugin({
}
},
{
find: '.displayName="NowPlayingViewStore"',
find: '="NowPlayingViewStore",',
replacement: {
// Make active now voice states on hidden channels
match: /(getVoiceStateForUser.{0,150}?)&&\i\.\i\.canWithPartialContext.{0,20}VIEW_CHANNEL.+?}\)(?=\?)/,

View file

@ -51,7 +51,7 @@ export default definePlugin({
},
},
{
find: '.displayName="SpotifyStore"',
find: '"displayName","SpotifyStore")',
replacement: [
{
predicate: () => settings.store.noSpotifyAutoPause,

View file

@ -71,7 +71,7 @@ export default definePlugin({
},
// Prevent the MediaEngineStore from overwriting our LocalVolumes above 200 with the ones the Discord Audio Context Settings sync sends
{
find: '.displayName="MediaEngineStore"',
find: '="MediaEngineStore",',
replacement: [
{
match: /(\.settings\.audioContextSettings.+?)(\i\[\i\])=(\i\.volume)(.+?setLocalVolume\(\i,).+?\)/,