Fix Patches

This commit is contained in:
thororen1234 2025-08-20 14:51:12 -04:00
parent f689aa6d89
commit cf04b80eba
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View file

@ -119,7 +119,7 @@ export default definePlugin({
predicate: () => settings.store.showWithoutHover,
replacement: [
{
match: /function\(\)\{.+:""(?=.*?userId:(\i))/,
match: /function \i\(\)\{.+:""(?=.*?userId:(\i))/,
replace: "$&,$self.renderTimer($1.id),"
}
]

View file

@ -31,7 +31,7 @@ export default definePlugin({
replace: "$self.renderUser($1,$2)",
},
{
match: /(?<=\}=(\i).{0,10}(\i).useState\(.{0,1}\);)/,
match: /(?<=\}=(\i).{0,10}(\i).useState\(\i\).{0,25}\};)/,
replace: "let [searchResults,setSearchResults]=$2.useState([]);$self.setUpdateFunc($1,setSearchResults);"
},
{

View file

@ -36,8 +36,8 @@ export default definePlugin({
{
find: "renderLurkerModeUpsellPopout,position:",
replacement: {
match: /200:300/g,
replace: "0:0",
match: /(\i)=(200|300)/g,
replace: "$1=0",
},
}
]

View file

@ -43,7 +43,7 @@ export default definePlugin({
authors: [EquicordDevs.Jaxx],
patches: [
{
find: '"SearchQueryStore";',
find: '"SearchQueryStore");',
replacement: {
match: /\i\.searchResultsQuery=(\i)/,
replace: "$&,$self.main($1)"