diff --git a/news_parser.js b/news_parser.js index 9143439..4104961 100644 --- a/news_parser.js +++ b/news_parser.js @@ -468,12 +468,12 @@ base_element, base_element, base_element, - 'm-t-10', - 'big_photo__img', + 'm-t-10|top_big_img_article__info__inside__title', + 'big_photo__img|top_big_img_article__img', 'text-article__inside', ElementCheckerTrue, SubElementCheckerToRemoveTemplate( - 'more_style_one|igi-player|share_bottom|recommendation-block|layer-' //, 'DIV|IFRAME' + 'more_style_one|igi-player|share_bottom|recommendation-block|slider-block|layer-' //, 'DIV|IFRAME' ), [] ); @@ -507,6 +507,9 @@ let top_panel = document.getElementsByClassName('top-panel')[0]; top_panel.parentNode.removeChild(top_panel); let base_child = document.getElementsByClassName('m-t-10')[0]; + if (!base_child) { + base_child = document.getElementsByClassName('top_big_img_article__info__inside__title')[0]; + } base_child.appendChild(news_text); } else {