Change duplicate find for SHC and VCDoubleClick
This commit is contained in:
parent
a94b88cd56
commit
5f8b96dced
|
@ -436,7 +436,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".shouldCloseDefaultModals",
|
find: 'className:"channelMention",children',
|
||||||
replacement: {
|
replacement: {
|
||||||
// Show inside voice channel instead of trying to join them when clicking on a channel mention
|
// Show inside voice channel instead of trying to join them when clicking on a channel mention
|
||||||
match: /(?<=getChannel\(\i\);if\(null!=(\i))(?=.{0,100}?selectVoiceChannel)/,
|
match: /(?<=getChannel\(\i\);if\(null!=(\i))(?=.{0,100}?selectVoiceChannel)/,
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default definePlugin({
|
||||||
})),
|
})),
|
||||||
{
|
{
|
||||||
// channel mentions
|
// channel mentions
|
||||||
find: ".shouldCloseDefaultModals",
|
find: 'className:"channelMention",children',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /onClick:(\i)(?=,.{0,30}className:"channelMention".+?(\i)\.inContent)/,
|
match: /onClick:(\i)(?=,.{0,30}className:"channelMention".+?(\i)\.inContent)/,
|
||||||
replace: (_, onClick, props) => ""
|
replace: (_, onClick, props) => ""
|
||||||
|
|
Loading…
Reference in a new issue