mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Prevent infinite redirect
This commit is contained in:
parent
036cfedb74
commit
bedff1061a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ Than add the following script in Tampermonkey. It will always add `&local=true`
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
|
||||||
if (!(/[?&]quality=dash/).test(location.search)) {
|
if (!(/[?&]local=/).test(location.search) && !(/[?&]quality=dash/).test(location.search)) {
|
||||||
location.search += (location.search ? "&" : "?") + "local=true";
|
location.search += (location.search ? "&" : "?") + "local=true";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue