Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit f324fde

Browse files
committed
feat: merge filters from PR#167
Update default filters with commits from tumpio/requestcontrol#167. Add proxy and videoproxy to downsampler/proxy filter Add more exceptions to generic image filter Trim parameters of profile pictures in Reddit Whitelist images for H&M (in-site) and LinkedIn (everywhere) Whitelist signed Google Video requests for any host Update Instagram/Facebook filter Fix tumpio#166
1 parent e38928d commit f324fde

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

rules/other-skip-image-downsamplers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"*"
1010
],
1111
"includes": [
12-
"/\\/(ap_resize\\/ap_resize|image|imageproxy|resizer\\/resizer|safe_image)(.php)?\\?/"
12+
"/\\/(ap_resize\\/ap_resize|image|imageproxy|proxy|videoproxy|resizer\\/resizer|safe_image)(.php)?\\?/"
1313
]
1414
},
1515
"types": [
@@ -20,4 +20,4 @@
2020
"title": "Skip image downsamplers",
2121
"description": "This filter retrieves the original pictures from the original domains. Disabling this filter will restore the downsampled images.",
2222
"tag": "skip-image-downsamplers"
23-
}
23+
}

rules/privacy-common-images.json

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
],
1515
"excludes": [
1616
".maps.api.here.com/maptile/2.1/maptile/",
17+
"/:\\/\\/[a-z0-9-]+\\.googlevideo\\.com\\//",
1718
"/:\\/\\/[a-z0-9\\.]+\\.amazonaws\\.com\\//",
1819
"/:\\/\\/[a-z0-9]+\\.bing\\.com\\//",
1920
"/:\\/\\/[a-z]{3,4}[0123]?\\.(google|googleapis|ggpht)\\.com\\/(maps\\/vt|cbk|kh)\\?/",
2021
"/\\/(Satellite|BlobServer|StaticBS)(\\/[^\\/\\?]+)?\\?/",
21-
"/\\/(ap_resize\\/ap_resize|image|imageproxy|resizer\\/resizer|safe_image)(.php)?\\?/",
22-
"/\\/(i|fetch|image_gallery|thumb|thumbnail)(\\.php|\\/)?\\?|\\?img_?[iI]d=/",
22+
"/\\/(ap_resize\\/ap_resize|image|imageproxy|proxy|videoproxy|resizer\\/resizer|safe_image)(.php)?\\?/",
23+
"/\\/(i|fetch|image_gallery|thumb|thumbnail|do-get)(\\.php|.xhtml|\\/)?\\?|\\?(img)?_?[iI]d=/",
2324
"/\\?.*\\&(_nc_[a-z]{1,3}|oh|oe)=./",
2425
"://c.disquscdn.com/get?url=",
2526
"://streetviewpixels-pa.googleapis.com/v1/tile",
@@ -72,6 +73,7 @@
7273
"hash",
7374
"height",
7475
"i10c",
76+
"id",
7577
"image",
7678
"imagesr",
7779
"inputformat",
@@ -130,7 +132,7 @@
130132
"*"
131133
],
132134
"includes": [
133-
"/\\/(i|fetch|image_gallery|thumb|thumbnail)(\\.php|\\/)?\\?|\\?img_?[iI]d=/"
135+
"/\\/(i|fetch|image_gallery|thumb|thumbnail|do-get)(\\.php|.xhtml|\\/)?\\?|\\?(img)?_?[iI]d=/"
134136
]
135137
},
136138
"types": [
@@ -147,6 +149,7 @@
147149
"group_id",
148150
"groupid",
149151
"i",
152+
"id",
150153
"image_path",
151154
"img_id",
152155
"imgid",
@@ -232,15 +235,19 @@
232235
"tag": "privacy-images-4",
233236
"paramsFilter": {
234237
"values": [
235-
"ccb",
236-
"_nc_cat",
237238
"_nc_ht",
238239
"_nc_oc",
239240
"_nc_ohc",
240-
"_nc_sid",
241+
"_nc_vs",
242+
"edm",
243+
"fb_obo",
241244
"oe",
242245
"oh",
243-
"tp"
246+
"stp",
247+
"tp",
248+
"url",
249+
"utld",
250+
"vs"
244251
],
245252
"invert": true
246253
},
@@ -281,7 +288,8 @@
281288
],
282289
"path": [
283290
"*/styles/bannerBackgroundImage_*",
284-
"*/styles/communityIcon_*"
291+
"*/styles/communityIcon_*",
292+
"*/styles/profileIcon_*"
285293
]
286294
},
287295
"types": [
@@ -323,6 +331,7 @@
323331
"external-content.duckduckgo.com",
324332
"gatherer.wizards.com",
325333
"img.dafont.com",
334+
"lp2.hm.com",
326335
"outlook.office.com",
327336
"render.fontstruct.com",
328337
"render01.fontshop.com",
@@ -354,6 +363,7 @@
354363
"*download/file.php?avatar=*",
355364
"/avatar.php?*",
356365
"/avatar/*",
366+
"/avatarpic/*",
357367
"/avatars/*",
358368
"/data/avatars/*",
359369
"/user_avatar/*",
@@ -401,6 +411,7 @@
401411
"badge.dimensions.ai",
402412
"badges.altmetric.com",
403413
"chart.googleapis.com",
414+
"dms.licdn.com",
404415
"external-preview.redd.it",
405416
"i.mycdn.me",
406417
"imagebank.osa.org",
@@ -650,13 +661,12 @@
650661
{
651662
"uuid": "89d698fb-1e90-4703-ad42-85e6fdf9d1bf",
652663
"pattern": {
653-
"scheme": "*",
664+
"scheme": "https",
654665
"host": [
655-
"*.drive.google.com",
656-
"*.googlevideo.com"
666+
"*"
657667
],
658668
"path": [
659-
"videoplayback?*sig=*sig=*"
669+
"videoplayback?*&sig=*&host=*.googlevideo.com"
660670
]
661671
},
662672
"types": [
@@ -665,9 +675,9 @@
665675
],
666676
"action": "whitelist",
667677
"active": true,
668-
"title": "Signed Google Video requests",
678+
"title": "Signed Google Video requests from third-party sites",
669679
"description": "Removing any parameter from these requests will cause the video not to load. Enabled by default. (This sort of requests is used by Google Drive, and 3rd-party sites like Invidious instances.)",
670-
"tag": "privacy-images"
680+
"tag": "whitelist-googlevideo"
671681
},
672682
{
673683
"uuid": "12486ca3-b63d-49fa-ae64-25b83733d64c",

0 commit comments

Comments
 (0)