From 811bf70ac775b17e2e3a81bc5c2467d24f0c598f Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Tue, 7 Nov 2023 22:27:56 +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=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B5=D0=B2=20HTML=20=D0=B8=20=D0=B2=D1=8B=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=20=D0=BF=D0=B5=D1=80=D0=B2=D0=BE=D0=B9=20=D1=84=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=B8=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news_parser.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/news_parser.js b/news_parser.js index 41271ca..003c4a2 100644 --- a/news_parser.js +++ b/news_parser.js @@ -1,7 +1,7 @@ // ==UserScript== // @name News parser // @namespace http://zakonvremeni.ru -// @version 0.3.1 +// @version 0.3.2 // @description Parse news // @author AlexeiBv+mirocod@narod.ru // @match https://tass.ru/* @@ -110,6 +110,9 @@ img_src = c.src; } } + if (img_src.length > 0) { + break; + } } if (img_src.length > 0) { return '

'; @@ -207,6 +210,10 @@ parent.removeChild(a_Element); } + function RemoveCommentsHTML(a_String){ + return ( a_String || '' ).replace( /()|()|(