Skip to content

Commit

Permalink
Merge pull request #8 from yofukashino/main
Browse files Browse the repository at this point in the history
fixed for swc
  • Loading branch information
OIRNOIR authored Jul 10, 2024
2 parents 017326e + 30b5f2f commit 52f416c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import type { PlaintextPatch } from "replugged/dist/types";

export default [
{
find: ".MEDIA_MOSAIC_MAX_HEIGHT",
find: "mp3|m4a|ogg|wav|flac",
replacements: [
{
match: /mediaLayoutType:\w+\.\w+\.MOSAIC/, // 310043
replace:
'mediaLayoutType:replugged.plugins.getExports("dev.oirnoir.RemoveDiscordMosaic")?.cfg?.get?.("static", false) ? "STATIC" : "RESPONSIVE"',
},
{
match: /\(0,\w+?\.isImageContentType\)\(\w+?\)\?"IMAGE":\(0,\w+?\.isVideoContentType\)\(\w+?\)\?"VIDEO":"INVALID"/, // 60750
match: /\(0,\w+?\.\w+?\)\(\w+?\)\?"IMAGE":\(0,\w+?\.\w+?\)\(\w+?\)\?"VIDEO":"INVALID"/, // 60750
replace: '"INVALID"',
},
{
Expand Down

0 comments on commit 52f416c

Please sign in to comment.