YouTube Video Filter

Filter YouTube videos by views, age, and duration; fixes Infinity storage, date UTC bugs, and unknown metadata handling

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
quantavil
今日安裝
1
安裝總數
12
評價
0 0 0
版本
3.0.1
建立日期
2025-11-11
更新日期
2025-11-15
尺寸
24.5 KB
授權條款
MIT
腳本執行於

YouTube Video Filter

Filter YouTube videos by views, upload date, and duration. Ignores Shorts.

🚀 Install

  1. Install Tampermonkey (Chrome/Edge) or Violentmonkey (Firefox)
  2. Click Install Script or create new script and paste the code
  3. Refresh YouTube

📖 Usage

Open Filter Panel:
Click the ⚙ FILTER button on the right edge of the page

Set Filters:

  • Views: Use format like 10K, 1.5M, or 1000000
  • Date Range: From = oldest, To = newest
  • Duration: In minutes (e.g., 5 for 5min videos)

Apply:
Click Apply Filter → Only matching videos show
Click Disable Filter → Restore all videos
Click Reset → Clear all filters

✨ Features

  • ✅ Works on Home, Search, Subscriptions pages
  • ✅ Survives page reloads (saves to localStorage)
  • ✅ Ignores YouTube Shorts (never filtered)
  • ✅ Real-time validation with helpful error messages
  • ✅ Shows filtered count (Showing X of Y videos)

🔧 What's Fixed (v3.0)

  • Infinity storage bug - Filters persist correctly after reload
  • Timezone issues - Dates normalized to local time (no off-by-one errors)
  • Unknown metadata handling - Videos without date/duration filtered properly
  • Performance - Debounced DOM scanning for smooth scrolling

🎯 Examples

Show popular recent videos:

  • Min Views: 100K
  • Date Range: From 2024-01-01 To (today)
  • Apply

Find long-form content:

  • Min Duration: 20 (minutes)
  • Max Duration: (leave empty)
  • Apply

Filter out old videos:

  • Date Range: From 2023-01-01
  • Apply

📝 Notes

  • Empty fields = no limit for that filter
  • Shorts are never filtered (always visible)
  • Filters only apply when enabled (green button)
  • Unknown dates/durations are hidden when filters are active