YouTube Gatekeeper

Adds block/whitelist buttons and a tabbed management UI for YouTube channels, with video duration filtering and export/import functionality.

作者
MayoHu
日安装量
1
总安装量
2
评分
0 0 0
版本
0.1.1-optimized-en
创建于
2025-08-29
更新于
2025-08-29
大小
32.9 KB
许可证
MIT
适用于

YouTube Gatekeeper User Guide

The "YouTube Gatekeeper" is a Tampermonkey userscript designed to help you manage and filter content on YouTube. It provides a comprehensive set of features, including blocking and whitelisting channels, filtering by keywords, and controlling video duration.

Key Features
。Channel Blocking/Whitelisting: Adds "Block" and "Whitelist" buttons next to video thumbnails, allowing you to quickly manage channels.
。Keyword Filtering: You can add keywords to a block list, and any video title containing those keywords will be hidden.
。Video Duration Filter: Sets a minimum video duration, hiding all videos that are shorter than the specified time.
。Whitelist Mode: When enabled, the script will only show videos from channels that you have explicitly whitelisted, hiding all others.
。Management UI: A "Channel Management" button is added to the top right of the YouTube page, which opens a graphical interface to easily manage all settings.
。Data Import/Export: You can export and import your channel and keyword lists, making it easy to back up your settings or sync them across devices.

How to Use the Script
1. Access the Management UI
On the top right of any YouTube page, you will see a button labeled "Channel Management." Click this button to open the script's management interface.

2. Channel Management
In the "Channel Management" tab, you can:
Toggle Whitelist Mode: Enable this to view videos only from whitelisted channels.
Enable Video Duration Filter: Turn this on and set a "Minimum Duration (seconds)" for videos you want to see.
Manage Lists: The interface displays "Blocked Channels" and "Whitelisted Channels." You can remove a channel from a list by clicking the "Remove" button next to it.
Import/Export: Use the "Export Channel List" and "Import Channel List" buttons to save or restore your channel settings.

3. Keyword Filtering
In the "Keyword Filter" tab, you can:
Add Keywords: Type a keyword into the input box and click "Add" to add it to your blocked keywords list.
Manage Keywords: Existing keywords are shown as tags. Click the "×" button on a tag to remove it.
Import/Export: Use the "Export Keyword List" and "Import Keyword List" buttons to save or restore your keyword settings.

4. In-Page Actions
When you browse YouTube's homepage or video lists, new buttons will appear next to each video's channel name:
Block: Clicks this button to add the video's channel to your block list.
Whitelist: Clicks this button to add the video's channel to your whitelist.

5. Version Note (v40.23-optimized)
This version includes an optimized button display to support various YouTube page layouts. It also introduces a fallback mechanism that uses a channel's name as an identifier if a unique channel ID cannot be retrieved.