Sleazy Fork is available in English.

VideoPlayerMagic-Styles

CSS Styles for VideoPlayerMagic

Mint 2025.02.06.. Lásd a legutóbbi verzió

Ezt a szkriptet nem ajánlott közvetlenül telepíteni. Ez egy könyvtár más szkriptek számára, amik tartalmazzák a // @require https://update.sleazyfork.org/scripts/487369/1532978/VideoPlayerMagic-Styles.js hivatkozást.

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