1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 14:19:15 +00:00

af_elreg: remove ads

This commit is contained in:
Andrew Dolgov
2014-08-22 15:49:20 +04:00
parent 35dfbdc573
commit 2242bb38d2

View File

@@ -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) {