ShadeFix xHamster

ShadeFix for xHamster, centering the player and removing fixed adspace

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

//
// Written by Glenn Wiking
// Script Version: 0.0.1a
// Date of issue: 02/09/17
// Date of resolution: 02/09/17
//
// ==UserScript==
// @name        ShadeFix xHamster
// @namespace   SFXH
// @description ShadeFix for xHamster, centering the player and removing fixed adspace
// @include     *xhamster.*
// @include     https://*xhamster.*

// @version     0.0.1a
// @icon        https://i.imgur.com/btbIBjl.png
// ==/UserScript==

function ShadeFixXH(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

ShadeFixXH (
	'#supportAds, .gListing tbody tr td[colspan="2"], #newPlayerFeedback, .cams-widget, .player-ad-overlay, .videoList div[style="float: right;"], .bottom_message, .avdo {display: none !important;}'
	+
	'#playerBox, #commentBox {width: 100%;}'
	+
	'.main tbody tr td:last-child .boxTL {display: block !important;}'
	+
	'#player, #playerSwf, #player .noFlash, #playerSwf video, #playerSwf .mp4Thumb {width: 98% !important; height: 600px !important;}'
	+
	'#playerSwf video, #playerSwf .mp4Thumb {width: 98% !important; margin: 0 auto !important;}'
	+
	'.xplayer video {left: 2% !important;}'
	+
	'#playerSwf #player {left: 1% !important;}'
	+
	'.xplayer .progress-bar {opacity: .85 !important;}'
);