diff options
author | Andrew Dolgov <[email protected]> | 2014-02-17 12:27:07 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-02-17 12:27:07 +0400 |
commit | bf5e77a16531ba2177486ec1cdd43f87fed735f6 (patch) | |
tree | f8840fe66f56ac7749121342fd383d42eadd2594 /plugins/af_comics/init.php | |
parent | 52265e19c0d33aa6bb37a4e6f56c1c284595cfda (diff) | |
parent | 0c4c0ab463dd8e0c8ef3ea745496097cba340e6c (diff) |
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
Diffstat (limited to 'plugins/af_comics/init.php')
-rw-r--r-- | plugins/af_comics/init.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php index 4672f3356..0d1a49a57 100644 --- a/plugins/af_comics/init.php +++ b/plugins/af_comics/init.php @@ -264,7 +264,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); } |