Sleazy Fork is available in English.

ShadeFix xHamster

ShadeFix for xHamster, centering the player and removing fixed adspace

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 0.0.1a
  4. // Date of issue: 02/09/17
  5. // Date of resolution: 02/09/17
  6. //
  7. // ==UserScript==
  8. // @name ShadeFix xHamster
  9. // @namespace SFXH
  10. // @description ShadeFix for xHamster, centering the player and removing fixed adspace
  11. // @include *xhamster.*
  12. // @include https://*xhamster.*
  13.  
  14. // @version 0.0.1a
  15. // @icon https://i.imgur.com/btbIBjl.png
  16. // ==/UserScript==
  17.  
  18. function ShadeFixXH(css) {
  19. var head, style;
  20. head = document.getElementsByTagName('head')[0];
  21. if (!head) { return; }
  22. style = document.createElement('style');
  23. style.type = 'text/css';
  24. style.innerHTML = css;
  25. head.appendChild(style);
  26. }
  27.  
  28. ShadeFixXH (
  29. '#supportAds, .gListing tbody tr td[colspan="2"], #newPlayerFeedback, .cams-widget, .player-ad-overlay, .videoList div[style="float: right;"], .bottom_message, .avdo {display: none !important;}'
  30. +
  31. '#playerBox, #commentBox {width: 100%;}'
  32. +
  33. '.main tbody tr td:last-child .boxTL {display: block !important;}'
  34. +
  35. '#player, #playerSwf, #player .noFlash, #playerSwf video, #playerSwf .mp4Thumb {width: 98% !important; height: 600px !important;}'
  36. +
  37. '#playerSwf video, #playerSwf .mp4Thumb {width: 98% !important; margin: 0 auto !important;}'
  38. +
  39. '.xplayer video {left: 2% !important;}'
  40. +
  41. '#playerSwf #player {left: 1% !important;}'
  42. +
  43. '.xplayer .progress-bar {opacity: .85 !important;}'
  44. );