aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles.ts
diff options
context:
space:
mode:
authorTeddy Wing2020-05-05 22:39:11 +0200
committerTeddy Wing2020-05-05 22:39:11 +0200
commita70c71fe4e24d0953f01cefdd8b73571716c290b (patch)
treedbe7b971923e0c250836602094a90d9fbe16c18c /src/styles.ts
parent0ff130243082c5a509ca1795692c22adc9e194da (diff)
downloadnetflix-immersive-a70c71fe4e24d0953f01cefdd8b73571716c290b.tar.bz2
Extract credits handling and CSS styles to separate modules
Start to establish a bit of separation and organisation.
Diffstat (limited to 'src/styles.ts')
-rw-r--r--src/styles.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/styles.ts b/src/styles.ts
new file mode 100644
index 0000000..a9997cf
--- /dev/null
+++ b/src/styles.ts
@@ -0,0 +1,16 @@
+export function styles () {
+ var style = document.createElement('style');
+ var stylesheet = style.sheet as CSSStyleSheet;
+
+ document.head.appendChild(style);
+
+ stylesheet.insertRule(
+ '.OriginalsPostPlay-BackgroundTrailer .BackToBrowse { visibility: hidden; }',
+ stylesheet.cssRules.length
+ );
+
+ stylesheet.insertRule(
+ '.player-view-childrens { visibility: hidden; }',
+ stylesheet.cssRules.length
+ );
+}