YouTube Embed Remove Branding.

Ideal for custom embedded players to make embed feel less like third-party.

目前为 2022-09-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Embed Remove Branding.
  3. // @namespace youtubeembedbrandremoval
  4. // @match https://*.youtube.com/embed*
  5. // @grant none
  6. // @version 1.0.3
  7. // @license GPLv3
  8. // @author Hououin Kyōma
  9. // @description Ideal for custom embedded players to make embed feel less like third-party.
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. var style = document.createElement("style");
  14. style.innerHTML = `
  15. .ytp-gradient-top,
  16. .ytp-chrome-top,
  17. .ytp-show-tiles,
  18. .ytp-watermark,
  19. .ytp-youtube-button,
  20. .ytp-impression-link,
  21. .ytp-pause-overlay-container,
  22. .ytp-player-content,
  23. .ytp-ce-element {
  24. display: none!important;
  25. }
  26.  
  27. .ytp-large-play-button-bg, .ytp-large-play-button-red-bg {
  28. display: none!important;
  29. fill: #222!important; /* If you want it, can make it less YT like */
  30. }
  31. div:hover .ytp-large-play-button-bg, div:hover .ytp-large-play-button-red-bg {
  32. fill: #333!important;
  33. }
  34.  
  35. `;
  36.  
  37. document.head.appendChild(style);