LiteTube

Hide video recommendations from listing and remove annoying auto-mix playlists to reduce lag and improve performance

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Averagetuberr
日安装量
2
总安装量
23
评分
0 0 0
版本
2.8.4
创建于
2025-11-08
更新于
2025-11-23
大小
4.8 KB
许可证
GNU 3.0
适用于

# LiteTube
A lightweight Tampermonkey script that optimizes YouTube performance by removing clutter and reducing bandwidth usage. It was designed to remove video listing cards while watching a video and remove auto-mix URLs by doing a cleanup reload.

## Features
- **Removes Video Recommendations** - Completely hides the sidebar on watch pages while keeping homepage content intact
- **Blocks YouTube Auto-Mix Playlists** - Automatically detects and removes auto-generated mix playlists (RD*) by reloading the page with clean URLs
- **Preserves User Playlists** - Your personal playlists and other users' playlists continue to work normally
- **Removes Bloat** - Eliminates gaming shelves, promoted content, banner ads, and other unnecessary elements
- **Reduces Lag** - Minimizes DOM elements and prevents unnecessary data loading for smoother playback
- **Lower Bandwidth** - Decreases data consumption by blocking redundant content from loading
- **Keeps End-Screen Cards** - Preserves video suggestions that appear at the end of videos

## What Gets Removed
- Video recommendation sidebars (watch page only)
- YouTube's auto-generated music mixes (reloads page without mix parameters)
- Gaming content shelves
- Promoted videos and advertisements
- Statement banners and promotional content
- Playlist panels for auto-mixes

## What Stays
- Homepage video cards and recommendations
- Your personal playlists
- Other users' playlists
- End-screen video suggestions
- Comments and descriptions
- Normal video functionality

## Installation

### Prerequisites
You need a userscript manager extension installed in your browser:
- **Chrome/Edge/Brave**: [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojnmoofnbnafgjabi)
- **Firefox**: [Tampermonkey](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/) or [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)
- **Safari**: [Tampermonkey](https://apps.apple.com/us/app/tampermonkey/id1482490089)

### Steps
1. Install Tampermonkey from the links above
2. Click on the Tampermonkey icon in your browser toolbar
3. Select "Create a new script"
4. Delete the default code
5. Copy and paste the LiteTube script
6. Press `Ctrl+S` (or `Cmd+S` on Mac) to save
7. Visit YouTube and enjoy a cleaner, faster experience

### Alternative: Direct Install
If the script is hosted on a userscript repository:
1. Click the install link
2. Tampermonkey will open with the script
3. Click "Install"

## Usage
Once installed, the script runs automatically on YouTube. Simply navigate to any YouTube video and you'll notice:
- Clean watch page without recommendation sidebar
- Auto-mix playlists are instantly removed (page reloads without mix parameters)
- Videos play as standalone content with normal end-screen suggestions
- Homepage remains functional with all video cards visible

## How It Works
LiteTube works by:
1. **Detecting auto-mix URLs** - Checks if the current URL contains YouTube's auto-generated mix parameters (`list=RD*`, `start_radio`)
2. **Reloading with clean URL** - Immediately reloads the page with those parameters removed, preventing auto-mix from initializing
3. **Hiding sidebar elements** - Removes the recommendation sidebar and related DOM elements on watch pages
4. **Removing bloat** - Continuously monitors and removes promotional content and gaming shelves

This approach ensures YouTube treats the video as standalone content, showing normal end-screen suggestions instead of auto-playing the next track in a generated mix.

## Compatibility
- Works on all major browsers with Tampermonkey
- Compatible with YouTube's current layout
- Tested on YouTube.com
- Does not interfere with user-created playlists or normal YouTube features

## Version
**v2.8.4**

## Author
Liminality Dreams

## License
GNU General Public License v3.0