Merge branch 'pr-3925' into dev
This commit is contained in:
commit
f1dd6f9bf9
8 changed files with 10 additions and 10 deletions
|
|
@ -80,7 +80,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Guild Banner
|
||||
find: '"data-banner-visible":',
|
||||
find: "#{intl::DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO}",
|
||||
predicate: () => settings.store.serverBanners,
|
||||
replacement: {
|
||||
match: /(guildBanner:\i,animate:)\i(?=}\):null)/,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import { CloudUpload } from "@vencord/discord-types";
|
|||
import { findByCodeLazy } from "@webpack";
|
||||
import { useState } from "@webpack/common";
|
||||
|
||||
const ActionBarIcon = findByCodeLazy(".actionBarIcon");
|
||||
const ActionBarIcon = findByCodeLazy(".actionBarIconaaaaaaaaaaa");
|
||||
|
||||
const enum Methods {
|
||||
Random,
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
// class used in this module is dotBorderBase
|
||||
find: "0H16C18.2091",
|
||||
// Class used in this module is dotBorderBase
|
||||
find: "M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z",
|
||||
replacement: {
|
||||
match: /,viewBox:"0 0 20 20"/,
|
||||
replace: "$&,onClick:()=>$self.copyToClipBoard(arguments[0].color),style:{cursor:'pointer'}",
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::PREVIEW_BYTES_LEFT}",
|
||||
replacement: {
|
||||
match: /(?<=fileContents:(\i),bytesLeft:(\i).+?)url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)/g,
|
||||
match: /url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)(?<=fileContents:(\i),bytesLeft:(\i).+?)/g,
|
||||
replace: "$&$self.addCopyButton({fileContents:$1,bytesLeft:$2}),"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ export default definePlugin({
|
|||
find: '.getByName("fork_and_knife")',
|
||||
predicate: () => settings.store.enableEmojiBypass,
|
||||
replacement: {
|
||||
match: ".CHAT",
|
||||
match: /\.CHAT/,
|
||||
replace: ".STATUS"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
// same find as RoleColorEverywhere chatbox mentions
|
||||
// Same find as RoleColorEverywhere chatbox mentions
|
||||
find: ':"text":',
|
||||
replacement: {
|
||||
match: /(hidePersonalInformation\).+?)(if\(null!=\i\){.+?return \i)(?=})/,
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::WELCOME_CTA_LABEL}",
|
||||
replacement: {
|
||||
match: /(?<={channel:\i,message:\i}=(\i).+?)className:\i\.\i,(?=.{0,40}"sticker")/,
|
||||
match: /className:\i\.\i,(?=.{0,40}?"sticker")(?<={channel:\i,message:\i}=(\i).+?)/,
|
||||
replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1),"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export default definePlugin({
|
|||
},
|
||||
// Slate
|
||||
{
|
||||
// same find as FullUserInChatbox
|
||||
// Same find as FullUserInChatbox
|
||||
find: ':"text":',
|
||||
replacement: [
|
||||
{
|
||||
|
|
@ -138,7 +138,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "MessageReactions.render:",
|
||||
replacement: {
|
||||
match: /tag:"strong",variant:"text-md\/\w+"(?<=onContextMenu:.{0,15}\((\i),(\i),\i\).+?)/,
|
||||
match: /tag:"strong",variant:"text-md\/medium"(?<=onContextMenu:.{0,15}\((\i),(\i),\i\).+?)/,
|
||||
replace: "$&,style:$self.getColorStyle($2?.id,$1?.channel?.id)"
|
||||
},
|
||||
predicate: () => settings.store.reactorsList,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue