X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=filters%2Fremove-trackers-and-ads.plugin;h=50e2a4ba3d092676370277d06225b0f17dfec286;hb=71733f02fedf01427fb6d1543001aba142c3d6f2;hp=84c2a0475c5a8f103a8cda7e7c18da8a530d60ab;hpb=b7651f7d143e1d964a386ac3c1aeb6ae0544882e;p=deb%2Fhackedgotchi.git
diff --git a/filters/remove-trackers-and-ads.plugin b/filters/remove-trackers-and-ads.plugin
index 84c2a04..50e2a4b 100644
--- a/filters/remove-trackers-and-ads.plugin
+++ b/filters/remove-trackers-and-ads.plugin
@@ -17,8 +17,8 @@ regexes = [
# Paypal tracking images
r"""]*?src=['"]https?://www\.paypalobjects\.com/[^/]*/i/scr/pixel.gif[^"']*['"][^>]*>""",
# Other tracking images
- r']*?width=["']1["'][^>]*?height=["']1["'][^>]*>',
- r']*?height=["']1["'][^>]*?width=["']1["'][^>]*>',
+ r"""]*?width=["']1["'][^>]*?height=["']1["'][^>]*>""",
+ r"""]*?height=["']1["'][^>]*?width=["']1["'][^>]*>""",
]
for regex in regexes: data = re.sub(regex, '', data)