YouTube Localhost Ad-Free Player

Play YouTube videos ad-free using an iframe embed served from localhost

نووسەر
CyrilSLi
Daily installs
0
Total installs
14
Ratings
0 0 0
وەشان
1.2
Created
2025-08-24
Updated
2025-10-01
Size
8.76 KB
مۆڵەت
MIT
Applies to

yt-localhost-iframe

Play YouTube videos ad-free using an iframe embed served from localhost

Greasy Fork   GitHub

Installation

  1. Install script.user.js with a userscript manager or from Greasy Fork.
  2. Serve index.html on localhost:8823 using a local web server, e.g. run python -m http.server 8823 in the project directory after cloning the repository.

Note: The server must be running whenever you use YouTube with this script enabled.

Usage

This script is designed to be minimally invasive, overlaying the localhost iframe on top of the original player.

Use YouTube as normal with the exception of playlists. Switch videos by clicking the playlist icon inside the player instead of the YouTube playlist sidebar to avoid reloading the page.

Known Issues

  • Playlists:

    • Not all videos in a playlist may load into the embed player. If this happens, try refreshing the page.
    • The playlist may reset to the first video when entering and exiting miniplayer mode.
    • This issue may be partially mitigated by entering and exiting miniplayer mode on the first video before you start watching the playlist.
  • Video Info:

    • The video title may be empty when switching videos with the miniplayer active. Refresh the page to fix.