From 8841dddb2c9ead9a0bcf3494677b5d43322e9de4 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Wed, 24 Jan 2024 20:54:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=82=D0=BE=D1=80=D0=BE=D0=B9=20=D1=82?= =?UTF-8?q?=D0=B8=D0=BF=20=D1=81=D1=82=D0=B0=D1=82=D0=B5=D0=B9=20=D0=B2=20?= =?UTF-8?q?=D0=B8=D0=B7=D0=B2=D0=B5=D1=81=D1=82=D0=B8=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news_parser.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 {