aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/revealAllSpoilers.ts
diff options
context:
space:
mode:
authorNico <nico@d3sox.me>2023-02-28 00:41:14 +0100
committerGitHub <noreply@github.com>2023-02-28 00:41:14 +0100
commitcb507babaad57d71cb34c9108c625454c6adbafd (patch)
tree2890eb99b9ac33e726bb737a2a8f6e91fc6a32ab /src/plugins/revealAllSpoilers.ts
parent235d1141930c24b8b8dd292a836f5b6f4b622700 (diff)
downloadVencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.gz
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.tar.bz2
Vencord-cb507babaad57d71cb34c9108c625454c6adbafd.zip
fix: vcDoubleClick and revealAllSpoilers patch (#517)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/revealAllSpoilers.ts')
-rw-r--r--src/plugins/revealAllSpoilers.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/revealAllSpoilers.ts b/src/plugins/revealAllSpoilers.ts
index b508b6a..ead169f 100644
--- a/src/plugins/revealAllSpoilers.ts
+++ b/src/plugins/revealAllSpoilers.ts
@@ -30,10 +30,10 @@ export default definePlugin({
patches: [
{
- find: ".revealSpoiler=function",
+ find: ".removeObscurity=function",
replacement: {
- match: /\.revealSpoiler=function\((.{1,2})\){/,
- replace: ".revealSpoiler=function($1){$self.reveal($1);"
+ match: /\.removeObscurity=function\((\i)\){/,
+ replace: ".removeObscurity=function($1){$self.reveal($1);"
}
}
],