diff options
author | Teddy Wing | 2020-05-09 03:59:47 +0200 |
---|---|---|
committer | Teddy Wing | 2020-05-09 03:59:47 +0200 |
commit | a94619a06378062f4195d970b1a46e3b7103e31c (patch) | |
tree | 9180e41db8961f781a206aa307e9f6ace4052dd2 | |
parent | 9eecf1c6be59ff3c04152390d7ce556e36965fd8 (diff) | |
download | netflix-immersive-a94619a06378062f4195d970b1a46e3b7103e31c.tar.bz2 |
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.
-rw-r--r-- | netflix-immersive.user.js | 2 | ||||
-rw-r--r-- | 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 ); |