Fix Some Patches

This commit is contained in:
thororen1234 2026-04-24 08:23:09 -04:00
parent 04f2f45ced
commit c94ae02d6e
No known key found for this signature in database
8 changed files with 12 additions and 9 deletions

View file

@ -77,7 +77,6 @@ async function runReporter() {
else method = "find";
}
if (searchType === "waitForStore") method = "findStore";
if (searchType === "waitForStore" && args[0] === "PermissionStore") continue;
let result: any;
try {

View file

@ -26,7 +26,11 @@ export default definePlugin({
replace: "true"
},
{
match: /children:\[.*?\{\}\)\]/g,
match: /children:\[.{0,80}#{intl::BUILD_OVERRIDE}.{0,15}\{\}\)\]/,
replace: "children:$self.makeDevBanner()"
},
{
match: /children:\[.{0,80}#{intl::uyrfYF::raw}.{0,50}\{\}\)\]/,
replace: "children:$self.makeDevBanner()"
},
]

View file

@ -52,7 +52,7 @@ export default definePlugin({
{
find: ".clipboardData&&(",
replacement: {
match: /handleGlobalPaste:(\i)/,
match: /handleGlobalPaste:(\i)(?=\}\))/,
replace: "handleGlobalPaste:(...args)=>!$self.qrModalOpen&&$1(...args)",
},
},

View file

@ -65,7 +65,7 @@ export default definePlugin({
find: "#{intl::EXPRESSION_PICKER_CATEGORIES_A11Y_LABEL}",
replacement: [
{
match: /(?<=(\i)\?(\(.{0,15}\))\((\i),\{.{0,150}(\i)===\i\.\i\.STICKER,.{0,150}children:(.{0,30}\.\i,children:.{0,25})\}\)\}\):null)/,
match: /(?<=(\i)\?(\(.{0,15}\))\((\i),\{.{0,150}(\i)===\i\.\i\.STICKER,.{0,150}children:(.{0,50}\.\i,children:.{0,50})\}\)\}\):null)/,
replace: ',vcStickers=$1?$2($3,{id:"stickers+-picker-tab","aria-controls":"more-stickers-picker-tab-panel","aria-selected":$4==="stickers+",isActive:$4==="stickers+",autoFocus:true,viewType:"stickers+",children:$5+"+"})}):null'
},
{

View file

@ -14,7 +14,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
import { openPluginModal } from "@components/settings";
import { EquicordDevs } from "@utils/constants";
import { copyToClipboard } from "@utils/index";
import definePlugin, { PluginNative, StartAt } from "@utils/types";
import definePlugin, { PluginNative, ReporterTestable, StartAt } from "@utils/types";
import { findStoreLazy, onceReady } from "@webpack";
import { ContextMenuApi, Menu, NavigationRouter, RestAPI, useEffect, useState } from "@webpack/common";
import { JSX } from "react";

View file

@ -29,7 +29,7 @@ export default definePlugin({
{
find: ".MUTUAL_GUILDS})),",
replacement: {
match: /(\i).push\({text.{0,50}}\);/,
match: /(\i).push\({text.{0,50}.ACTIVITY\}\);/,
replace: '$&$1.push({text:"Song Spotlight",section:"SONG_SPOTLIGHT"});',
},
},

View file

@ -275,8 +275,8 @@ export default definePlugin({
find: "#{intl::GUILD_COMMUNICATION_DISABLED_ICON_TOOLTIP_BODY}",
replacement: {
// thanks https://github.com/Syncxv/vc-timezones/pull/4
match: /(?<=isVisibleOnlyOnHover.+?)id:.{1,11},timestamp.{1,50}}\),/,
replace: "$&,$self.renderMessageTimezone(arguments[0]),"
match: /(?<=isVisibleOnlyOnHover.+?)id:.{0,15},timestamp.{1,50}}\),/,
replace: "$&$self.renderMessageTimezone(arguments[0]),"
}
}
],

View file

@ -16,7 +16,7 @@ export default definePlugin({
find: "#{intl::USER_PROFILE_PRONOUNS}",
replacement: [
{
match: /(?<=,\i\]\}\)\),)null!=\i/,
match: /(?<=\}\),children:\[)null!=\i/,
replace: "($&||Vencord.Api.NicknameIcons._renderIcons({userId:arguments[0].user?.id})?.length)"
},
{