From 848169dd8b1adee725976eced73667151e0f6096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Long=20Ho=C3=A0ng=20Ng=E1=BB=8Dc?= Date: Fri, 19 May 2023 03:16:36 +0700 Subject: [PATCH] Update m3u-prune.js --- Resources-Library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources-Library.md b/Resources-Library.md index 5ef6806..cb7a1ef 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -411,7 +411,7 @@ You can use `m3u-prune` to remove those ad segments. Examples: - `player.theplatform.com##+js(m3u-prune, tvessaiprod.nbcuni.com, /theplatform\.com\/.*?\.m3u8/)` - - `mephimtv.cc##+js(m3u-prune, /#EXT-X-DISCONTINUITY.{1\,100}#EXT-X-DISCONTINUITY/gm, mixed.m3u8)` + - `mephimtv.cc##+js(m3u-prune, /#EXT-X-DISCONTINUITY(.|\n){1\,100}#EXT-X-DISCONTINUITY/gm, mixed.m3u8)` If the first argument is a regex with multine flag set, the scriptlet will execute the regex against the whole text, and remove matching text from the whole text (New in [1.47.5b10](https://github.com/gorhill/uBlock/commit/b3821e6869d45b5697c44922ee7242e35e11a29d)).