FixRedYoutube

CSS fixed to new youtube

当前为 2017-09-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name FixRedYoutube
  3. // @description CSS fixed to new youtube
  4. // @include *://*.youtube.com*
  5. // @grant GM_addStyle
  6. // @run-at document-start
  7. // @version 2
  8. // @namespace
  9. // ==/UserScript==
  10.  
  11. GM_addStyle ( "#player-ads { display: none; }\
  12. paper-button.ytd-subscribe-button-renderer {\
  13. background: hsla(3, 60%, 47%, 1);\
  14. }\
  15. a.yt-simple-endpoint.yt-formatted-string {\
  16. color: hsla(3, 60%, 47%, 1);\
  17. }\
  18. #progress.ytd-thumbnail-overlay-resume-playback-renderer, .ytp-red2 .ytp-swatch-background-color, .ytp-red2 .ytp-swatch-background-color-secondary {\
  19. background-color: hsla(3, 60%, 47%, 1);\
  20. }\
  21. path#lozenge-path, #logo path.style-scope.yt-icon {\
  22. fill: hsla(3, 60%, 47%, 1);\
  23. }\
  24. div#top div#player {\
  25. max-height: calc(100vh - var(--ytd-masthead-height, 56px));\
  26. }");