mirror of
https://codeberg.org/vlw/disneyplus-pip.git
synced 2025-09-13 18:33:40 +02:00
Update userscript.js
This commit is contained in:
parent
f99e92037c
commit
559719f9b6
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@
|
|||
// Poll document tree until video element is loaded
|
||||
const init = (mutations, observer) => {
|
||||
clearTimeout(timeout);
|
||||
if(!window.location.href.includes("/video/")) {
|
||||
const pattern = /^\/?([A-Za-z-]*)?\/video\//i;
|
||||
if(!pattern.test(window.location.pathname)) {
|
||||
return false;
|
||||
}
|
||||
if(document.getElementsByTagName("video")[0]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue