Skip to content

Commit 65bba90

Browse files
committed
Remove transition when replacing player
1 parent 9c21686 commit 65bba90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chrome/content.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,11 @@
797797
player.style.setProperty('height', '0px', 'important');
798798
player.style.setProperty('overflow', 'hidden', 'important');
799799
player.style.setProperty('margin', '0px', 'important');
800+
player.style.setProperty('transition', 'none', 'important');
800801
}
801802

802803
function showSoft(player) {
804+
player.style.setProperty('transition', 'none', 'important');
803805
if (player.style.width === '0px') {
804806
player.style.width = player.dataset.oldWidth || '';
805807
}

0 commit comments

Comments
 (0)