Fix Finds

This commit is contained in:
thororen1234 2026-03-24 23:40:30 -04:00
parent 55c7a1b233
commit 5c3c5a05f3
No known key found for this signature in database
2 changed files with 3 additions and 17 deletions

View file

@ -54,12 +54,6 @@ const settings = definePluginSettings({
default: true,
restartNeeded: true,
},
preventLqDowngrade: {
type: OptionType.BOOLEAN,
description: "Prevent LQ simulcast downgrade during bandwidth dips",
default: true,
restartNeeded: true,
},
keyframeInterval: {
type: OptionType.NUMBER,
description: "Keyframe interval in ms (0 = encoder default, 5000 = every 5s)",
@ -134,6 +128,7 @@ export default definePlugin({
},
],
predicate: () => settings.store.unlockQualityOptions && !isPluginEnabled(fakeNitro.name),
noWarn: true,
},
// remove guild premium tier restriction from stream fps options
{
@ -143,6 +138,7 @@ export default definePlugin({
replace: "",
},
predicate: () => settings.store.unlockQualityOptions && !isPluginEnabled(fakeNitro.name),
noWarn: true,
},
// allow resolutions above 720p at 60fps
{
@ -169,16 +165,6 @@ export default definePlugin({
},
],
},
// prevent LQ simulcast downgrade during bandwidth dips
{
find: "Attempting to downgrade to LQ simulcast",
replacement: {
match: /"LQ"===\i&&!\i&&\i&&\(/,
replace: "false&&(",
},
predicate: () => settings.store.preventLqDowngrade,
},
// raise default desktop bitrate caps at the source
{
find: "desktopBitrate:{",

View file

@ -192,7 +192,7 @@ export const IconUtils: t.IconUtils = findByPropsLazy("getGuildBannerURL", "getU
export const ColorUtils = mapMangledModuleLazy("Invalid hex color format", {
rgbToHex: filters.byCode(".toString(16).slice(1)"),
hexToRgba: filters.byCode("rgba(", "??"),
hexToRgba: filters.byCode("`rgba(${"),
hexToRgb: filters.byCode(".rgb();return"),
rgbToHsl: filters.byCode("saturation:", "lightness:"),
mixColors: filters.byCode(".substring(1,3),16)"),