Play YouTube videos ad-free using an iframe embed served from localhost
Play YouTube videos ad-free using an iframe embed served from localhost
localhost:8823 using a local web server, some options are as follows:python -m http.server 8823 in the project directory after cloning the repositorysetproctitle Python package is installed), this will start a process with the name yt-iframe so it can be easily found and killed if neededNote: The server must be running whenever you use YouTube with this script enabled.
For Chromium-based browsers, set the flag local-network-access-check to Disabled as otherwise the browser will not allow a local iframe inside public sites including YouTube.
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.
Playlists:
Video Info: