From bedff1061a032cbcc2fbd71d733b6297c3a02e4d Mon Sep 17 00:00:00 2001 From: leonklingele <5585491+leonklingele@users.noreply.github.com> Date: Tue, 30 Jul 2019 20:31:27 +0200 Subject: [PATCH] Prevent infinite redirect --- ...oxy-video-through-the-server-without-creating-an-account.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Always-use-\"local\"-to-proxy-video-through-the-server-without-creating-an-account.md" "b/Always-use-\"local\"-to-proxy-video-through-the-server-without-creating-an-account.md" index 2689a16..1fca5e7 100644 --- "a/Always-use-\"local\"-to-proxy-video-through-the-server-without-creating-an-account.md" +++ "b/Always-use-\"local\"-to-proxy-video-through-the-server-without-creating-an-account.md" @@ -14,7 +14,7 @@ Than add the following script in Tampermonkey. It will always add `&local=true` // ==/UserScript== -if (!(/[?&]quality=dash/).test(location.search)) { +if (!(/[?&]local=/).test(location.search) && !(/[?&]quality=dash/).test(location.search)) { location.search += (location.search ? "&" : "?") + "local=true"; } ```