Skip to content

Commit

Permalink
Merge pull request #658 from SashaXser/main
Browse files Browse the repository at this point in the history
Fix #657
  • Loading branch information
ilyhalight authored Jun 9, 2024
2 parents 096a212 + 6b42950 commit 88cceeb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 32 deletions.
2 changes: 1 addition & 1 deletion dist/vot-cloudflare-min.user.js

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions dist/vot-cloudflare.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ const getVideoId = (service, video) => {
}

return (
url.pathname.match(/(?:watch|embed|shorts)\/([^/]+)/)?.[1] ||
url.pathname.match(/(?:watch|embed|shorts|live)\/([^/]+)/)?.[1] ||
url.searchParams.get("v")
);
}
Expand Down Expand Up @@ -5795,7 +5795,6 @@ class VideoHandler {
}

releaseExtraEvents() {
clearInterval(this.resizeInterval);
this.resizeObserver?.disconnect();
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down Expand Up @@ -5856,14 +5855,6 @@ class VideoHandler {
"style",
`--vot-container-height: ${this.video.getBoundingClientRect().height}px`,
);
this.resizeInterval = setInterval(() => {
this.votMenu.container.setAttribute(
"style",
`--vot-container-height: ${
this.video.getBoundingClientRect().height
}px`,
);
}, 500);
// Sync menu volume slider with youtube original video (youtube only)
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down
2 changes: 1 addition & 1 deletion dist/vot-min.user.js

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ const getVideoId = (service, video) => {
}

return (
url.pathname.match(/(?:watch|embed|shorts)\/([^/]+)/)?.[1] ||
url.pathname.match(/(?:watch|embed|shorts|live)\/([^/]+)/)?.[1] ||
url.searchParams.get("v")
);
}
Expand Down Expand Up @@ -5685,7 +5685,6 @@ class VideoHandler {
}

releaseExtraEvents() {
clearInterval(this.resizeInterval);
this.resizeObserver?.disconnect();
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down Expand Up @@ -5746,14 +5745,6 @@ class VideoHandler {
"style",
`--vot-container-height: ${this.video.getBoundingClientRect().height}px`,
);
this.resizeInterval = setInterval(() => {
this.votMenu.container.setAttribute(
"style",
`--vot-container-height: ${
this.video.getBoundingClientRect().height
}px`,
);
}, 500);
// Sync menu volume slider with youtube original video (youtube only)
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down
9 changes: 0 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,6 @@ class VideoHandler {
}

releaseExtraEvents() {
clearInterval(this.resizeInterval);
this.resizeObserver?.disconnect();
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down Expand Up @@ -1263,14 +1262,6 @@ class VideoHandler {
"style",
`--vot-container-height: ${this.video.getBoundingClientRect().height}px`,
);
this.resizeInterval = setInterval(() => {
this.votMenu.container.setAttribute(
"style",
`--vot-container-height: ${
this.video.getBoundingClientRect().height
}px`,
);
}, 500);
// Sync menu volume slider with youtube original video (youtube only)
if (
["youtube", "googledrive"].includes(this.site.host) &&
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getVideoId = (service, video) => {
}

return (
url.pathname.match(/(?:watch|embed|shorts)\/([^/]+)/)?.[1] ||
url.pathname.match(/(?:watch|embed|shorts|live)\/([^/]+)/)?.[1] ||
url.searchParams.get("v")
);
}
Expand Down

0 comments on commit 88cceeb

Please sign in to comment.