From 988368bb66d37f0760a73fc2c2f9b68344558504 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Tue, 18 Aug 2020 13:21:01 -0500 Subject: [PATCH] Better xenforo blockquote chrome removal --- sites/xenforo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/xenforo.py b/sites/xenforo.py index 35a77ba..dcae193 100644 --- a/sites/xenforo.py +++ b/sites/xenforo.py @@ -260,7 +260,7 @@ class XenForo(Site): if "text-decoration: strikethrough" in tag['style']: tag.wrap(self._new_tag('strike')) tag.unwrap() - for tag in post.find_all(class_='quoteExpand'): + for tag in post.select('.quoteExpand, .bbCodeBlock-expandLink, .bbCodeBlock-shrinkLink'): tag.decompose() self._clean_spoilers(post, chapterid) return post.prettify()