Netflix Tweaks

Hide the advert on the home page, adjust brightness/contrast

  1. // ==UserScript==
  2. // @name Netflix Tweaks
  3. // @namespace joeytwiddle
  4. // @version 0.0.4
  5. // @description Hide the advert on the home page, adjust brightness/contrast
  6. // @author joeytwiddle
  7. // @license ISC
  8. // @match https://www.netflix.com/*
  9. // @icon https://www.google.com/s2/favicons?domain=netflix.com
  10. // @grant GM_addStyle
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. const hideTopRecommendation = true;
  18.  
  19. // Note: When increasing the brightness, we need to reduce the other two for balance.
  20. // Otherwise the saturation appears increased, and the top whites get washed out.
  21. const videoFilter = 'brightness(1.3) contrast(0.9) saturate(0.85)';
  22.  
  23. if (typeof hideTopRecommendation !== 'undefined' && hideTopRecommendation) {
  24. GM_addStyle(`
  25. .volatile-billboard-animations-container {
  26. display: none;
  27. }
  28. /* Add some whitespace to compensate */
  29. #main-view {
  30. padding-top: 4em;
  31. }
  32. `);
  33. }
  34.  
  35. if (typeof videoFilter === 'string' && videoFilter !== '') {
  36. GM_addStyle(`
  37. video {
  38. filter: ${videoFilter};
  39. }
  40. `);
  41. }
  42.  
  43. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址