Force highest quality playback for X (Twitter). Fixed UI layout shifts.
Ever noticed X/Twitter playing videos in lower quality even when HD is available? This script puts you in control – lock your favorite resolution, skip the buffering, and enjoy crisp playback without the hassle.
Just install it, and a sleek quality panel appears – pick your setting once, and it remembers forever.
🔒 Lock Your Quality: Choose exactly what you want:
🎯 Smart Matching: Uses nearest-neighbor logic to find the closest available stream to your preference – no more "option not available" frustrations.
🧭 Clean, Unobtrusive UI:
Example UI flow:
⌨️ Keyboard Power Users: Press Alt + Q anytime to cycle: Best → 1080P → 720P → Auto → Best...
💾 Set & Forget: Your preference saves to localStorage – works across sessions, no reconfiguration needed.
document-start to intercept video requests early.XMLHttpRequest and fetch to catch HLS playlist (.m3u8) downloads from video.twimg.com.RESOLUTION and BANDWIDTH tags.Note: This script only selects from streams X/Twitter already provides. If 4K isn't offered for a video, it can't magic it into existence – but it will pick the best available match.
x.com, twitter.com, mobile/pro subdomains)Pro tip: Toggle mini-mode by clicking the panel header – keeps your screen clean while still showing status.
@grant none) – pure client-side logic, no external calls.Made with ❤️ for smoother X/Twitter video watching •