diff options
| author | Teddy Wing | 2020-05-08 18:13:46 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-05-08 18:13:46 +0200 | 
| commit | 4e2ad017e928a7ee22fcfe063f22d57201577283 (patch) | |
| tree | f4bbef184aec21ed70397f03f7b1ec57229cb044 /src | |
| parent | 9a2d579e0e21081bb66d532679dfadd7035d5021 (diff) | |
| download | netflix-immersive-4e2ad017e928a7ee22fcfe063f22d57201577283.tar.bz2 | |
styles: Hide skip buttons
Diffstat (limited to 'src')
| -rw-r--r-- | src/styles.ts | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/src/styles.ts b/src/styles.ts index 9d44e45..26d34ed 100644 --- a/src/styles.ts +++ b/src/styles.ts @@ -5,18 +5,32 @@ export function styles () {  	const stylesheet = style.sheet as CSSStyleSheet; +	// "Back to Browse" button that appears when credits are minimised.  	stylesheet.insertRule(  		'.OriginalsPostPlay-BackgroundTrailer .BackToBrowse { visibility: hidden; }',  		stylesheet.cssRules.length  	); +	// Age rating.  	stylesheet.insertRule(  		'.player-view-childrens { visibility: hidden; }',  		stylesheet.cssRules.length  	); +	// "Watch Credits" button.  	stylesheet.insertRule(  		'[data-uia="watch-credits-seamless-button"] { visibility: hidden; }',  		stylesheet.cssRules.length  	); + +	// Skip buttons. +	stylesheet.insertRule(` +		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 +	);  } | 
