fix ImageZoom, LoadingQuote, NoRPC, RevealAllSpoilers, SecretRingTone (#2306)
This commit is contained in:
parent
82ab3ad1b9
commit
de9122b05b
|
@ -23,7 +23,7 @@ import { makeRange } from "@components/PluginSettings/components";
|
||||||
import { debounce } from "@shared/debounce";
|
import { debounce } from "@shared/debounce";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { Menu, React, ReactDOM } from "@webpack/common";
|
import { Menu, ReactDOM } from "@webpack/common";
|
||||||
import type { Root } from "react-dom/client";
|
import type { Root } from "react-dom/client";
|
||||||
|
|
||||||
import { Magnifier, MagnifierProps } from "./components/Magnifier";
|
import { Magnifier, MagnifierProps } from "./components/Magnifier";
|
||||||
|
@ -168,7 +168,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
find: "handleImageLoad=",
|
find: ".handleImageLoad)",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /placeholderVersion:\i,/,
|
match: /placeholderVersion:\i,/,
|
||||||
|
|
|
@ -81,11 +81,11 @@ export default definePlugin({
|
||||||
find: ".LOADING_DID_YOU_KNOW}",
|
find: ".LOADING_DID_YOU_KNOW}",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /\._loadingText=function\(\)\{/,
|
match: /"_loadingText",function\(\)\{/,
|
||||||
replace: "$&return $self.quote;",
|
replace: "$&return $self.quote;",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /\._eventLoadingText=function\(\)\{/,
|
match: /"_eventLoadingText",function\(\)\{/,
|
||||||
replace: "$&return $self.quote;",
|
replace: "$&return $self.quote;",
|
||||||
predicate: () => settings.store.replaceEvents
|
predicate: () => settings.store.replaceEvents
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: '.ensureModule("discord_rpc")',
|
find: '.ensureModule("discord_rpc")',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.ensureModule\("discord_rpc"\)\.then\(\(.+?\)\)}/,
|
match: /\.ensureModule\("discord_rpc"\)\.then\(\(.+?\)}\)}/,
|
||||||
replace: '.ensureModule("discord_rpc")}',
|
replace: '.ensureModule("discord_rpc")}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,9 +30,9 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ".removeObscurity=",
|
find: ".removeObscurity,",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\.removeObscurity=(\i)=>{)/,
|
match: /(?<="removeObscurity",(\i)=>{)/,
|
||||||
replace: (_, event) => `$self.reveal(${event});`
|
replace: (_, event) => `$self.reveal(${event});`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "call_ringing_beat\"",
|
find: "call_ringing_beat\"",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /500===\i\.random\(1,1e3\)/,
|
match: /500===\i\(\)\.random\(1,1e3\)/,
|
||||||
replace: "true"
|
replace: "true"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue