diff --git a/README.md b/README.md
index 767c708..daef604 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Use some Nitro features without wasting your money!
- - Can use emojis if they are unavailable due to a lack of boosts (they are unavaiable with nitro,
use this plugin even if you have nitro 😼)
- - Removes unavailable emoji tint in emoji picker
-- Stream in 1080p/Source 60 fps quality
+- Stream in 1080p/Source 60 fps quality (use at your own risk! may lead to account ban)
- Doesn't spoof premiumType
![image](https://cdn.discordapp.com/emojis/962730564840996964.png?size=20)
diff --git a/manifest.json b/manifest.json
index a7692a5..9de10a7 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,7 +7,7 @@
"discordID": "942752356595023874",
"github": "cafeed28"
},
- "version": "2.0.2",
+ "version": "2.0.3",
"updater": {
"type": "github",
"id": "cafeed28/replugged-nitrospoof"
diff --git a/package.json b/package.json
index a657a94..e1eaf49 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "replugged-nitrospoof",
- "version": "2.0.2",
+ "version": "2.0.3",
"description": "Use some Nitro features without wasting your money!",
"engines": {
"node": ">=14.0.0"
diff --git a/src/Settings.tsx b/src/Settings.tsx
index adc56c3..a5d76f9 100644
--- a/src/Settings.tsx
+++ b/src/Settings.tsx
@@ -7,6 +7,7 @@ const { Category, FormItem, Radio, Slider, SwitchItem } = components;
export function Settings() {
const emojiHideLinks = util.useSetting(config, "emojiHideLinks");
const emojiStaticExtension = util.useSetting(config, "emojiStaticExtension");
+ const streamQualityEnable = util.useSetting(config, "streamQualityEnable");
// TODO: i18n
return (
@@ -49,6 +50,14 @@ export function Settings() {
/>
+
+
+ Spoof stream quality (Use at your own risk! May lead to account ban)
+
+
);
}
diff --git a/src/index.ts b/src/index.ts
index f03594d..4bfb2a4 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -81,8 +81,8 @@ export async function start(): Promise {
injector.instead(emojiInfo, "getEmojiUnavailableReason", () => null);
// Stream quality
- injector.instead(premiumInfo, "canStreamHighQuality", () => true);
- injector.instead(premiumInfo, "canStreamMidQuality", () => true);
+ injector.instead(premiumInfo, "canStreamHighQuality", () => config.get("streamQualityEnable"));
+ injector.instead(premiumInfo, "canStreamMidQuality", () => config.get("streamQualityEnable"));
}
export function stop(): void {
diff --git a/src/misc.ts b/src/misc.ts
index cdc3f8e..c859f81 100644
--- a/src/misc.ts
+++ b/src/misc.ts
@@ -5,6 +5,7 @@ export const config = await settings.init("com.cafeed28.NitroSpoof", {
emojiSize: 48,
emojiStaticExtension: "png",
emojiHideLinks: false,
+ streamQualityEnable: false,
});
export const HIDE_TEXT_SPOILERS = "||\u200b||".repeat(199);
diff --git a/src/types.ts b/src/types.ts
index bfc75bd..117aa93 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -5,6 +5,7 @@ export type Config = {
emojiSize: number;
emojiStaticExtension: EmojiStaticExtension;
emojiHideLinks: boolean;
+ streamQualityEnable: boolean;
};
export enum PremiumType {