vrporn.com player resized

vrporn.com resize player

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name     vrporn.com player resized
// @description vrporn.com resize player
// @version  2
// @grant    none
// @include  https://vrporn.com/*
// @include  https://www.vrporn.com/*
// @namespace https://greasyfork.org/users/1079192
// ==/UserScript==

window.addEventListener('load', function() {
  setStyles();
}, false);


window.addEventListener('visibilitychange', function() {
  setStyles();
}, false);

function setStyles(){
	var video_player = document.getElementById("dl8videoplayer");
  video_player.style.height = "80vh";
  video_player.style.maxHeight = "unset";
  
  var content = document.getElementsByClassName("content-sidebar-wrap")[0];
  content.style.paddingLeft = content.style.paddingRight = "20px";
  
  
  var wr_video = document.getElementsByClassName("wr-video")[0];
  wr_video.style.height = "80vh";
}