fix more things

This commit is contained in:
thororen1234 2026-01-23 16:24:48 -05:00
parent 115c456868
commit d257a70d3a
No known key found for this signature in database
5 changed files with 19 additions and 18 deletions

View file

@ -77,17 +77,18 @@ export default definePlugin({
}
},
{
find: "#{intl::CLIPS_SETTINGS_ENABLE_CLIPS_HELP}),checked",
replacement: [
{
match: /\[\{.{0,25}\i.\i.FPS_15.{0,500}\}\]/,
replace: "$self.patchFramerates($&)"
},
{
match: /\[\{.{0,25}\i.\i.SECONDS_30.{0,500}\}\]/,
replace: "$self.patchTimeslots($&)"
},
]
find: ".CLIPS_FRAME_RATE,{",
replacement: {
match: /\[\{.{0,25}\i.\i.FPS_15.{0,500}\}\]/,
replace: "$self.patchFramerates($&)"
}
},
{
find: ".CLIPS_LENGTH,{",
replacement: {
match: /\[\{.{0,25}\i.\i.SECONDS_30.{0,500}\}\]/,
replace: "$self.patchTimeslots($&)"
}
},
// enables clips
{

View file

@ -5,7 +5,7 @@
*/
import { Channel, Message } from "@vencord/discord-types";
import { findByPropsLazy } from "@webpack";
import { findCssClassesLazy } from "@webpack";
import { MessageStore, useEffect, UserStore, useState, useStateFromStores } from "@webpack/common";
import { cl, settings } from ".";
@ -81,7 +81,7 @@ export function isChannelCleared(channelId: string): boolean {
return clearedChannels.has(channelId);
}
const ChannelWrapperStyles = findByPropsLazy("muted", "wrapper");
const ChannelWrapperStyles = findCssClassesLazy("muted", "wrapper");
export function Boo({ channel }: { channel: Channel; }) {
const { id } = channel;

View file

@ -85,7 +85,7 @@ export default definePlugin({
{
find: ".PRIVACY_ENCRYPTION_VERIFIED_DEVICES_V2]",
replacement: {
match: /\.CLIPS]:{.*?},/,
match: /\.PRIVACY_SAFETY_ALERTS_V2]:{.*?},/,
replace: "$&\"SCAN_QR_CODE\":$self.ScanQrSettingsSheet,"
}
}

View file

@ -27,7 +27,7 @@ import { classes } from "@utils/misc";
import { openModalLazy } from "@utils/modal";
import { useForceUpdater } from "@utils/react";
import definePlugin, { OptionType, StartAt } from "@utils/types";
import { extractAndLoadChunksLazy, findByPropsLazy, findComponentByCodeLazy, findModuleId, wreq } from "@webpack";
import { extractAndLoadChunksLazy, findComponentByCodeLazy, findCssClassesLazy, findModuleId, wreq } from "@webpack";
import { Clickable, Menu, OverridePremiumTypeStore, Toasts, useState } from "@webpack/common";
import managedStyle from "./fixActionBar.css?managed";
@ -56,7 +56,7 @@ interface DiscordStatus {
status: "online" | "dnd" | "idle" | "invisible";
}
const StatusStyles = findByPropsLazy("statusItem");
const StatusStyles = findCssClassesLazy("statusItem");
// TODO: find clearCustomStatusHint original css/svg or replace
const PMenu = findComponentByCodeLazy(".menuItemLabel", ".menuItemInner");
const EmojiComponent = findComponentByCodeLazy(/\.translateSurrogatesToInlineEmoji\(\i\.name\);/);

View file

@ -17,12 +17,12 @@ import { SearchStatus, TabItem, Theme, ThemeLikeProps } from "@equicordplugins/t
import { Logger } from "@utils/Logger";
import { Margins } from "@utils/margins";
import { classes } from "@utils/misc";
import { findByPropsLazy } from "@webpack";
import { findCssClassesLazy } from "@webpack";
import { Button, React, SearchableSelect, TabBar, TextInput, useEffect, useState } from "@webpack/common";
import { ThemeCard } from "./ThemeCard";
const InputStyles = findByPropsLazy("inputWrapper", "inputError", "error");
const InputStyles = findCssClassesLazy("inputWrapper", "inputError", "error");
export const apiUrl = "https://themes.equicord.org/api";
export const logger = new Logger("ThemeLibrary", "#e5c890");