X-Git-Url: https://git.deb.at/?p=deb%2Fhackedgotchi.git;a=blobdiff_plain;f=filters%2Fremove-trackers-and-ads.plugin;h=50e2a4ba3d092676370277d06225b0f17dfec286;hp=84c2a0475c5a8f103a8cda7e7c18da8a530d60ab;hb=e5f8c2721c5c789029417bc6c5e6d7321718b36d;hpb=b7651f7d143e1d964a386ac3c1aeb6ae0544882e 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)