Skip to content

Commit

Permalink
Merge pull request #2247 from raszpl/patch-1
Browse files Browse the repository at this point in the history
Update themes.js ytd-masthead is handled by CSS now
  • Loading branch information
ImprovedTube authored May 7, 2024
2 parents c91976e + a022050 commit ef0e48c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions js&css/web-accessible/www.youtube.com/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ ImprovedTube.myColors = function () {
document.getElementById("cinematics").style.visibility = 'hidden';
document.getElementById("cinematics").style.display = 'none !important';
}
if (document.querySelector('ytd-masthead')) {
document.querySelector('ytd-masthead').style.backgroundColor = ''+primary_color+'';
}
} else { //theoretically this will never be called
} else {
this.elements.my_colors?.remove();
}
}
Expand All @@ -96,9 +93,6 @@ ImprovedTube.setTheme = function () {
document.getElementById('cinematics').style.display = 'none !important';
}
this.elements.my_colors?.remove();
if (document.querySelector('ytd-masthead')) {
document.querySelector('ytd-masthead').style.backgroundColor ='#000';
}
break

case 'dawn':
Expand Down

0 comments on commit ef0e48c

Please sign in to comment.