]> git.deb.at Git - deb/hackedgotchi.git/commitdiff
fix
authorjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 11 Oct 2012 07:06:50 +0000 (07:06 +0000)
committerjoerg <joerg@c2f067bf-98e0-425f-9c98-e76020cfa380>
Thu, 11 Oct 2012 07:06:50 +0000 (07:06 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/planet-debian/trunk@1619 c2f067bf-98e0-425f-9c98-e76020cfa380

filters/remove-trackers-and-ads.plugin

index 84c2a0475c5a8f103a8cda7e7c18da8a530d60ab..50e2a4ba3d092676370277d06225b0f17dfec286 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)