aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-05-10 06:48:41 +0200
committerTeddy Wing2020-05-10 06:48:41 +0200
commitc4b1f991e75153cadb008225608b1f47db7bb13f (patch)
tree946e14409d857c17031f4b93ee385bb6cf3cfd2b
parenta94619a06378062f4195d970b1a46e3b7103e31c (diff)
downloadnetflix-immersive-c4b1f991e75153cadb008225608b1f47db7bb13f.tar.bz2
styles: Hide the white border that appears around credits
A white border appears around the frame while the credits are in minimised mode. This is visible on the top and left sides of the frame. Since we automatically click on the video, the white border only appears for a second or less, but it's still visually jarring, all the more because it shifts the position of the video. Remove the white border, ensuring it never appears.
-rw-r--r--netflix-immersive.user.js1
-rw-r--r--src/styles.ts8
2 files changed, 9 insertions, 0 deletions
diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js
index ea344e8..003dc97 100644
--- a/netflix-immersive.user.js
+++ b/netflix-immersive.user.js
@@ -117,6 +117,7 @@ function styles() {
document.head.appendChild(style);
var stylesheet = style.sheet;
stylesheet.insertRule("\n\t\t/* \"Back to Browse\" button that appears when credits are minimised. */\n\t\t.OriginalsPostPlay-BackgroundTrailer .BackToBrowse,\n\n\t\t/* Age rating. */\n\t\t.player-view-childrens,\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\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 db4c4b9..73ae7c9 100644
--- a/src/styles.ts
+++ b/src/styles.ts
@@ -42,4 +42,12 @@ export default function styles () {
}`,
stylesheet.cssRules.length
);
+
+ stylesheet.insertRule(`
+ /* Remove white border around credits. */
+ .NFPlayer.can-resume:hover {
+ border: none !important;
+ }`,
+ stylesheet.cssRules.length
+ );
}