fix
[deb/hackedgotchi.git] / filters / remove-trackers-and-ads.plugin
index 84c2a04..50e2a4b 100644 (file)
@@ -17,8 +17,8 @@ regexes = [
        # Paypal tracking images
        r"""<img [^>]*?src=['"]https?://www\.paypalobjects\.com/[^/]*/i/scr/pixel.gif[^"']*['"][^>]*>""",
        # Other tracking images
-       r'<img [^>]*?width=["']1["'][^>]*?height=["']1["'][^>]*>',
-       r'<img [^>]*?height=["']1["'][^>]*?width=["']1["'][^>]*>',
+       r"""<img [^>]*?width=["']1["'][^>]*?height=["']1["'][^>]*>""",
+       r"""<img [^>]*?height=["']1["'][^>]*?width=["']1["'][^>]*>""",
 ]
 
 for regex in regexes: data = re.sub(regex, '', data)