mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
parent
b9e07cbe0f
commit
6073624d8f
1 changed files with 9 additions and 15 deletions
|
@ -167,22 +167,16 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
patches: [{
|
patches: [
|
||||||
find: ".isPureReactComponent=!0;",
|
{
|
||||||
predicate: () => settings.store.uwuEverything,
|
find: ".isPureReactComponent=!0;",
|
||||||
replacement: {
|
predicate: () => settings.store.uwuEverything,
|
||||||
match: /(?<=.defaultProps\)void 0.{0,60})props:(\i)/,
|
replacement: {
|
||||||
replace: "props:$self.uwuifyProps($1)"
|
match: /(?<=.defaultProps\)void 0.{0,60})(\i)\)/,
|
||||||
|
replace: "$self.uwuifyProps($1))"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, {
|
],
|
||||||
find: ".__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner",
|
|
||||||
predicate: () => settings.store.uwuEverything,
|
|
||||||
replacement: {
|
|
||||||
match: /(?<=.defaultProps\)void 0.{0,60})props:(\i)/,
|
|
||||||
replace: "props:$self.uwuifyProps($1)"
|
|
||||||
},
|
|
||||||
all: true
|
|
||||||
}],
|
|
||||||
|
|
||||||
uwuifyProps(props: any) {
|
uwuifyProps(props: any) {
|
||||||
if (!props.children) return props;
|
if (!props.children) return props;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue