From affe5b6b64d57e56eb14132fa67c8f9e3800af6c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 25 Jun 2020 19:50:43 +0200 Subject: README: small tweaks and a filter example improvement This is a "quick&dirty" regex to block some of the typical 1px width or height tracking pixels. --- README | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index 4ae7a2d..5880a14 100644 --- a/README +++ b/README @@ -115,7 +115,7 @@ OS tested - DragonFlyBSD - Windows (cygwin gcc, mingw). - HaikuOS (using libbsd). -- FreeDOS (djgpp) +- FreeDOS (djgpp). Architectures tested @@ -140,7 +140,7 @@ sfeed_plain - Format feed data (TSV) to a plain-text list. sfeed_twtxt - Format feed data (TSV) to a twtxt feed. sfeed_update - Update feeds and merge items. sfeed_web - Find urls to RSS/Atom feed from a webpage. -sfeed_xmlenc - Detect character-set encoding from XML stream. +sfeed_xmlenc - Detect character-set encoding from a XML stream. sfeedrc.example - Example config file. Can be copied to $HOME/.sfeed/sfeedrc. style.css - Example stylesheet to use with sfeed_html(1) and sfeed_frames(1). @@ -303,6 +303,9 @@ advertisements, strip tracking parameters and more. $3 = filterlink($3); # link $8 = filterlink($8); # enclosure + # try to remove tracking pixels: tags with 1px width or height. + gsub("]*(width|height)[\s]*=[\s]*[\"'"'"' ]?1[\"'"'"' ]?[^0-9>]+[^>]*>", "", $4); + print $0; }' } -- cgit v1.2.3