blob: ccaeb9550bb8b15b3c27f95064ed43813db2a944 [file] [log] [blame]
Adrià Vilanova Martíneza38faee2024-05-16 19:52:57 +02001const removeUserAbuseEventsInViewThread = {
2 urlRegex: /api\/ViewThread/i,
3 featureGated: true,
4 features: ['fixpekb269560789'],
5 isEnabled(options) {
6 return options['fixpekb269560789'];
7 },
8 async interceptor(_, response) {
9 if (response?.[1]?.[13]?.[8]?.[7]) {
10 delete response[1][13][8][7];
11 }
12 return response;
13 },
14};
15
16export default removeUserAbuseEventsInViewThread;