diff --git a/docs/1_INSTALLING.md b/docs/1_INSTALLING.md index d57e64e58..edeed4eb5 100644 --- a/docs/1_INSTALLING.md +++ b/docs/1_INSTALLING.md @@ -1,6 +1,6 @@ -> [!WARNING] -> These instructions are only for advanced users. If you're not a Developer, you should use our [graphical installer](https://github.com/Vendicated/VencordInstaller#usage) instead. -> No support will be provided for installing in this fashion. If you cannot figure it out, you should just stick to a regular install. +> [!WARNING] +> These instructions are only for advanced users. If you're not a Developer, you should use our [graphical installer](https://github.com/Vendicated/VencordInstaller#usage) instead. +> No support will be provided for installing in this fashion. If you cannot figure it out, you should just stick to a regular install. # Installation Guide @@ -95,5 +95,3 @@ Simply run: ```shell pnpm uninject ``` - -If you need more help, ask in the support channel in our [Discord Server](https://discord.gg/D9uwnFnqmd). diff --git a/src/plugins/_api/chatButtons.ts b/src/plugins/_api/chatButtons.ts index 9e2c6bf06..1ec2fa25e 100644 --- a/src/plugins/_api/chatButtons.ts +++ b/src/plugins/_api/chatButtons.ts @@ -13,10 +13,10 @@ export default definePlugin({ authors: [Devs.Ven], patches: [{ - find: '"gift")),(null', + find: '"sticker")', replacement: { - match: /!\i\.isMobile&&(?=\(\i\.isDM.+?&&(\i)\.push\(.{0,50}"gift")/, - replace: "$&(Vencord.Api.ChatButtons._injectButtons($1,arguments[0]),!0)&&" + match: /!\i\.isMobile(?=.+?(\i)\.push\(.{0,50}"gift")/, + replace: "$& &&(Vencord.Api.ChatButtons._injectButtons($1,arguments[0]),true)" } }] }); diff --git a/src/webpack/common/stores.ts b/src/webpack/common/stores.ts index f3a18d7bc..2f9786bc5 100644 --- a/src/webpack/common/stores.ts +++ b/src/webpack/common/stores.ts @@ -44,7 +44,6 @@ export let PermissionStore: GenericStore; export let GuildChannelStore: GenericStore; export let ReadStateStore: GenericStore; export let PresenceStore: GenericStore; -export let PoggerModeSettingsStore: GenericStore; export let GuildStore: t.GuildStore; export let UserStore: Stores.UserStore & t.FluxStore; diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index 992bf38f3..a543a2dcd 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -110,13 +110,13 @@ export const find = traceFunction("find", function find(filter: FilterFn, { isIn for (const key in cache) { const mod = cache[key]; - if (!mod?.exports) continue; + if (!mod?.exports || mod.exports === window) continue; if (filter(mod.exports)) { return isWaitFor ? [mod.exports, key] : mod.exports; } - if (mod.exports.default && filter(mod.exports.default)) { + if (mod.exports.default && mod.exports.default !== window && filter(mod.exports.default)) { const found = mod.exports.default; return isWaitFor ? [found, key] : found; }