|
|
@ -183,6 +183,7 @@ |
|
|
|
let elements = clear_element.querySelectorAll('*'); |
|
|
|
let elements = clear_element.querySelectorAll('*'); |
|
|
|
elements.forEach(function (element) { |
|
|
|
elements.forEach(function (element) { |
|
|
|
RemoveAllAttributes(element); |
|
|
|
RemoveAllAttributes(element); |
|
|
|
|
|
|
|
element.removeAttribute('class'); |
|
|
|
if (element && element.parentNode && element.nodeName == 'DIV' && CheckRegExp(GetElementClassName, '.*(read-more|article__cover).*', element)) { |
|
|
|
if (element && element.parentNode && element.nodeName == 'DIV' && CheckRegExp(GetElementClassName, '.*(read-more|article__cover).*', element)) { |
|
|
|
element.parentNode.removeChild(element); |
|
|
|
element.parentNode.removeChild(element); |
|
|
|
} |
|
|
|
} |
|
|
|