Add qutebrowser, with ad blocking and ad-free YouTube - #12172
Open
Maximilian-Maag wants to merge 1 commit into
Open
Maximilian-Maag wants to merge 1 commit into
Maximilian-Maag wants to merge 1 commit into
Conversation
qutebrowser ships with no blocklists configured and its blocker is network-level only, so it has no way to strip YouTube's video ads: those come from the same hosts as the video itself. Configure the Brave filter engine for everything a blocklist can catch, and bind ,m to hand the URL to mpv, which pulls the stream through yt-dlp and never sees an ad break. omarchy.py holds the managed settings and is refreshed on upgrade; config.py is written once and then left alone, so :set changes and hand edits survive. A config.py that predates the install is kept as-is, with a note saying which line wires the defaults up. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds qutebrowser alongside the other browsers, set up so it is actually pleasant out of the box rather than a bare profile with no blocklists.
omarchy install browser qutebrowserinstallsqutebrowser,python-adblock,mpvandyt-dlp, and drops in the config below.omarchy remove browser qutebrowserdropsqutebrowserandpython-adblockand removesomarchy.py. The profile,config.py, bookmarks and history stay, and so dompvandyt-dlp, which are useful on their own.Ad blocking.
content.blocking.method = "both"runs the Brave filter-list engine next to the hosts blocklist, with EasyList, EasyPrivacy, Fanboy's annoyances and the uBlock Origin filter and privacy lists.YouTube. Worth being straight about why this is not just another filter list: qutebrowser's blocker is network-level only — no cosmetic filtering, no scriptlet injection — and YouTube serves its video ads from the same hosts as the video. No blocklist will make YouTube ad-free here. What does work is handing the URL to mpv: yt-dlp resolves the stream directly and the ad breaks are never part of it.
,mplays the current page,,Mhints a link on the page first.Config layout.
config/qutebrowser/omarchy.pyholds the managed settings and is refreshed on upgrade throughomarchy-refresh-config.config.pyis written once, sourcesomarchy.pyand then callsconfig.load_autoconfig(True), so:setchanges and hand edits outlive an upgrade. Aconfig.pythat predates the install is never overwritten — instead the installer prints the one line that wires the defaults up, so the settings cannot silently do nothing.Tested with
test/cli, by checking the routes resolve viaomarchy commands --all, and by exercisingsetup_qutebrowser_configagainst a sandboxedHOME: first install, re-running it as an upgrade (managed file restored and backed up, user'sconfig.pyuntouched), a pre-existingconfig.py(left alone, notice printed), and one already sourcingomarchy.py(no notice). The desktop id used for the default-browser fallback was checked against the package contents rather than assumed.🤖 Generated with Claude Code