Skip to content

Commit

Permalink
То что забыл перенести
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser committed May 29, 2024
1 parent 4b2b9a6 commit db307a7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/vot-cloudflare-min.user.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/vot-cloudflare.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5775,7 +5775,10 @@ class VideoHandler {
});

addExtraEventListener(this.video, "emptied", () => {
if ((0,utils/* getVideoId */.jI)(this.site.host, this.video) === this.videoData.videoId)
if (
this.video.src &&
(0,utils/* getVideoId */.jI)(this.site.host, this.video) === this.videoData.videoId
)
return;
debug/* default */.A.log("lipsync mode is emptied");
this.videoData = "";
Expand Down Expand Up @@ -6672,7 +6675,7 @@ async function src_main() {
continue;
}

if (site.host === "rumble" && container.querySelector("vot-block")) {
if (site.host === "rumble" && !video.style.display) {
continue; // fix multiply translation buttons in rumble.com
}

Expand Down
2 changes: 1 addition & 1 deletion dist/vot-min.user.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5665,7 +5665,10 @@ class VideoHandler {
});

addExtraEventListener(this.video, "emptied", () => {
if (getVideoId(this.site.host, this.video) === this.videoData.videoId)
if (
this.video.src &&
getVideoId(this.site.host, this.video) === this.videoData.videoId
)
return;
debug/* default */.A.log("lipsync mode is emptied");
this.videoData = "";
Expand Down Expand Up @@ -6561,7 +6564,7 @@ async function src_main() {
continue;
}

if (site.host === "rumble" && container.querySelector("vot-block")) {
if (site.host === "rumble" && !video.style.display) {
continue; // fix multiply translation buttons in rumble.com
}

Expand Down
7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,10 @@ class VideoHandler {
});

addExtraEventListener(this.video, "emptied", () => {
if (getVideoId(this.site.host, this.video) === this.videoData.videoId)
if (
this.video.src &&
getVideoId(this.site.host, this.video) === this.videoData.videoId
)
return;
debug.log("lipsync mode is emptied");
this.videoData = "";
Expand Down Expand Up @@ -2296,7 +2299,7 @@ async function main() {
continue;
}

if (site.host === "rumble" && container.querySelector("vot-block")) {
if (site.host === "rumble" && !video.style.display) {
continue; // fix multiply translation buttons in rumble.com
}

Expand Down

0 comments on commit db307a7

Please sign in to comment.