mirror of
https://github.com/iv-org/documentation.git
synced 2024-12-23 06:19:22 -05:00
Prevent infinite redirect
This commit is contained in:
parent
036cfedb74
commit
bedff1061a
@ -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 New Issue
Block a user