diff options
author | V <vendicated@riseup.net> | 2023-09-21 18:56:58 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-09-21 18:56:58 +0200 |
commit | 97b6699afefe373d510dda5589a0754a4b380153 (patch) | |
tree | 112c8dd963aa4ed64702c9444738fbcca9d4674a /src/plugins | |
parent | 7e91edc7577ba65fab08bc45c07cbd6f1756bd6f (diff) | |
download | Vencord-97b6699afefe373d510dda5589a0754a4b380153.tar.gz Vencord-97b6699afefe373d510dda5589a0754a4b380153.tar.bz2 Vencord-97b6699afefe373d510dda5589a0754a4b380153.zip |
Fuck you Mozilla
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/_core/supportHelper.tsx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 674be8e..2e86869 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -17,7 +17,7 @@ */ import { DataStore } from "@api/index"; -import { Devs, SUPPORT_CHANNEL_ID } from "@utils/constants"; +import { Devs, IsFirefox, SUPPORT_CHANNEL_ID } from "@utils/constants"; import { isPluginDev } from "@utils/misc"; import { makeCodeblock } from "@utils/text"; import definePlugin from "@utils/types"; @@ -30,6 +30,7 @@ import plugins from "~plugins"; import settings from "./settings"; const REMEMBER_DISMISS_KEY = "Vencord-SupportHelper-Dismiss"; +const FIREFOX_DISMISS_KEY = "Vencord-Firefox-Warning-Dismiss"; const AllowedChannelIds = [ SUPPORT_CHANNEL_ID, @@ -115,6 +116,22 @@ ${makeCodeblock(enabledPlugins.join(", ") + "\n\n" + enabledApiPlugins.join(", " onConfirm: rememberDismiss }); } + + if (IsFirefox) { + const rememberDismiss = () => DataStore.set(FIREFOX_DISMISS_KEY, true); + + Alerts.show({ + title: "Hold on!", + body: <div> + <Forms.FormText>You are using Firefox.</Forms.FormText> + <Forms.FormText>Due to Firefox's stupid extension guidelines, most themes and many plugins will not function correctly.</Forms.FormText> + <Forms.FormText>Do not report bugs. Do not ask for help with broken plugins.</Forms.FormText> + <Forms.FormText>Instead, use a chromium browser, Discord Desktop, or Vesktop.</Forms.FormText> + </div>, + onCancel: rememberDismiss, + onConfirm: rememberDismiss + }); + } } } }); |