forked from isascollo/instadmapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.ts
More file actions
526 lines (522 loc) · 21.9 KB
/
Copy pathConfig.ts
File metadata and controls
526 lines (522 loc) · 21.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
export interface RedirectRule {
when: "blocked" | "unblocked";
fromUrl: string;
toUrl: string;
ifPreviousUrl?: string;
ifNotPreviousUrl?: string;
withSelector?: string;
exactMatch?: boolean;
}
export interface AppConfigEntry {
webAppId: string;
baseUrlShort: string;
baseUrl: string;
sourceUrl: string;
signInUrl?: string;
openableExternalUrls: string[];
webAppSessionCookies: string[];
canUnblockFeatures: {[key: string]: boolean};
defaultRedirects: {[key: string]: RedirectRule[]};
defaultFilters: {[key: string]: string[]};
configUrl: string;
}
export type AppConfigMap = {[key: string]: AppConfigEntry};
const CONFIG: AppConfigMap = {
instagram: {
webAppId: "instagram",
baseUrlShort: "instagram.com",
baseUrl: "https://www.instagram.com",
sourceUrl: "https://www.instagram.com/direct/inbox/",
openableExternalUrls: [
"https://www.facebook.com/instagram/",
"https://www.fbsbx.com/",
],
webAppSessionCookies: ["ds_user_id", "sessionid"],
canUnblockFeatures: {
"notes": true,
"replies": true,
"favorites": true,
"feed": false,
"reels": false,
"explore": false,
"stories": false,
"distractions": false,
},
defaultRedirects: {
"distractions": [
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/notifications/",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/notifications/",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/?variant=following",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/?variant=following",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
],
"feed": [],
"explore": [
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/explore/",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/explore/",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
],
"reels": [
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/reels/",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/reels/",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
},
],
"favorites": [
{
"when": "blocked",
"fromUrl": "https://www.instagram.com",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/",
"toUrl": "https://www.instagram.com/accounts/settings/",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.instagram.com/?variant=favorites",
"toUrl": "https://www.instagram.com/direct/inbox/",
},
{
"when": "unblocked",
"fromUrl": "https://www.instagram.com",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "unblocked",
"fromUrl": "https://www.instagram.com/",
"toUrl": "https://www.instagram.com/direct/inbox/",
"ifNotPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "unblocked",
"fromUrl": "https://www.instagram.com",
"toUrl": "https://www.instagram.com/?variant=favorites",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
{
"when": "unblocked",
"fromUrl": "https://www.instagram.com/",
"toUrl": "https://www.instagram.com/?variant=favorites",
"ifPreviousUrl": "https://www.instagram.com/direct/inbox/",
"exactMatch": true,
},
],
"replies": [],
"stories": [],
"notes": [],
},
defaultFilters: {
"distractions": [
".x1hc1fzr.x51ohtg.xml7xvy.xqu0tyb.xi2lk0m.x19991ni.x1g2r6go.x10l6tqk.x1ertn4p.x1pahc9y.xeusxvb.x1c9tyrk.x14vhib7", // Nav Profile icon red dot
"._abpk._acc8", // "Use the app" popup
".xp4054r.x1q0g3np.x78zum5.x6s0dn4 > .x1nhvcw1.x1oa3qoh.x1qjc9v5.xqjyukv.xdt5ytf.x2lah0s.x1c4vz4f.xryxfnj.x1plvlek.x1uhb9sk.xo71vjh.x5pf9jr.x13lgxp2.x168nmei.x78zum5.xjbqb8w.x9f619", // Open App button
"._ab1b._ab18 > .x1qrby5j.x7ja8zs.x1t2pt76.x1lytzrv.xedcshv.xarpa2k.x3igimt.x12ejxvf.xaigb6o.x1beo9mf.xv2umb2.x1jfb8zj.x1h9r5lt.x1h91t0o.x4k7w5x", // Threads icon
".x1nhvcw1.x1oa3qoh.x1qjc9v5.xqjyukv.xdt5ytf.x2lah0s.x1c4vz4f.xryxfnj.x1plvlek.x1uhb9sk.x1gslohp.xbiv7yw.x16uus16.x1ga7v0g.x15mokao.x78zum5.x1r0jzty.xjbqb8w.x5lhr3w.x9f619.x1c1uobl.x18d9i69.xyri2b.xexx8yu.x1lziwak.xat24cr.x14z9mp.html-div", // Threads username
"section.x1jfgfrl:nth-of-type(3)", // Account insights
".x1n327nk.xixxii4.x1o0tod.xtijo5x", // New posts popup
".x67bb7w.x13vifvy.x10l6tqk.xm80bdy.xu96u03", // Notifications popup
".x1r695p9.xd9ej83.x78zum5", // Notifications icon
],
"feed": [
".xh8yej3.x1n2onr6.xaw8158.x1q0g3np.x78zum5.x9f619.x178xt8z.x13fuv20.x1yvgwvq.xaeubzz.x1o5hw5a > .xh8yej3.xaw8158.x78zum5 > div:nth-of-type(1)", // Nav Home icon
"div.xg7l0n3.xl56j7k.xs83m0k.x1iyjqo2.x1r8uery.x78zum5.x6s0dn4.x1c1uobl.x18d9i69.xyri2b.xexx8yu.x1lziwak.xat24cr.x14z9mp.xdj266r.html-div:has(> a[href$='/feed/'])", // Profile feed tab
".x1xmf6yo.xh8yej3.x1n2onr6.x10wlt62.x6ikm8r.x5yr21d.xdt5ytf.x78zum5.x1wp8tw6.x1ihp6rs.xr2y4jy.x1whfx0g.x1i5p2am.xgf5ljw", // Following & Favourites dropdown
".x127lhb5.xxkxylk", // Following & Favourites dropdown indicator
],
"explore": [
".xh8yej3.x1n2onr6.xaw8158.x1q0g3np.x78zum5.x9f619.x178xt8z.x13fuv20.x1yvgwvq.xaeubzz.x1o5hw5a > .xh8yej3.xaw8158.x78zum5 > div:nth-of-type(2)", // Nav Explore icon
".x1ugxg0y.x7flfwp.x1e49onv.x16mfq2j.x103t36t.xmjrnx3.xhae0no.x19b80pe.xh8yej3.x1ykew4q.x1gryazu.x4n8cb0.xkrivgy.xdj266r.x1iyjqo2.xdt5ytf.x78zum5", // Explore
],
"reels": [
".xh8yej3.x1n2onr6.xaw8158.x1q0g3np.x78zum5.x9f619.x178xt8z.x13fuv20.x1yvgwvq.xaeubzz.x1o5hw5a > .xh8yej3.xaw8158.x78zum5 > div:nth-of-type(3)", // Nav Reels icon
".xq70431.xfk6m8.xh8yej3.x5ve5x3.x13vifvy.x1rohswg.xixxii4.x1rife3k.x17qophe.xilefcg", // Reels
"div[data-reel-type='suggested']", // Suggested reels
],
"stories": [
".xvbhtw8.x1njnj16", // Stories panel
],
"replies": [
".x11hdunq.x1nhvcw1.x1oa3qoh.x1qjc9v5.xqjyukv.xdt5ytf.x2lah0s.x1c4vz4f.xryxfnj.x1plvlek.x1uhb9sk.xbiv7yw.x16uus16.x1ga7v0g.x15mokao.x78zum5.xjbqb8w.x9f619.x1c1uobl.x18d9i69.xyri2b.xexx8yu.xat24cr.x14z9mp.xdj266r.html-div", // Comment replies
".x1diwwjn.x14z9mp.x1d5wrs8.x87ps6o.x1a2a7pz.xggy1nq.x1hl2dhg.x16tdsg8.x1c1uobl.x18d9i69.xyri2b.xexx8yu.xat24cr.xdj266r.x3ct3a4.xt0psk2.x1ypdohk.x9f619.x14e42zd.x1qhh985.x10w94by.x972fbf.xstzfhl.x1sy0etr.x18oe1m7.x1ejq31n.xjbqb8w.x1i10hfl", // Reply to comment
".xh8yej3.xseoqlg.xl56j7k.x78zum5.x6s0dn4", // Comment on post
],
"notes": [
".xhjk10j.x2lah0s.x1c4vz4f", // Notes panel
".x1vjfegm.x1a2a7pz.x1lku1pv.x87ps6o.x1q0g3np.x3nfvp2.xo1y3bh.x140muxe.xu25z0z.x1fmog5m.x1t137rt.xggy1nq.x1hl2dhg.x16tdsg8.x1n2onr6.x1c1uobl.x18d9i69.xyri2b.xexx8yu.xeuugli.x2lwn1j.x1lziwak.xat24cr.x14z9mp.xdj266r.x3ct3a4.x2lah0s.xdl72j9.x1ypdohk.x9f619.x14e42zd.x1qhh985.x10w94by.x972fbf.x1t7ytsu.x1q0q8m5.x18b5jzi.x13fuv20.x1phubyo.xqeqjp1.xc5r6h4.xjqpnuy.xjbqb8w.x1qjc9v5.x1i10hfl", // Profile Note bubble
],
"favorites": [
".x1nhvcw1.x1oa3qoh.x6s0dn4.xqjyukv.xdt5ytf.x2lah0s.x1c4vz4f.xryxfnj.x1plvlek.x1uhb9sk.xbiv7yw.x16uus16.x1ga7v0g.x15mokao.x78zum5.xjbqb8w.x9f619.x1c1uobl.x18d9i69.xyri2b.xexx8yu.x1lziwak.xat24cr.x14z9mp.xdj266r.html-div", // Feed
],
},
configUrl: "https://raw.githubusercontent.com/liamperritt/social-minimalist-config/refs/heads/main/config/instagram/v2/",
},
facebook: {
webAppId: "facebook",
baseUrlShort: "facebook.com",
baseUrl: "https://m.facebook.com/",
sourceUrl: "https://m.facebook.com/bookmarks/",
openableExternalUrls: ["https://www.fbsbx.com/"],
webAppSessionCookies: ["c_user", "xs"],
canUnblockFeatures: {
"pages": true,
"feed": false,
"reels": false,
"videos": false,
"stories": false,
"distractions": false,
},
defaultRedirects: {
"distractions": [
{
"when": "blocked",
"fromUrl": "https://www.facebook.com/",
"toUrl": "https://m.facebook.com/bookmarks/",
},
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/notifications/",
"toUrl": "https://m.facebook.com/bookmarks/",
},
],
"feed": [
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/",
"toUrl": "https://m.facebook.com/bookmarks/",
"withSelector": "div[data-screen-id='124']",
"exactMatch": true,
},
],
"videos": [
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/watch/",
"toUrl": "https://m.facebook.com/bookmarks/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/watch/live/",
"toUrl": "https://m.facebook.com/bookmarks/",
"exactMatch": true,
},
],
"reels": [
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/reel/",
"toUrl": "https://m.facebook.com/bookmarks/",
},
],
"stories": [
{
"when": "blocked",
"fromUrl": "https://m.facebook.com/stories/",
"toUrl": "https://m.facebook.com/bookmarks/",
},
],
"pages": [],
},
defaultFilters: {
"distractions": [
".bottom.fixed-container.m > div:has(> div > .bg-s3.m[role='button'])", // Open App button
"div[role='button'][data-mcomponent='ServerTextArea']:has(> div.am.ac.fl > div.native-text)", // See more videos button
"div[data-type='vscroller'] > div[role='tablist'] > div[role='tab'][aria-label^='feed']", // Marketplace Nav Bar
"div[data-type='vscroller'] > div:has(> div > div[data-tracking-duration-id] > div > div > div[data-action-id][data-focusable='true'] > div[data-mcomponent='ImageArea'][data-type='text'])", // Marketplace ads
".top.fixed-container.m > div > div > div > div[role='button'][aria-label='Back'][data-actual-height='56']", // Bookmarks back button
"div:has(> div > div > div[aria-label='Also From Meta, Close'])", // Also from Meta
"div[data-type='vscroller'] > div > div[data-type='multi'] > div > div[role='button']", // Bookmark buttons
"div[style*='clip-path:inset(0 0 0 0 round 30px)'] > div:has(> h4[data-mcomponent='ServerTextArea'] > div.native-text)", // Profile notification badge
"div[data-type='vscroller'] > div[data-tracking-duration-id]:has(> div > div > div[role='button'][aria-label='Video player'][data-testid='sponsored-story-photo'])", // Sponsored video cards
"div[data-type='vscroller'] > div:has(> div > div > div[data-actual-height='37'] > h3[data-mcomponent='TextArea'])", // See more videos card 1
"div[data-type='vscroller'] > div:has(> div[data-actual-height='37'] > h3[data-mcomponent='TextArea'])", // See more videos card 2
"div[role='listitem'] > div:has(> div[aria-label='Messages'])",
"div[role='listitem'] > div:has(> div[aria-label='Memories'])",
"div[role='listitem'] > div:has(> div[aria-label='Games'])",
"div[role='listitem'] > div:has(> div[aria-label='Ads Manager'])",
"div[role='listitem'] > div:has(> div[aria-label='Birthdays'])",
"div[role='listitem']:has(> div > div[aria-label='Friends'])",
],
"feed": [
"div[role='listitem'] > div:has(> div[aria-label='Feeds'])",
"div:has(> div > div[role='button'][aria-label='Go to profile'])", // Write post section
"div[data-screen-id='124'] > div[data-type='vscroller'] > div[data-tracking-duration-id]", // Post card
"div[data-screen-id='124'] > div[data-type='vscroller'] > div[data-on-first-visibility-action-id]", // Post loading card
],
"videos": [
"div[role='listitem'] > div:has(> div[aria-label='Video'])",
"div[role='listitem'] > div:has(> div[aria-label='Live videos'])",
"div[data-type='vscroller'] > div:has(> div.no-hscroller.hscroller.m > div > div[role='button'][aria-label^='For you'])", // Video tabs hscroller
],
"reels": [
"div[role='listitem'] > div:has(> div[aria-label='Reels'])",
],
"stories": [
"div[data-screen-id='124'] > div[data-type='vscroller'] > div:has(> div > div > div > div[data-is-h-scrollable='true'])", // Stories section
],
"pages": [
"div[role='listitem'] > div:has(> div[aria-label='Pages'])",
],
},
configUrl: "https://raw.githubusercontent.com/liamperritt/social-minimalist-config/refs/heads/main/config/facebook/v2/",
},
youtube: {
webAppId: "youtube",
baseUrlShort: "youtube.com",
baseUrl: "https://m.youtube.com/",
sourceUrl: "https://m.youtube.com/feed/subscriptions/",
signInUrl: "https://accounts.google.com/ServiceLogin?service=youtube&continue=https://m.youtube.com/",
openableExternalUrls: ["https://accounts.google.com/"],
webAppSessionCookies: ["SID", "HSID"],
canUnblockFeatures: {
"replies": true,
"feed": false,
"shorts": false,
"distractions": false,
},
defaultRedirects: {
"distractions": [
{
"when": "blocked",
"fromUrl": "https://www.youtube.com/",
"toUrl": "https://m.youtube.com/feed/subscriptions/",
},
],
"feed": [
{
"when": "blocked",
"fromUrl": "https://m.youtube.com/",
"toUrl": "https://m.youtube.com/feed/subscriptions/",
"exactMatch": true,
},
],
"shorts": [
{
"when": "blocked",
"fromUrl": "https://m.youtube.com/shorts/",
"toUrl": "https://m.youtube.com/feed/subscriptions/",
},
{
"when": "blocked",
"fromUrl": "https://www.youtube.com/shorts/",
"toUrl": "https://m.youtube.com/feed/subscriptions/",
},
],
"replies": [],
},
defaultFilters: {
"distractions": [
"ytm-single-column-watch-next-results-renderer > ytm-item-section-renderer.single-column-watch-next-modern-panels.scwnr-content", // Watch next results
"ytm-single-column-watch-next-results-renderer > div.related-items-container", // Watch next results (signed out)
"ytm-single-column-watch-next-results-renderer > div > ytm-item-section-renderer:has(> lazy-list > ad-slot-renderer)", // Ads below video
"ytm-single-column-watch-next-results-renderer > ytm-item-section-renderer:has(> lazy-list > ad-slot-renderer)", // Ads below video (signed out)
"ytm-companion-slot:has(> ytm-companion-ad-renderer)", // Companion ad slot
"a[aria-label='Open App']", // Open App button
"player-endscreen", // Player end screen
"yt-comment-teaser-carousel-item-view-model", // Comment teaser carousel item
"div.fullscreen-watch-next-entrypoint-wrapper", // Fullscreen watch next entrypoint
"div[aria-label='YouTube Video Player'][class~='ad-showing'] > div > video", // Video player ad
],
"feed": [
"ytm-pivot-bar-item-renderer:has(> div.pivot-w2w.pivot-bar-item-tab)", // Home nav bar tab
"ytm-browse:has(> ytm-single-column-browse-results-renderer > div > div[tab-identifier='FEwhat_to_watch'])", // Home feed
"div.rich-grid-sticky-header.rich-grid-renderer-header:has(> ytm-feed-filter-chip-bar-renderer)", // Feed filter bar
],
"shorts": [
"ytm-pivot-bar-item-renderer:has(> div.pivot-shorts.pivot-bar-item-tab)", // Shorts nav bar tab
"ytm-reel-shelf-renderer.item", // Shorts shelf
"ytm-rich-section-renderer:has(> div.rich-section-content > grid-shelf-view-model.ytGridShelfViewModelHost)", // Shorts grid shelf
"ytm-video-with-context-renderer:has(> ytm-media-item.big-shorts-singleton)", // Shorts video
"yt-tab-shape[tab-title='Shorts']", // Profile Shorts tab
"ytm-shorts-lockup-view-model", // Profile Shorts
],
"replies": [
"ytm-comment-replies-renderer", // Comment replies
],
},
configUrl: "https://raw.githubusercontent.com/liamperritt/social-minimalist-config/refs/heads/main/config/youtube/v2/",
},
reddit: {
webAppId: "reddit",
baseUrlShort: "reddit.com",
baseUrl: "https://www.reddit.com",
sourceUrl: "https://www.reddit.com/chat/",
signInUrl: "https://www.reddit.com/login/",
openableExternalUrls: [
"https://accounts.google.com/",
"https://appleid.apple.com/",
"https://www.google.com/recaptcha/",
],
webAppSessionCookies: ["reddit_session"],
canUnblockFeatures: {
"inbox": true,
"feed": false,
"news": false,
"games": false,
"explore": false,
"popular": false,
"distractions": false,
},
defaultRedirects: {
"distractions": [],
"feed": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com",
"toUrl": "https://www.reddit.com/settings/",
"ifPreviousUrl": "https://www.reddit.com/chat/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/",
"toUrl": "https://www.reddit.com/settings/",
"ifPreviousUrl": "https://www.reddit.com/chat/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.reddit.com",
"toUrl": "https://www.reddit.com/chat/",
"ifNotPreviousUrl": "https://www.reddit.com/chat/",
"exactMatch": true,
},
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/",
"toUrl": "https://www.reddit.com/chat/",
"ifNotPreviousUrl": "https://www.reddit.com/chat/",
"exactMatch": true,
},
],
"news": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/news/",
"toUrl": "https://www.reddit.com/chat/",
},
],
"games": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/r/GamesOnReddit/",
"toUrl": "https://www.reddit.com/chat/",
},
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/r/GamesOnReddit/",
"toUrl": "https://www.reddit.com/chat/",
},
],
"explore": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/explore/",
"toUrl": "https://www.reddit.com/chat/",
},
],
"popular": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/r/popular/",
"toUrl": "https://www.reddit.com/chat/",
},
],
"inbox": [
{
"when": "blocked",
"fromUrl": "https://www.reddit.com/notifications",
"toUrl": "https://www.reddit.com/chat/",
},
],
},
defaultFilters: {
"distractions": [
"div[role='dialog'][aria-label='Log In'] > div > slot[name='closeButton']",
],
"feed": [
"faceplate-tracker[source='nav'][noun='home']",
"shreddit-feed[reload-url$='/feeds/home-feed']",
"shreddit-async-loader[bundlename='shreddit_sort_dropdown']",
],
"news": [
"li[role='presentation'][id='news-posts']",
],
"games": [
"faceplate-tracker[source='nav'][noun='games_drawer']",
"faceplate-loader[name='LeftNavGamesSection_DcK0YZ']",
],
"explore": [
"faceplate-tracker[source='nav'][noun='explore']",
],
"popular": [
"faceplate-tracker[source='nav'][noun='popular']",
],
"inbox": [
"faceplate-tracker[source='nav'][noun='inbox']",
],
},
configUrl: "https://raw.githubusercontent.com/liamperritt/social-minimalist-config/refs/heads/main/config/reddit/v2/",
},
};
export default CONFIG;