Greasy Fork is available in English.

YouTube: Remove Videos Based on Duration

Remove too short or too long videos from your YouTube's recommendation

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
kuronekozero
일일 설치수
0
총 설치수
27
평점
0 0 0
버전
0.1
생성
2023-10-29
갱신
2023-10-29
라이선스
MIT
동작 사이트

YouTube: Remove Videos Based on Duration

This Tampermonkey script is designed to customize your YouTube recommendations by removing videos that are either too short or too long. It operates by scanning the videos in your YouTube recommendations and removing any that do not fall within the specified duration range.

Videos like this will be removed:

How does it work?

The script works by scanning the videos in your YouTube recommendations and removing any that are shorter than a specified minimum duration or longer than a specified maximum duration. By default, these durations are set to remove videos shorter than 1 minute and longer than 1 hour(by default max duration is disabled), but these can be easily adjusted to suit your preferences.

Customizing the Duration Thresholds

To adjust the duration thresholds, you need to modify the values of minDuration and/or maxDuration in the script. For instance, if you want to remove videos shorter than 2 minutes and longer than 20 minutes, you would change:

var minDuration = "1:00"; // Minimum duration
var maxDuration = "10:00"; // Maximum duration

to:

var minDuration = "2:00"; // Minimum duration
var maxDuration = "20:00"; // Maximum duration

If you only want to remove videos that are shorter than a certain duration, you can comment out the maxDuration line. Similarly, if you only want to remove videos that are longer than a certain duration, you can comment out the minDuration line.

License

This project is licensed under the terms of the MIT license.