VideoPlayerMagic-Styles

CSS Styles for VideoPlayerMagic

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.sleazyfork.org/scripts/487369/1540860/VideoPlayerMagic-Styles.js

  1. // ==UserScript==
  2. // @name VideoPlayerMagic-Styles
  3. // @namespace vpm-s
  4. // @version 2025_02_21_1
  5. // @description CSS Styles for VideoPlayerMagic
  6. // @author SimplyMe
  7. // @license MIT
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. let vpmStyles = {
  12. 'pornhub': `div#player.maximized {position: fixed !important; top: 0; left: 0; height: 100vh !important; width: 100vw !important; z-index: 5000;}
  13. div#player.maximized video-element {height: inherit; width: inherit;}`,
  14. 'xhamster': `div#player-container.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000;}`,
  15. 'spankbang': `#video #video_container div#main_video_player.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000;}`,
  16. 'eporner': `div#EPvideo.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000;}`,
  17. 'hypnotube': `div.plyr.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000; background: #000;}`,
  18. 'pmvhaven': `div#fluid_video_wrapper_VideoPlayer.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000;}`
  19. };
  20.  
  21. function injectStyles() {
  22. let styleTag = document.createElement('style');
  23. if (document.location.host.includes('pornhub'))
  24. styleTag.innerHTML = vpmStyles.pornhub;
  25. else if (document.location.host.includes('xhamster'))
  26. styleTag.innerHTML = vpmStyles.xhamster;
  27. else if (document.location.host.includes('eporner'))
  28. styleTag.innerHTML = vpmStyles.eporner;
  29. else if (document.location.host.includes('spankbang'))
  30. styleTag.innerHTML = vpmStyles.spankbang;
  31. else if (document.location.host.includes('hypnotube'))
  32. styleTag.innerHTML = vpmStyles.hypnotube;
  33. else if (document.location.host.includes('pmvhaven'))
  34. styleTag.innerHTML = vpmStyles.pmvhaven;
  35. document.head.appendChild(styleTag);
  36. }