forked from code-charity/youtube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add video duration filter for recommended videos
Fixes code-charity#2653 Add a feature to filter recommended videos by duration. * Add a new function `filterRecommendedVideosByDuration` in `js&css/extension/www.youtube.com/general/general.js` to filter recommended videos by duration. * Call `filterRecommendedVideosByDuration` in the `youtubeHomePage` function in `js&css/extension/www.youtube.com/general/general.js`. * Add a new setting `recommended_videos_min_duration` in `menu/skeleton-parts/player.js` to specify the minimum video duration for recommendations. * Add logic to store the user's preferred minimum video duration for recommendations in `menu/index.js`. * Apply the duration filter to related videos in the `relatedVideos` function in `js&css/extension/www.youtube.com/appearance/sidebar/sidebar.js`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/code-charity/youtube/issues/2653?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
4 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters