From: kythyria Date: Fri, 14 Feb 2014 12:44:39 +0000 (+0000) Subject: Okay, let's fix just the bits of Penny Arcade that actually need fixing X-Git-Tag: 1.12~46^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3df1a8b85791bbf6be5754e372eb1e7ae8e02326;p=tt-rss.git Okay, let's fix just the bits of Penny Arcade that actually need fixing --- diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 993ddb7c..88d53781 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -240,7 +240,19 @@ class Af_Comics extends Plugin { $basenode = $entry; } - $uninteresting = $xpath->query('(//div[@class="heading"])'); + $meta = $xpath->query('(//div[@class="meta"])')->item(0); + if ($meta->parentNode) { $meta->parentNode->removeChild($meta); } + + $header = $xpath->query('(//div[@class="postBody"]/h2)')->item(0); + if ($header->parentNode) { $header->parentNode->removeChild($header); } + + $header = $xpath->query('(//div[@class="postBody"]/div[@class="comicPost"])')->item(0); + if ($header->parentNode) { $header->parentNode->removeChild($header); } + + $avatar = $xpath->query('(//div[@class="avatar"]//img)')->item(0); + $basenode->insertBefore($avatar, $basenode->firstChild); + + $uninteresting = $xpath->query('(//div[@class="avatar"])'); foreach ($uninteresting as $i) { $i->parentNode->removeChild($i); }