Fix Most Broken Patches
This commit is contained in:
parent
868b47cc38
commit
0c79a5fc87
7 changed files with 8 additions and 8 deletions
|
|
@ -31,7 +31,7 @@ export default definePlugin({
|
|||
replace: "$self.renderUser($1,$2)",
|
||||
},
|
||||
{
|
||||
match: /(?<=\}=(\i).{0,10}(\i).useState\(\i\).{0,25}\};)/,
|
||||
match: /(?<=\}=(\i).{0,10}(\i).useState.{0,5};)/,
|
||||
replace: "let [searchResults,setSearchResults]=$2.useState([]);$self.setUpdateFunc($1,setSearchResults);"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export default definePlugin({
|
|||
},
|
||||
// intercept channel navigation to switch/create tabs
|
||||
{
|
||||
find: "sourceLocationStack,null",
|
||||
find: '"transitionToGuild - Transitioning to "',
|
||||
replacement: {
|
||||
match: /(\i\((\i),(\i),\i,\i\)\{)(.{0,25}"transitionToGuild)/,
|
||||
replace: "$1$self.handleNavigation($2,$3);$4"
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ export default definePlugin({
|
|||
{
|
||||
find: "renderLurkerModeUpsellPopout,position:",
|
||||
replacement: {
|
||||
match: /(\i)=(200|300)/g,
|
||||
replace: "$1=0",
|
||||
match: /200:300/g,
|
||||
replace: "0:0",
|
||||
},
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export default definePlugin({
|
|||
authors: [EquicordDevs.Jaxx],
|
||||
patches: [
|
||||
{
|
||||
find: '"SearchQueryStore");',
|
||||
find: '"SearchQueryStore";',
|
||||
replacement: {
|
||||
match: /\i\.searchResultsQuery=(\i)/,
|
||||
replace: "$&,$self.main($1)"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: ".VOICE_PANEL}};",
|
||||
find: ".VOICE_PANEL}}",
|
||||
replacement: [
|
||||
{
|
||||
match: /\[\i\.\i\]:\i\}\),children:\[/,
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
find: "VOICE_PANEL}};",
|
||||
find: "VOICE_PANEL}}",
|
||||
predicate: () => settings.store.allCallTimers,
|
||||
replacement: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ export default definePlugin({
|
|||
|
||||
// fix alt+shift+up/down
|
||||
{
|
||||
find: ".getFlattenedGuildIds()],",
|
||||
find: ".getFlattenedGuildIds()]",
|
||||
replacement: {
|
||||
match: /(?<=\i===\i\.ME\?)\i\.\i\.getPrivateChannelIds\(\)/,
|
||||
replace: "$self.getAllUncollapsedChannels().concat($&.filter(c=>!$self.isPinned(c)))"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue