af_elreg: remove ads
This commit is contained in:
parent
35dfbdc573
commit
2242bb38d2
|
@ -24,6 +24,14 @@ class Af_ElReg extends Plugin {
|
||||||
$basenode = false;
|
$basenode = false;
|
||||||
|
|
||||||
if ($doc) {
|
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");
|
$basenode = $doc->getElementById("body");
|
||||||
|
|
||||||
if ($basenode) {
|
if ($basenode) {
|
||||||
|
|
Loading…
Reference in New Issue