aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-09-04 20:42:02 +0200
committerTeddy Wing2021-09-04 20:42:02 +0200
commit6a7bf2f830807648937d601721b93f96ae2f13b2 (patch)
tree55cc29c7f3f6f8912b59729bb09942397be278ff
parenteb12719c2805a444735352de39f4b1ac299dee5b (diff)
downloadnetflix-immersive-6a7bf2f830807648937d601721b93f96ae2f13b2.tar.bz2
styles: Hide new promo container that appears at the end of movies
Now, when a movie completely finishes playing, this promo container is shown and the video is minimised. This takes care of the promo container. Still need to fix the minimising.
-rw-r--r--netflix-immersive.user.js2
-rw-r--r--src/styles.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js
index 2c8f2fe..d302682 100644
--- a/netflix-immersive.user.js
+++ b/netflix-immersive.user.js
@@ -224,7 +224,7 @@ function styles() {
var stylesheet = style.sheet;
// 2021.08.13: May want to remove `.player-view-childrens`, which is now
// replaced by `.advisory-container`.
- stylesheet.insertRule("\n\t\t/* \"Back to Browse\" button that appears when credits are minimised. */\n\t\t.OriginalsPostPlay-BackgroundTrailer .BackToBrowse,\n\t\t.watch-video--seamless-back,\n\n\t\t/* Promo that appears during credis */\n\t\t.OriginalsPostPlay-BackgroundTrailer,\n\t\t.SeamlessControls--background-artwork-visible,\n\n\t\t/* Age rating. */\n\t\t.player-view-childrens,\n\t\t.advisory-container,\n\n\t\t/* \"Watch Credits\" button. */\n\t\t[data-uia=\"watch-credits-seamless-button\"],\n\n\t\t/* Skip buttons. */\n\t\ta[aria-label=\"Skip Intro\"],\n\t\ta[aria-label=\"Skip Recap\"],\n\t\ta[aria-label=\"Next Episode\"],\n\t\t[data-uia=\"next-episode-seamless-button\"],\n\t\t.watch-video--skip-content {\n\t\t\tvisibility: hidden !important;\n\t\t}", stylesheet.cssRules.length);
+ stylesheet.insertRule("\n\t\t/* \"Back to Browse\" button that appears when credits are minimised. */\n\t\t.OriginalsPostPlay-BackgroundTrailer .BackToBrowse,\n\t\t.watch-video--seamless-back,\n\n\t\t/* Promo that appears during credis */\n\t\t.OriginalsPostPlay-BackgroundTrailer,\n\t\t.SeamlessControls--background-artwork-visible,\n\t\t.ptrack-container.fill-container,\n\n\t\t/* Age rating. */\n\t\t.player-view-childrens,\n\t\t.advisory-container,\n\n\t\t/* \"Watch Credits\" button. */\n\t\t[data-uia=\"watch-credits-seamless-button\"],\n\n\t\t/* Skip buttons. */\n\t\ta[aria-label=\"Skip Intro\"],\n\t\ta[aria-label=\"Skip Recap\"],\n\t\ta[aria-label=\"Next Episode\"],\n\t\t[data-uia=\"next-episode-seamless-button\"],\n\t\t.watch-video--skip-content {\n\t\t\tvisibility: hidden !important;\n\t\t}", stylesheet.cssRules.length);
stylesheet.insertRule("\n\t\t/* Remove white border around credits. */\n\t\t.NFPlayer.can-resume:hover {\n\t\t\tborder: none !important;\n\t\t}", stylesheet.cssRules.length);
}
exports.default = styles;
diff --git a/src/styles.ts b/src/styles.ts
index 6b158a0..c809a43 100644
--- a/src/styles.ts
+++ b/src/styles.ts
@@ -33,6 +33,7 @@ export default function styles () {
/* Promo that appears during credis */
.OriginalsPostPlay-BackgroundTrailer,
.SeamlessControls--background-artwork-visible,
+ .ptrack-container.fill-container,
/* Age rating. */
.player-view-childrens,