Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

Commit

Permalink
add overlay to featured channel videos on new yt ui (#1057)
Browse files Browse the repository at this point in the history
- fixes #1032
  • Loading branch information
Dave Justice committed Sep 20, 2017
1 parent 249c0d4 commit b94a9d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webextension/content-scripts/icon-overlay.js
Expand Up @@ -79,11 +79,11 @@ function ytEmbedChecks() {
ytSearchContainers.forEach(ytHomePageHandler);
}

// YouTube Watch Page
const ytWatchContainer = document.querySelector('.html5-video-player');
if (ytWatchContainer) {
// YouTube Watch Page and main featured videos on channel page
const ytWatchContainers = document.querySelectorAll('.html5-video-player');
if (ytWatchContainers) {
sendMetric('available');
ytWatchElementHandler(ytWatchContainer);
ytWatchContainers.forEach(ytWatchElementHandler);
}

// YouTube Watch Page related videos
Expand Down

0 comments on commit b94a9d4

Please sign in to comment.