diff options
author | Andrew Dolgov <[email protected]> | 2014-08-22 15:49:20 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-08-22 15:49:20 +0400 |
commit | 2242bb38d2e5a23e01973d079c42cc63484aeb8e (patch) | |
tree | 1022c9e2b24910b2c1c71f564276c4f72d2541bf /plugins/af_elreg | |
parent | 35dfbdc573097ebd18b8d2e0194818ac04209cec (diff) |
af_elreg: remove ads
Diffstat (limited to 'plugins/af_elreg')
-rw-r--r-- | plugins/af_elreg/init.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/af_elreg/init.php b/plugins/af_elreg/init.php index a652d25d1..c8d5516ee 100644 --- a/plugins/af_elreg/init.php +++ b/plugins/af_elreg/init.php @@ -24,6 +24,14 @@ class Af_ElReg extends Plugin { $basenode = false; if ($doc) { + $xpath = new DOMXPath($doc); + + $trash = $xpath->query("//*[@class='wptl top' or @class='wptl btm']"); + + foreach ($trash as $t) { + $t->parentNode->removeChild($t); + } + $basenode = $doc->getElementById("body"); if ($basenode) { |