aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/alwaysTrust.ts6
-rw-r--r--src/plugins/betterRoleDot.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/alwaysTrust.ts b/src/plugins/alwaysTrust.ts
index 8dde07f..79193b0 100644
--- a/src/plugins/alwaysTrust.ts
+++ b/src/plugins/alwaysTrust.ts
@@ -32,10 +32,10 @@ export default definePlugin({
}
},
{
- find: "\"github.com\":new RegExp(\"\\\\/releases\\\\S*\\\\/download\"),",
+ find: '"7z","ade","adp"',
replacement: {
- match: /const o=JSON.parse\('\[.+?'\)/,
- replace: "const o=[]"
+ match: /JSON\.parse\('\[.+?'\)/,
+ replace: "[]"
}
}
]
diff --git a/src/plugins/betterRoleDot.ts b/src/plugins/betterRoleDot.ts
index 6ef92a8..62068c7 100644
--- a/src/plugins/betterRoleDot.ts
+++ b/src/plugins/betterRoleDot.ts
@@ -37,11 +37,11 @@ export default definePlugin({
},
},
{
- find: '"username"===',
+ find: '"dot"===',
all: true,
predicate: () => Settings.plugins.BetterRoleDot.bothStyles,
replacement: {
- match: /"(?:username|dot)"===\w(?!\.\w)/g,
+ match: /"(?:username|dot)"===\i(?!\.\i)/g,
replace: "true",
},
},