From a94619a06378062f4195d970b1a46e3b7103e31c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 9 May 2020 03:59:47 +0200 Subject: styles: Set !important The age advisory ratings weren't properly hidden. Probably due to CSS specificity. Add `!important` to ensure that the elements we want to hide are always hidden. --- netflix-immersive.user.js | 2 +- src/styles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js index 5941fb2..ea344e8 100644 --- a/netflix-immersive.user.js +++ b/netflix-immersive.user.js @@ -116,7 +116,7 @@ function styles() { var style = document.createElement('style'); 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;\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\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); } exports.default = styles; diff --git a/src/styles.ts b/src/styles.ts index 0d5235d..db4c4b9 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -38,7 +38,7 @@ export default function styles () { a[aria-label="Skip Recap"], a[aria-label="Next Episode"], [data-uia="next-episode-seamless-button"] { - visibility: hidden; + visibility: hidden !important; }`, stylesheet.cssRules.length ); -- cgit v1.2.3