Fix Conflicting Patches
This commit is contained in:
parent
a301d26cda
commit
29921a58a8
3 changed files with 2 additions and 10 deletions
|
|
@ -75,14 +75,6 @@ export default definePlugin({
|
||||||
replace: "$1$self.handleNavigation($2,$3);$4"
|
replace: "$1$self.handleNavigation($2,$3);$4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// ctrl click to open in new tab in inbox unread
|
|
||||||
{
|
|
||||||
find: '[data-recents-channel="',
|
|
||||||
replacement: {
|
|
||||||
match: /(?<=className:\i.\i,onJump:)\i=>(\i)\(\i,(\i)\.id\)/,
|
|
||||||
replace: "event => { if (event.ctrlKey) $self.open($2); else $1(event, $2.id) }"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// ctrl click to open in new tab in inbox mentions
|
// ctrl click to open in new tab in inbox mentions
|
||||||
{
|
{
|
||||||
find: ".deleteRecentMention(",
|
find: ".deleteRecentMention(",
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "type:\"GIF_PICKER_QUERY\"",
|
find: "type:\"GIF_PICKER_QUERY\"",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(function \i\(.{1,10}\){)(.{1,100}.GIFS_SEARCH,query:)/,
|
match: /(function \i\(.{1,10}\){)(.{1,200}.GIFS_SEARCH,query:)/,
|
||||||
replace: "$1if($self.shouldStopFetch(arguments[0])) return;$2",
|
replace: "$1if($self.shouldStopFetch(arguments[0])) return;$2",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -317,7 +317,7 @@ export default definePlugin({
|
||||||
replace: "$&vc_SidebarChat=$self.renderSidebar(),"
|
replace: "$&vc_SidebarChat=$self.renderSidebar(),"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /return(\(0,\i\.jsxs?\)\(\i\.\i,{}\))}(?<=default:.{1,250})/,
|
match: /return(\(0,\i\.jsxs?\)\(\i,{}\))}(?<=default:.{1,250})/,
|
||||||
replace: "return [$1, vc_SidebarChat]}"
|
replace: "return [$1, vc_SidebarChat]}"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue