From a22158f114127018254b483b5e7c8e4e0fac253b Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Tue, 13 Feb 2024 17:41:58 +0300 Subject: [PATCH] =?UTF-8?q?RG=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=B7=20=D1=81=D1=82=D0=B0=D1=82=D1=8C=D0=B8=20?= =?UTF-8?q?https://rg.ru/2024/02/13/gosduma-priostanovit-uchastie-v-assamb?= =?UTF-8?q?lee-obse.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news_parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/news_parser.js b/news_parser.js index 7dc00f8..ad3d0df 100644 --- a/news_parser.js +++ b/news_parser.js @@ -1,7 +1,7 @@ // ==UserScript== // @name News parser // @namespace http://zakonvremeni.ru -// @version 0.3.6 +// @version 0.3.7 // @description Parse news // @author AlexeiBv+mirocod@narod.ru // @match https://tass.ru/* @@ -102,7 +102,7 @@ function GetImageInContainers(a_Elements, a_TextAlign) { let i; let img_src = ''; - let re = new RegExp("(https?:\/\/.*\.(?:png|jpg))"); + let re = new RegExp("(https?:\/\/.*\.(?:png|jpg|jpeg))"); for (i in a_Elements) { let e = a_Elements[i]; if (e.nodeName == 'IMG' && re.test(e.src)) { @@ -367,7 +367,7 @@ document, base_element_text, '.*Content_title.*', - '.*(Content_image|RgPhotoreportClassic).*', + '.*(Content_image|RgPhotoreportClassic|PageArticleContent_image).*', '(PageContentCommonStyling_text|.*Content_lead).*', ElementCheckerTrue, SubElementCheckerToRemoveTemplate(