Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
Added selector for 'Breaking News' videos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandrenkov committed Mar 13, 2020
1 parent e1cbd53 commit 0ea1de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ class Manager {

// Fetches all the item Videos in the given HTML element.
fetchItemVideos(element) {
return Array.from(element.querySelectorAll(":scope ytd-rich-item-renderer.style-scope.ytd-rich-grid-renderer"));
return Array.from(element.querySelectorAll(":scope ytd-rich-item-renderer.style-scope.ytd-rich-grid-renderer")).concat(
Array.from(element.querySelectorAll(":scope ytd-rich-item-renderer.style-scope.ytd-rich-shelf-renderer")));
}

// -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "FreshView for YouTube™",
"short_name": "FreshView for YouTube™",
"description": "Hide YouTube™ videos you've already watched to easily discover fresh content.",
"version": "1.3.1",
"version": "1.3.2",

"icons": {
"16": "img/icon16.png",
Expand Down

0 comments on commit 0ea1de5

Please sign in to comment.