Skip to content

DeAnnoy Independent.co.uk [papo] by papo

Screenshot of DeAnnoy Independent.co.uk [papo]

Details

Authorpapo

LicenseCC BY-NC-SA 4.0

Categoryindependent

Created

Updated

Size6.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

See @description in the Source Code.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           DeAnnoy Independent.co.uk [papo]
@namespace      github.com/paponius/userstyles
@version        1.0.1
@description    Updated: 2024-03. Notes and feedback: https://github.com/paponius/userstyles/. Removed distracting and annoying elements, more responsive. Check what it does in style Options, or read @var descriptions on top of the code.
@author         Papo
@license        CC BY-NC-SA 4.0
@preprocessor   stylus

@var checkbox hideNewsletter         "Hide Newsletter subscription box" 1
@var checkbox hideVidRecom           "Video Player: Hide recommendation overlay on pause" 1
@var checkbox hideVidBackdrop        "Video Player: Hide Video Backdrop overlay. Half of video is darker on mouse hover." 1
@var checkbox hideRelatedVideo       'Small Video Player: Hide unrelated "Related videos". Sometimes it shows unrelated videos.' 1
@var checkbox hideSmallPlayer        "Small Video Player: Hide always" 0
@var checkbox moveControlsDown       "Small Video Player: Move nonsensicaly big red overlaying control buttons down" 1
@var checkbox moveVidContrUp         "Video Player: Move control buttons up. Usefull for videos with subtitles or a crawl text." 0
@var checkbox hideVidLogo            "Video Player: Hide Independent Logo" 0
@var checkbox hideVidSomething       "Video Player: Hide more overlays. No idea what. Let me know." 0
@var checkbox hideVidCaptions        "Video Player: Hide captions. No idea when, did not see any. Let me know." 0
@var checkbox hideVidContr           "Video Player: Hide control buttons. This could be useful to temporarily hide to take a screenshot." 0
@var checkbox showProgressPossition  "Video Player: Show ball on currently playing position." 1
@var checkbox movePlayerVolume       "Video Player: Change volume control to horizontal. To avoid clicking it by mistake instead of the progress bar." 1
--- end of common block ---

==/UserStyle== */
/* This preprocesor header and global variables are common part used in many of my styles. Version: 1.1 24-02 */
@-moz-document domain("independent.co.uk"), url("https://cdn.jwplayer.com/players/DOveT6jm-QoL8Kre2.html") {
/* this URL is an iframe with videos placed inline in article. top videos are directly on independent.co.uk */
/* cdn.jwplayer.com/players/DOveT6jm-QoL8Kre2.html */


/* TODO:
   check if the iframe with video does not change in time, and with different pages and sections
   check if class names do not change
 */


/* if taboola spam is blocked, the site will show an empty space where the spam should have been.
This will remove the empty space only if the spam did not load. */
#taboola-mid-article-thumbnails-iii:not(:has(div)), #taboola-below-article-1:not(:has(div)) {
	display: none;
}


 .gYzCaH
,.newsletter-component
 { /* must be indented because of stupid preprocessor */
	display: none unless not hideNewsletter;
}

.jw-related-shelf-container {
	display: none unless not hideVidRecom;
}

/* Video player: Half bottom of the video is shaded to black when mouse moves above the video.
   Backdrop is here limited to Controls area. It is usually not noticeable, as most videos are wide with Letterboxing black bar on bottom.
   But still need to keep it on the bottom for tall 4:3 videos. This can be seen on https://www.imdb.com/video/vi1157933593/ */
if hideVidBackdrop or moveVidContrUp {
	.jwplayer:not(.jw-state-idle) .jw-controls-backdrop {
	/* 	display: none unless not hideVidBackdrop; */

		height: 61px; /* was not good for different player sizes: 12%; */
		/* width: 100%; */
		bottom: 0;
		top: unset;
	}
}

/* html body div#botr_DOveT6jm_QoL8Kre2_div.jwplayer.jw-reset.jw-state-paused.jw-stretch-uniform.jw-flag-aspect-mode.jw-breakpoint-3.jw-floating-dismissible.jw-flag-user-inactive div.jw-wrapper.jw-reset div.jw-controls-backdrop.jw-reset */

if moveVidContrUp {
	.jwplayer:not(.jw-flag-small-player) .jw-controlbar {
		bottom: unset;
		/* --was-bottom: 0; */
	}
	.jwplayer:not(.jw-flag-small-player) .jw-controls-backdrop {
	/*   display: none unless not hideVidBackdrop; */
		bottom: unset;
		top: 5px;
		top: 0;
	}
}

if hideVidContr {
	.jw-controlbar {
		display: none;
	}
	.jw-controls-backdrop {
		display: none;
	}
}

.jw-logo {
	display: none unless not hideVidLogo;
}

.jw-captions.jw-captions-enabled {
	display: none unless not hideVidCaptions;
}

.jw-overlays {
	display: none unless not hideVidSomething;
}

.jw-nextup-container {
}

/* Horizontal volume
   Vertical Volume keeps opening and then clicking on the progress bar will mute audio.
 */
if movePlayerVolume {
	.jw-horizontal-volume-container {
		/* flex: 0 0 auto; */
		/* 	position: relative; */
		/* 	height: 44px; */
		width: 107px;
		/* 	align-items: center; */
		display: flex;
		/* 	justify-content: center; */
	}

	.jw-horizontal-volume-container .jw-knob {
		transform: translate(-50%,-50%) scale(0.5);
	}

	.jw-controlbar .jw-icon-volume .jw-overlay {
		display: none;
	}
}

if showProgressPossition {
	.jw-slider-time .jw-knob {
		transform: translate(-50%,-50%) scale(0.5);
	}
}


if moveControlsDown {
	.jw-display-controls {
		display: none;
	}
	.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container > .jw-icon-next,
	.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container > .jw-icon-playback,
	.jw-flag-small-player:not(.jw-flag-audio-player):not(.jw-flag-ads) .jw-controlbar .jw-button-container > .jw-icon-rewind {
		display: flex;
	}
}


/* related */
if hideRelatedVideo {
	.jwplayer .jw-overlays .jw-plugin-related.jw-plugin-related-open {
		display: none;
	}

	/* 	show controls */
	.jwplayer.jw-flag-overlay-open-related .jw-controls, .jwplayer.jw-flag-overlay-open-related .jw-title {
 		display: block;
		/* --was-display: none; */
	}
	.jw-flag-overlay-open-related .jw-logo {
 		display: block;
		/* --was-display: none; */
	}
}

.jw-flag-small-player {
	display: none unless not hideSmallPlayer;
}
/* sometimes it's not JW */
.video-sticky-video {
	display: none unless not hideSmallPlayer;
}

/*

before first start play
jwplayer jw-reset jw-state-idle jw-stretch-uniform jw-flag-aspect-mode jw-breakpoint-3 jw-floating-dismissible jw-flag-user-inactive
paused
jwplayer jw-reset jw-state-paused jw-stretch-uniform jw-flag-aspect-mode jw-breakpoint-3 jw-floating-dismissible jw-flag-user-inactive

when video player jumps down, it stays in DOM where it was, just this class is added: jw-flag-small-player
full
jwplayer jw-reset jw-state-paused jw-stretch-uniform jw-flag-aspect-mode jw-skin-independent-regular jw-breakpoint-6 jw-floating-dismissible jw-flag-user-inactive
small player
jwplayer jw-reset jw-state-paused jw-stretch-uniform jw-flag-aspect-mode jw-skin-independent-regular jw-breakpoint-1 jw-floating-dismissible jw-flag-user-inactive jw-flag-small-player

*/
}

Reviews

No reviews yet.