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(