From 0203372705d5315504ed6401f51ce11f7d5f9be6 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Sat, 28 Oct 2023 00:42:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=BE=D0=B2=20=D0=B8?= =?UTF-8?q?=D0=B7=20=D0=A0=D0=98=D0=90=20#4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news_parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/news_parser.js b/news_parser.js index 9fb4d55..6472152 100644 --- a/news_parser.js +++ b/news_parser.js @@ -183,6 +183,7 @@ let elements = clear_element.querySelectorAll('*'); elements.forEach(function (element) { RemoveAllAttributes(element); + element.removeAttribute('class'); if (element && element.parentNode && element.nodeName == 'DIV' && CheckRegExp(GetElementClassName, '.*(read-more|article__cover).*', element)) { element.parentNode.removeChild(element); }