aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-08-28 21:05:11 +0200
committerTeddy Wing2021-08-29 15:42:47 +0200
commiteb12719c2805a444735352de39f4b1ac299dee5b (patch)
tree93bea9c461675de9b4f6bd8c68b5959089e21253
parent5734dd840138086fb2208a7eab1e57c124b46cca (diff)
downloadnetflix-immersive-eb12719c2805a444735352de39f4b1ac299dee5b.tar.bz2
styles: Hide new "Skip Recap" button
Hide the new "Skip Recap" button introduced in August 2021. This also hides the "Skip Intro" button.
-rw-r--r--netflix-immersive.user.js2
-rw-r--r--src/styles.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js
index 5456846..2c8f2fe 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\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\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 2b6ba24..6b158a0 100644
--- a/src/styles.ts
+++ b/src/styles.ts
@@ -45,7 +45,8 @@ export default function styles () {
a[aria-label="Skip Intro"],
a[aria-label="Skip Recap"],
a[aria-label="Next Episode"],
- [data-uia="next-episode-seamless-button"] {
+ [data-uia="next-episode-seamless-button"],
+ .watch-video--skip-content {
visibility: hidden !important;
}`,
stylesheet.cssRules.length