mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
i18n
This commit is contained in:
parent
c2287a1d59
commit
fe69a03e7c
26 changed files with 42 additions and 42 deletions
|
@ -74,10 +74,10 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Settings, sidebar
|
// Settings, sidebar
|
||||||
find: "Messages.BILLING_SETTINGS",
|
find: "#{intl::BILLING_SETTINGS}",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=Messages.BILLING_SETTINGS,)/,
|
match: /(?<=#{intl::BILLING_SETTINGS},)/,
|
||||||
replace: "capitalism:true,"
|
replace: "capitalism:true,"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Emoji list
|
// Emoji list
|
||||||
find: "isEmojiCategoryNitroLocked({",
|
find: "#{intl::EMOJI_PICKER_CREATE_EMOJI_TITLE},size:",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\i)=\i\|\|!\i&&\i.\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/,
|
match: /(\i)=\i\|\|!\i&&\i.\i.isEmojiCategoryNitroLocked\(\{[^}]*\}\);/,
|
||||||
replace: "$&$1||"
|
replace: "$&$1||"
|
||||||
|
@ -108,7 +108,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Emoji category list
|
// Emoji category list
|
||||||
find: "EMOJI_PICKER_REACTION_EMOJI_CLICKED;",
|
find: "#{intl::EMOJI_CATEGORY_TOP_GUILD_EMOJI}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/,
|
match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/,
|
||||||
replace: "$2.isNitroLocked||"
|
replace: "$2.isNitroLocked||"
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "MEMBER_LIST,tagUserId",
|
find: "#{intl::GUILD_OWNER},",
|
||||||
replacement:
|
replacement:
|
||||||
{
|
{
|
||||||
// We add the banner as a property while we can still access the user id
|
// We add the banner as a property while we can still access the user id
|
||||||
|
|
|
@ -72,9 +72,9 @@ export default definePlugin({
|
||||||
authors: [Devs.Inbestigator],
|
authors: [Devs.Inbestigator],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "banReasonOtherClickable,children",
|
find: "#{intl::BAN_MULTIPLE_CONFIRM_TITLE}",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /\[\{name:\i\.\i.+?\}\]/,
|
match: /\[\{name:#{intl::BAN_REASON_OPTION_SPAM_ACCOUNT}.+?\}\]/,
|
||||||
replace: "$self.getReasons()"
|
replace: "$self.getReasons()"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,10 +37,10 @@ export default definePlugin({
|
||||||
authors: [EquicordDevs.iamme],
|
authors: [EquicordDevs.iamme],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ".GuildSplash,{guild",
|
find: "#{intl::HUB_INVITE_ANOTHER_SCHOOL_LINK}",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /,(\i)&&(\(.{0,15}\i\.TooltipContainer.{0,50}text:)(\i.{0,50}]\))/,
|
match: /,(\i)&&(\(.{0,15}\i\.TooltipContainer.+)(#{intl::Messages.GUEST_MEMBERSHIP_EXPLANATION})/,
|
||||||
replace: ",($1||((!$1)&&arguments[0].invite.expires_at)) && $2$self.RenderTip($1, $3, arguments[0].invite.expires_at)"
|
replace: ",($1||((!$1)&&arguments[0].invite.expires_at)) && $2$self.RenderTip($1, $3, arguments[0].invite.expires_at)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,7 +59,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "allNamesString,hideOnClick",
|
find: "#{intl::ADD_REACTION_NAMED}",
|
||||||
group: true,
|
group: true,
|
||||||
replacement: [
|
replacement: [
|
||||||
// Override limit of emojis to display with offset hook.
|
// Override limit of emojis to display with offset hook.
|
||||||
|
|
|
@ -15,7 +15,7 @@ export default definePlugin({
|
||||||
description: "Reworks the user area styling to fit more buttons and overall look nicer",
|
description: "Reworks the user area styling to fit more buttons and overall look nicer",
|
||||||
authors: [Devs.Samwich],
|
authors: [Devs.Samwich],
|
||||||
patches: [{
|
patches: [{
|
||||||
find: "handleToggleSelfMute,onContextMenu",
|
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
|
||||||
replacement:
|
replacement:
|
||||||
[
|
[
|
||||||
// add a custom class to make things easier
|
// add a custom class to make things easier
|
||||||
|
|
|
@ -167,7 +167,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// "1 blocked message"
|
// "1 blocked message"
|
||||||
{
|
{
|
||||||
find: "blockedAction,children",
|
find: "#{intl::BLOCKED_MESSAGES_HIDE}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\i.memo\(function\(\i\){/,
|
match: /\i.memo\(function\(\i\){/,
|
||||||
replace: "$&return null;"
|
replace: "$&return null;"
|
||||||
|
|
|
@ -67,7 +67,7 @@ export default definePlugin({
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
patches: [{
|
patches: [{
|
||||||
find: "timestampTooltip,delay",
|
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=\i=\i\?)\(0,\i\.\i\)\((\i),"LT"\):\(0,\i\.\i\)\(\i\)/,
|
match: /(?<=\i=\i\?)\(0,\i\.\i\)\((\i),"LT"\):\(0,\i\.\i\)\(\i\)/,
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "stopPropagation:!0,ariaLabel",
|
find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/,
|
match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/,
|
||||||
replace: "$self.wrapForumAuthor({...$1,$2},$&)"
|
replace: "$self.wrapForumAuthor({...$1,$2},$&)"
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default definePlugin({
|
||||||
generateSearchResults: generateSearchResults,
|
generateSearchResults: generateSearchResults,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "query,spellCheck:!1,autoFocus",
|
find: "#{intl::QUICKSWITCHER_PLACEHOLDER}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /let{selectedIndex:\i,results:\i}/,
|
match: /let{selectedIndex:\i,results:\i}/,
|
||||||
replace: "this.props.results = $self.generateSearchResults(this.state.query);$&"
|
replace: "this.props.results = $self.generateSearchResults(this.state.query);$&"
|
||||||
|
|
|
@ -212,7 +212,7 @@ export default definePlugin({
|
||||||
queryFriendTags: queryFriendTags,
|
queryFriendTags: queryFriendTags,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "query,spellCheck:!1,autoFocus",
|
find: "#{intl::QUICKSWITCHER_PLACEHOLDER}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /let{selectedIndex:\i,results:\i}/,
|
match: /let{selectedIndex:\i,results:\i}/,
|
||||||
replace: "if(this.state.query.includes(\"&\")){ this.props.results = $self.queryFriendTags(this.state.query); }$&"
|
replace: "if(this.state.query.includes(\"&\")){ this.props.results = $self.queryFriendTags(this.state.query); }$&"
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "colorString,background",
|
find: "#{intl::UNKNOWN_ROLE_PLACEHOLDER}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(hidePersonalInformation.*?)return/,
|
match: /(hidePersonalInformation.*?)return/,
|
||||||
replace: "$1return $self.patchChatboxMention(arguments[0]);"
|
replace: "$1return $self.patchChatboxMention(arguments[0]);"
|
||||||
|
|
|
@ -77,7 +77,7 @@ export default definePlugin({
|
||||||
find: '("guildsnav")',
|
find: '("guildsnav")',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=onActivate.{0,100},children:.{0,300}?)(\i)(\)?\.map\(\i\))/,
|
match: /(?<=#{intl::SERVERS},children:.{0,300}?)(\i)(\)?\.map\(\i\))/,
|
||||||
replace: "$self.useFilteredGuilds($1)$2",
|
replace: "$self.useFilteredGuilds($1)$2",
|
||||||
},
|
},
|
||||||
// despite my best efforts, the above doesnt trigger a rerender
|
// despite my best efforts, the above doesnt trigger a rerender
|
||||||
|
@ -88,7 +88,7 @@ export default definePlugin({
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: '"quick-switcher-".concat',
|
find: "#{intl::QUICKSWITCHER_PROTIP}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=renderResults\(\){)let{query/,
|
match: /(?<=renderResults\(\){)let{query/,
|
||||||
replace: "this.props.results = $self.filteredGuildResults(this.props.results);$&",
|
replace: "this.props.results = $self.filteredGuildResults(this.props.results);$&",
|
||||||
|
|
|
@ -26,7 +26,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "downloadProgress,determineOwnVisibility",
|
find: "#{intl::DISCODO_DISABLED}",
|
||||||
replacement:
|
replacement:
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|
|
@ -140,7 +140,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "DefaultCustomizationSections",
|
find: "DefaultCustomizationSections",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=sectionTitle:.{0,50}]\)},"decoration"\),)/,
|
match: /(?<=#{intl::USER_SETTINGS_AVATAR_DECORATION}},"decoration"\),)/,
|
||||||
replace: "$self.ResetCard(),"
|
replace: "$self.ResetCard(),"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@ export default definePlugin({
|
||||||
authors: [Devs.D3SOX],
|
authors: [Devs.D3SOX],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "USER_AGREEMENTS,properties",
|
find: "#{intl::NEW_TERMS_TITLE}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /function (\i)\((\i)\)\{let\{transitionState:(\i)\}=(\i)/g,
|
match: /function (\i)\((\i)\)\{let\{transitionState:(\i)\}=(\i)/g,
|
||||||
replace: "function $1($2){return $self.closeModal($2);let{transitionState:$3}=$4"
|
replace: "function $1($2){return $self.closeModal($2);let{transitionState:$3}=$4"
|
||||||
|
|
|
@ -33,7 +33,7 @@ const recentMentionsPopoutClass = findByPropsLazy("recentMentionsPopout");
|
||||||
const tabClass = findByPropsLazy("inboxTitle", "tab");
|
const tabClass = findByPropsLazy("inboxTitle", "tab");
|
||||||
const buttonClass = findByPropsLazy("size36");
|
const buttonClass = findByPropsLazy("size36");
|
||||||
const MenuHeader = findByCodeLazy(".getUnseenInviteCount())");
|
const MenuHeader = findByCodeLazy(".getUnseenInviteCount())");
|
||||||
const Popout = findByCodeLazy(".trackJump", "canCloseAllMessages:");
|
const Popout = findByCodeLazy("#{intl::UNBLOCK_TO_JUMP_TITLE}", "canCloseAllMessages:");
|
||||||
const createMessageRecord = findByCodeLazy(".createFromServer(", ".isBlockedForMessage", "messageReference:");
|
const createMessageRecord = findByCodeLazy(".createFromServer(", ".isBlockedForMessage", "messageReference:");
|
||||||
const KEYWORD_ENTRIES_KEY = "KeywordNotify_keywordEntries";
|
const KEYWORD_ENTRIES_KEY = "KeywordNotify_keywordEntries";
|
||||||
const KEYWORD_LOG_KEY = "KeywordNotify_log";
|
const KEYWORD_LOG_KEY = "KeywordNotify_log";
|
||||||
|
@ -313,7 +313,7 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "TODOS,className",
|
find: "#{intl::UNREADS_TAB_LABEL}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\i\?\(0,\i\.jsxs\)\(\i\.TabBar\.Item/,
|
match: /\i\?\(0,\i\.jsxs\)\(\i\.TabBar\.Item/,
|
||||||
replace: "$self.keywordTabBar(),$&"
|
replace: "$self.keywordTabBar(),$&"
|
||||||
|
|
|
@ -58,13 +58,13 @@ export default definePlugin({
|
||||||
replacement: {
|
replacement: {
|
||||||
// Find the Edit User Profile button and insert our custom button.
|
// Find the Edit User Profile button and insert our custom button.
|
||||||
// A bit jank, but whatever
|
// A bit jank, but whatever
|
||||||
match: /,(.{0,10}\.Button.{0,50},children:.{0,50}}\))]/,
|
match: /,(.{11}\.Button,.{58}\.USER_SETTINGS_EDIT_USER_PROFILE}\))/,
|
||||||
replace: ",$self.insertScanQrButton($1)]",
|
replace: ",$self.insertScanQrButton($1)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
|
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
|
||||||
{
|
{
|
||||||
find: 'id:"manage-accounts"',
|
find: "#{intl::SWITCH_ACCOUNTS_MANAGE_ACCOUNTS},",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
|
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
|
||||||
replace: "$1}),$self.ScanQrMenuItem)$2"
|
replace: "$1}),$self.ScanQrMenuItem)$2"
|
||||||
|
|
|
@ -101,7 +101,7 @@ export default definePlugin({
|
||||||
predicate: () => settings.store.onLink,
|
predicate: () => settings.store.onLink,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".NOT_LOADED:",
|
find: "#{intl::REPLY_QUOTE_MESSAGE_NOT_LOADED}",
|
||||||
replacement: {
|
replacement: {
|
||||||
// Should match two places
|
// Should match two places
|
||||||
match: /(\i\.Clickable),\{/g,
|
match: /(\i\.Clickable),\{/g,
|
||||||
|
@ -110,7 +110,7 @@ export default definePlugin({
|
||||||
predicate: () => settings.store.onReply,
|
predicate: () => settings.store.onReply,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "TEXT_LOW_CONTRAST})]",
|
find: "#{intl::MESSAGE_FORWARDED}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\i\.Clickable),\{/,
|
match: /(\i\.Clickable),\{/,
|
||||||
replace: "$self.ForwardTooltip,{Component:$1,vcProps:arguments[0],"
|
replace: "$self.ForwardTooltip,{Component:$1,vcProps:arguments[0],"
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "STICKER_BUTTON_LABEL,",
|
find: "#{intl::STICKER_BUTTON_LABEL},",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /(children:\(0,\w\.jsx\)\()([\w.]+?)(,{innerClassName.{10,30}\.stickerButton)/,
|
match: /(children:\(0,\w\.jsx\)\()([\w.]+?)(,{innerClassName.{10,30}\.stickerButton)/,
|
||||||
replace: (_, head, button, tail) => {
|
replace: (_, head, button, tail) => {
|
||||||
|
@ -64,11 +64,11 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "GIF,children",
|
find: "#{intl::EXPRESSION_PICKER_GIF}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /role:"tablist","aria-label":.{0,50},children:(\[.*?\)\]}\)}\):null,)(.*?closePopout:\w.*?:null)/s,
|
match: /role:"tablist",.+?#{intl::EXPRESSION_PICKER_CATEGORIES_A11Y_LABEL},children:(\[.*?\)\]}\)}\):null,)(.*?closePopout:\w.*?:null)/s,
|
||||||
replace: m => {
|
replace: m => {
|
||||||
const stickerTabRegex = /(\w+?)\?(\([^()]+?\))\((.{1,2}),{.{0,128},isActive:(.{1,2})===.{1,150},children:(.{1,50}]\)).*?:null/s;
|
const stickerTabRegex = /(\w+?)\?(\([^()]+?\))\((.{1,2}),{.{0,128},isActive:(.{1,2})===.{1,150},children:(.{1,10}#{intl::EXPRESSION_PICKER_STICKER}).*?:null/s;
|
||||||
const res = m.replace(stickerTabRegex, (_m, canUseStickers, jsx, tabHeaderComp, currentTab, stickerText) => {
|
const res = m.replace(stickerTabRegex, (_m, canUseStickers, jsx, tabHeaderComp, currentTab, stickerText) => {
|
||||||
const isActive = `${currentTab}==="stickers+"`;
|
const isActive = `${currentTab}==="stickers+"`;
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -27,9 +27,9 @@ export default definePlugin({
|
||||||
authors: [EquicordDevs.iamme],
|
authors: [EquicordDevs.iamme],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "editedTimestamp,isEdited",
|
find: "#{intl::MESSAGE_EDITED},",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /editedTimestamp,isEdited(?:[^}]*[}]){3}\)/,
|
match: /#{intl::MESSAGE_EDITED},(?:[^}]*[}]){3}\)/,
|
||||||
replace: "$&,$self.PinnedIcon(arguments[0].message)"
|
replace: "$&,$self.PinnedIcon(arguments[0].message)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import definePlugin from "@utils/types";
|
||||||
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
||||||
import badges from "plugins/_api/badges";
|
import badges from "plugins/_api/badges";
|
||||||
const roleIconClassName = findByPropsLazy("roleIcon", "separator").roleIcon;
|
const roleIconClassName = findByPropsLazy("roleIcon", "separator").roleIcon;
|
||||||
const RoleIconComponent = findComponentByCodeLazy(".roleIcon", ".clickable");
|
const RoleIconComponent = findComponentByCodeLazy("#{intl::ROLE_ICON_ALT_TEXT}");
|
||||||
import "./styles.css";
|
import "./styles.css";
|
||||||
|
|
||||||
import { User } from "discord-types/general";
|
import { User } from "discord-types/general";
|
||||||
|
|
|
@ -34,7 +34,7 @@ const { HeaderBar, HeaderBarIcon } = mapMangledModuleLazy(".themedMobile]:", {
|
||||||
});
|
});
|
||||||
const Chat = findComponentByCodeLazy("filterAfterTimestamp:", "chatInputType");
|
const Chat = findComponentByCodeLazy("filterAfterTimestamp:", "chatInputType");
|
||||||
const Resize = findComponentByCodeLazy("sidebarType:", "homeSidebarWidth");
|
const Resize = findComponentByCodeLazy("sidebarType:", "homeSidebarWidth");
|
||||||
const ChannelHeader = findComponentByCodeLazy(".GUILD_DIRECTORY", ".HUB");
|
const ChannelHeader = findComponentByCodeLazy("#{intl::HUB_DIRECTORY_CHANNEL_TITLE}");
|
||||||
const ChatInputTypes = findByPropsLazy("FORM", "NORMAL");
|
const ChatInputTypes = findByPropsLazy("FORM", "NORMAL");
|
||||||
const Sidebars = findByPropsLazy("ThreadSidebar", "MessageRequestSidebar");
|
const Sidebars = findByPropsLazy("ThreadSidebar", "MessageRequestSidebar");
|
||||||
|
|
||||||
|
|
|
@ -131,14 +131,14 @@ export default definePlugin({
|
||||||
dependencies: ["UserSettingsAPI"],
|
dependencies: ["UserSettingsAPI"],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "analyticsLocation,children",
|
find: "#{intl::CUSTOM_STATUS_SET_CUSTOM_STATUS}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.ModalFooter,.{0,70}\.handleSubmit.{0,50}\}\)/,
|
match: /\.ModalFooter,.{0,70}\.Messages\.SAVE\}\)/,
|
||||||
replace: "$&,$self.renderRememberButton(this.state)"
|
replace: "$&,$self.renderRememberButton(this.state)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: /statusPickerModalMenu,"aria-label":.{0,1}\..{0,50}\)/,
|
find: '"aria-label":#{intl::STATUS_MENU_LABEL}',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/,
|
match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/,
|
||||||
replace: "$self.render($2, $3),false&&$1"
|
replace: "$self.render($2, $3),false&&$1"
|
||||||
|
|
|
@ -601,7 +601,7 @@ export default definePlugin({
|
||||||
authors: [EquicordDevs.creations],
|
authors: [EquicordDevs.creations],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "null,titleWithoutQuery",
|
find: "#{intl::EMOJI_MATCHING}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /renderResults\((\i)\){/,
|
match: /renderResults\((\i)\){/,
|
||||||
replace: "$&$1.results.emojis=$self.filterEmojis($1);if($1.results.emojis.length===0)return;"
|
replace: "$&$1.results.emojis=$self.filterEmojis($1);if($1.results.emojis.length===0)return;"
|
||||||
|
|
|
@ -18,7 +18,7 @@ export default definePlugin({
|
||||||
authors: [Devs.arHSM],
|
authors: [Devs.arHSM],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "embedSuppressButton,onClick",
|
find: "#{intl::SUPPRESS_ALL_EMBEDS}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /case (\i\.\i\.VIDEO):(case \i\.\i\.\i:)*break;default:(\i)=(?:(this\.renderDescription)\(\))\}/,
|
match: /case (\i\.\i\.VIDEO):(case \i\.\i\.\i:)*break;default:(\i)=(?:(this\.renderDescription)\(\))\}/,
|
||||||
replace: "$2 break; case $1: $3 = $self.ToggleableDescriptionWrapper({ embed: this.props.embed, original: $4.bind(this) }); break; default: $3 = $4() }"
|
replace: "$2 break; case $1: $3 = $self.ToggleableDescriptionWrapper({ embed: this.props.embed, original: $4.bind(this) }); break; default: $3 = $4() }"
|
||||||
|
|
Loading…
Reference in a new issue