YouTube Embed Hide Logos and Title.

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

目前為 2022-09-15 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name YouTube Embed Hide Logos and Title.
  3. // @namespace Violentmonkey Scripts
  4. // @match https://*.youtube.com/embed*
  5. // @grant none
  6. // @version 1.0
  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. display: none!important;
  22. }
  23.  
  24. .ytp-large-play-button-bg, .ytp-large-play-button-red-bg {
  25. display: none!important;
  26. fill: #222!important; /* If you want it, can make it less YT like */
  27. }
  28. div:hover .ytp-large-play-button-bg, div:hover .ytp-large-play-button-red-bg {
  29. fill: #333!important;
  30. }
  31.  
  32. `;
  33.  
  34. document.head.appendChild(style);