-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cinema Mode #2149
Add Cinema Mode #2149
Conversation
Thank you!! @SanderDebets |
just made sure the features only runs when enabled: 579628d
misc: |
@ImprovedTube I'm not having the issue with it restarting the player in HD, is this in combination with some other settings in the extension? |
hi! @SanderDebets & sorry for the delay!
Fastest: getElementById 2. any CSS Selector ( Document: querySelector ) 3. XPath maybe this feature can be implemented with little CSS? html[it-player-auto-cinema-mode=true] *:not(:has(#movie_player)):not(#movie_player):not(#movie_player *) { opacity: 0.15; } and the page could fade in while scrolling down and fade out while scrolling back up window.addEventListener('scroll', function() {
if (window.scrollY > 1 + window.innerHeight * 0.001; ) { {
const elements = document.querySelectorAll('html[it-player-auto-cinema-mode=true] *:not(:has(#movie_player)):not(#movie_player):not(#movie_player *)');
const opacity = window.scrollY / window.innerHeight * 5;
elements.forEach(element => {
element.style.opacity = opacity;
});
} |
Added cinema mode functionality. This solves issue #1915