Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
thororen1234 2024-11-04 02:54:22 +00:00
commit 4d712b5020

View file

@ -56,7 +56,7 @@ export default definePlugin({
] ]
}, },
{ {
find: "Messages.ACTIVITY_SETTINGS", find: ".SEARCH_NO_RESULTS&&0===",
replacement: [ replacement: [
{ {
match: /(?<=section:(.{0,50})\.DIVIDER\}\))([,;])(?=.{0,200}(\i)\.push.{0,100}label:(\i)\.header)/, match: /(?<=section:(.{0,50})\.DIVIDER\}\))([,;])(?=.{0,200}(\i)\.push.{0,100}label:(\i)\.header)/,
@ -160,6 +160,7 @@ export default definePlugin({
if (!header) return; if (!header) return;
try {
const names = { const names = {
top: i18n.Messages.USER_SETTINGS, top: i18n.Messages.USER_SETTINGS,
aboveNitro: i18n.Messages.BILLING_SETTINGS, aboveNitro: i18n.Messages.BILLING_SETTINGS,
@ -167,6 +168,9 @@ export default definePlugin({
aboveActivity: i18n.Messages.ACTIVITY_SETTINGS aboveActivity: i18n.Messages.ACTIVITY_SETTINGS
}; };
return header === names[settingsLocation]; return header === names[settingsLocation];
} catch {
return firstChild === "PREMIUM";
}
}, },
patchedSettings: new WeakSet(), patchedSettings: new WeakSet(),