A Chrome extension that hides all YouTube UI except for your video
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

templates.js 872B

1234567891011121314151617181920212223242526272829303132
  1. export const buildLaunchContainer = (videoId) => `
  2. <div id="refined-youtube-launch-container">
  3. <button id="refined-youtube-launch-button">
  4. View on Refined YouTube
  5. </button>
  6. <span id="refined-youtube-launch-close-button">
  7. x
  8. </span>
  9. </div>
  10. `;
  11. export const buildRefinedPage = (videoId) => `
  12. <head>
  13. <title>Refined YouTube</title>
  14. <meta charset="utf8">
  15. </head>
  16. <body class="refined-youtube">
  17. <div id="refined-youtube-container">
  18. <iframe
  19. width="1280"
  20. height="720"
  21. src="https://www.youtube.com/embed/${videoId}"
  22. frameborder="0"
  23. allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
  24. allowfullscreen
  25. ></iframe>
  26. </div>
  27. <a id="refined-youtube-close-button" href="https://www.youtube.com/watch?v=${videoId}">
  28. x
  29. </a>
  30. </body>
  31. `;