Permalink
Browse files

strip Medium ads

  • Loading branch information...
Fazal Majid
Fazal Majid committed Aug 12, 2018
1 parent 0814de8 commit 3b73bf5bea6b51260ba205b6c208627c14b462d3
Showing with 5 additions and 0 deletions.
  1. +5 −0 tembozapp/transform.py
View
@@ -236,6 +236,11 @@
# Use m.xkcd.com instead of desktop xkcd to get the alt text
degunk.ReUrl(url=r'http://m.xkcd.com\1',
regex_url=r'http://xkcd.com(.*)'),
# Medium
degunk.Re('<figure.*?https://cdn-images-1.medium.com/max/700/1*PZjwR1Nbluff5IMI6Y1T6g@2x.png.*?</figure>',
re.MULTILINE + re.DOTALL),
degunk.Re('<p>.*?on Medium, where people are continuing the conversation by highlighting and responding to this story.*?/p>',
re.MULTILINE + re.DOTALL),
# AnandTech
degunk.Re('<p align=center>'
'<a href="http://dynamic[^"]*.anandtech.com/www/delivery/'

0 comments on commit 3b73bf5

Please sign in to comment.