From 2eacbcc88f8e44f205ae6e1039e2c0df2d3ca082 Mon Sep 17 00:00:00 2001 From: Movix <178902026+MysticSaba-max@users.noreply.github.com> Date: Sun, 5 Jul 2026 00:27:29 +0200 Subject: [PATCH] HOTFIX : userscript fctv33 proxy --- userscript/movix.user.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/userscript/movix.user.js b/userscript/movix.user.js index 10c5a38..8c092b9 100644 --- a/userscript/movix.user.js +++ b/userscript/movix.user.js @@ -145,13 +145,15 @@ } function wildcardToRegExp(pattern) { + // DNR urlFilter semantics: `*` is a wildcard, everything else is a + // SUBSTRING match (not anchored). A bare filter like "/cfall/s" must match + // anywhere in the URL, so it must NOT be wrapped in ^...$ — otherwise the + // FCTV Referer rule never fires and the CDN 403s ("deny by referer"). return new RegExp( - "^" + - String(pattern || "*") - .split("*") - .map((part) => escapeRegExp(part)) - .join(".*") + - "$", + String(pattern || "*") + .split("*") + .map((part) => escapeRegExp(part)) + .join(".*"), "i", ); }