Skip to content

Commit

Permalink
auto hide vot button on init
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Aug 7, 2024
1 parent 0a0ca4c commit 392a13d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# 1.6.x

- Теперь, после инициализации кнопка скрывается, а не ждет пока вы куда-нибудь нажмете/наведетесь на видео
- Исправлена ошибка из-за которой кнопка не исчезала на Pornhub (#700)
- Добавлена поддержка Poketube (#726)
- Исправлена работа Peertube
Expand Down
2 changes: 1 addition & 1 deletion dist/vot-min.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6674,6 +6674,7 @@ class VideoHandler {
this.votButton = ui.createVOTButton(
localizationProvider.get("translateVideo"),
);
this.votButton.container.style.opacity = 0;

// use an additional check because sometimes this.video.clientWidth = 0
if (
Expand Down
Loading

0 comments on commit 392a13d

Please sign in to comment.