Skip to content

XTUFE/YouTube-Premium-XTUFE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

🔴 YouTube XTUFE

The most powerful free YouTube enhancer. Blocks ads at the source, skips sponsors, downloads videos, and adds features YouTube should have built in.


✨ Features

🚫 Ad Blocking

Strips ads directly from YouTubes internal player response before they ever load. No black screens. No delays. No CSS tricks. Ads are removed at the data level before the player even reads them.

⏭ Auto Skip

Any ad that slips through gets instantly skipped using YouTubes own internal player API. The skip button is clicked the moment it appears.

📢 Sponsor Skip

Automatically skips sponsored segments, intros, outros, self-promos, interaction reminders, and filler using the SponsorBlock community database. Can be toggled on or off from the popup.

⬇ Video Download

Download any YouTube video directly under the video player. Powered by cobalt.tools. Available qualities:

  • 360p
  • 480p
  • 720p
  • 1080p
  • 1440p
  • 2160p (4K)
  • Audio only

⚡ Playback Speed

Control playback speed from 0.25x all the way up to 4x. Speed preference is saved and restored on every video.

🖼 Picture in Picture

A PiP button is added directly inside the YouTube video player controls. Watch any video in a floating window while you browse other tabs.

🎥 Enhanced 1080p

Toggle Enhanced 1080p from the extension popup. Enable it then select 1080p Enhanced from the YouTube video quality settings.

🔴 Skip Counter

The extension icon badge counts how many ads and sponsors were skipped this session. Open the popup to see the full breakdown.

🌙 Dark Popup

Clean dark theme popup with individual toggles for each feature so you stay in full control.


⚙️ How It Actually Works

Most ad blockers just hide ad elements with CSS. YouTube XTUFE goes deeper.

When YouTube loads a video it sets a JavaScript object called ytInitialPlayerResponse on the page. This object contains everything the player needs including the full ad schedule — adPlacements, playerAds, and adSlots.

YouTube XTUFE injects a script before YouTube runs and traps this object using Object.defineProperty. The moment YouTube tries to write the ad schedule, our code intercepts it and deletes all ad data. YouTube's player then reads the object and finds zero ads scheduled — so nothing plays.

For videos loaded via SPA navigation (clicking between videos without a page reload), the extension also patches window.XMLHttpRequest and window.fetch to strip ad data from /youtubei/v1/player API responses in real time.


🚀 Installation

Chrome Web Store coming soon. Install manually in under a minute.

Step 1 — Download

Go to Releases and download the latest youtube-xtufe.zip

Step 2 — Extract

Right click the zip → Extract All → save it somewhere permanent like your Documents folder. Do not delete this folder after installing.

Step 3 — Load in Chrome

  1. Open Chrome and paste this in the address bar: chrome://extensions
  2. Turn on Developer Mode using the toggle in the top right corner
  3. Click Load unpacked
  4. Select the extracted youtube-xtufe folder
  5. The extension is now installed ✅

Step 4 — Pin It

  1. Click the 🧩 puzzle piece icon in the Chrome toolbar
  2. Find YouTube XTUFE and click the 📌 pin icon
  3. The red YouTube XTUFE icon will appear in your toolbar permanently

📖 How to Use Each Feature

Feature How to use
Ad blocking Fully automatic on every video
Sponsor skip Automatic — toggle off in popup if you want to support creators
Download Scroll below any video → click ⬇ Download → choose quality
Playback speed Scroll below any video → click ⚡ Playback Speed → pick speed
Picture in Picture Click the 🖼 button inside the video player next to fullscreen
Enhanced 1080p Toggle on in popup → go to video quality settings → select 1080p Enhanced
Toggle everything Click the extension icon in the toolbar

🛠 Tech Stack

Component Technology
Manifest Chrome Manifest V3
Ad stripping Object.defineProperty trap on ytInitialPlayerResponse
SPA ad stripping Patched XMLHttpRequest and fetch
Network blocking declarativeNetRequest rules
Sponsor skipping SponsorBlock public API
Video download cobalt.tools API via background service worker
Speed control Native HTML5 video.playbackRate
Picture in Picture Native browser requestPictureInPicture() API

📁 File Structure

youtube-xtufe/
├── manifest.json      — Extension config and permissions
├── rules.json         — Network-level ad domain blocking rules
├── injected.js        — Page context script that intercepts ytInitialPlayerResponse
├── content.js         — Main logic: sponsor skip, download, speed, PiP
├── background.js      — Service worker: download API, skip counter, badge
├── styles.css         — Hides ad UI elements
├── popup.html         — Extension popup UI
├── popup.js           — Popup toggle logic
└── icons/             — Extension icons

⚠️ Important Notes

  • Keep the extracted folder on your computer. If you delete or move it the extension will stop working.
  • This extension is for personal use only.
  • Not affiliated with YouTube or Google.
  • Ad blocking affects creator revenue. Consider supporting creators you love directly or whitelisting their channels.

🙏 Credits

  • SponsorBlock by Ajay Ramachandran — community sponsor segment database
  • cobalt.tools — free open source video downloader API

📄 License

MIT License — free to use, modify, and share.

About

A powerful Chrome extension that blocks ads, skips sponsors, and adds extra features to YouTube — for free.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors