VideoPlayerMagic-Styles

CSS Styles for VideoPlayerMagic

Fra og med 15.02.2024. Se den nyeste version.

Dette script bør ikke installeres direkte. Det er et bibliotek, som andre scripts kan inkludere med metadirektivet // @require https://update.sleazyfork.org/scripts/487369/1327813/VideoPlayerMagic-Styles.js

  1. // ==UserScript==
  2. // @name VideoPlayerMagic-Styles
  3. // @namespace vpm-s
  4. // @version 2024-02-15_7
  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. 'pmvhaven': `div#fluid_video_wrapper_VideoPlayer.maximized {position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 5000;}`
  17. };
  18.  
  19. function injectStyles() {
  20. let styleTag = document.createElement('style');
  21. if (document.location.host.includes('pornhub'))
  22. styleTag.innerHTML = vpmStyles.pornhub;
  23. else if (document.location.host.includes('xhamster'))
  24. styleTag.innerHTML = vpmStyles.xhamster;
  25. else if (document.location.host.includes('spankbang'))
  26. styleTag.innerHTML = vpmStyles.spankbang;
  27. else if (document.location.host.includes('pmvhaven'))
  28. styleTag.innerHTML = vpmStyles.pmvhaven;
  29. document.head.appendChild(styleTag);
  30. }