mirror of
https://github.com/iv-org/documentation.git
synced 2024-11-28 00:20:44 +00: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==
|
||||
|
||||
|
||||
if (!(/[?&]quality=dash/).test(location.search)) {
|
||||
if (!(/[?&]local=/).test(location.search) && !(/[?&]quality=dash/).test(location.search)) {
|
||||
location.search += (location.search ? "&" : "?") + "local=true";
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user