blob: 0f29ab784a9dff6757acaa53b6ea8433e9d839d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
export function styles () {
const style = document.createElement('style');
document.head.appendChild(style);
const stylesheet = style.sheet as CSSStyleSheet;
stylesheet.insertRule(`
/* "Back to Browse" button that appears when credits are minimised. */
.OriginalsPostPlay-BackgroundTrailer .BackToBrowse,
/* Age rating. */
.player-view-childrens,
/* "Watch Credits" button. */
[data-uia="watch-credits-seamless-button"],
/* Skip buttons. */
a[aria-label="Skip Intro"],
a[aria-label="Skip Recap"],
a[aria-label="Next Episode"],
[data-uia="next-episode-seamless-button"] {
visibility: hidden;
}`,
stylesheet.cssRules.length
);
}
|