From c1b87391049ccf1b20a88ec72a4e03a2089a14bb Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 26 Oct 2023 00:01:49 +0200 Subject: [PATCH] Fix RevealAllSpoilers --- src/plugins/revealAllSpoilers/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/revealAllSpoilers/index.ts b/src/plugins/revealAllSpoilers/index.ts index a12001632..746973b42 100644 --- a/src/plugins/revealAllSpoilers/index.ts +++ b/src/plugins/revealAllSpoilers/index.ts @@ -30,9 +30,9 @@ export default definePlugin({ patches: [ { - find: ".removeObscurity=function", + find: ".removeObscurity=", replacement: { - match: /(?<=\.removeObscurity=function\((\i)\){)/, + match: /(?<=\.removeObscurity=(\i)=>{)/, replace: (_, event) => `$self.reveal(${event});` } }