My uBlock Origin Rules

    I consider the internet in 2025 to be more or less unusable without adblock. uBlock Origin is the best I know of, by far. And since Google has forced it to shut down in Chrome (see antitrust), that means I only use Firefox. But even then, the regular uBlock Origin lets a lot of first-party spam through, especially on sites like Youtube. So here's a list of custom rules for uBlock Origin that I use to make Youtube more palatable. These will remove chat, comments, reels, shorts, and suggested videos unrelated to your actual query.

www.youtube.com###chat
www.youtube.com###comments
www.youtube.com###content-section
www.youtube.com###offer-module
www.youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost:nth-of-type(1)
www.youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost:nth-of-type(2)
www.youtube.com##grid-shelf-view-model.ytGridShelfViewModelHostHasBottomButton.ytd-item-section-renderer.ytGridShelfViewModelHost:nth-of-type(3)
www.youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer.style-scope
www.youtube.com##ytd-reel-shelf-renderer
www.youtube.com##ytd-rich-section-renderer
www.youtube.com##ytd-shelf-renderer

    And some for LinkedIn, now that LinkedIn is mostly promoted content. These remove all promoted and shallow content, so all I get is actual posts by connections, rather than an instagram-like feed of things connections "liked".

www.linkedin.com##:xpath(//span[text()[contains(.,'Accelerate your job search')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'celebrates this')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'find a job that matches your skills')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'finds this funny')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'finds this insightful')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Job search smarter')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'likes this')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'LinkedIn Premium')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Looking for a remote job?')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'loves this')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Open more opportunities')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'other connections follow')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Pick up where you left off with our job search tools')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Popular course on LinkedIn Learning')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Reactivate your free trial')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Restart your free trial')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Retry Premium for free')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'See all your profile viewers')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,"See who's hiring")]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'Suggested')]]/../../../../../../../../../../..)
www.linkedin.com##:xpath(//span[text()[contains(.,'supports this')]]/../../../../../../../../../../..)