Skip to content

Instantly share code, notes, and snippets.

@mhoye
Last active April 13, 2025 19:14
Show Gist options
  • Save mhoye/dcc2c2febeba230ca7ceb25c970390a1 to your computer and use it in GitHub Desktop.
Save mhoye/dcc2c2febeba230ca7ceb25c970390a1 to your computer and use it in GitHub Desktop.
uBlock Origin Bonus Content
# The list below is my current set of uBlock Origin additions.
# My criteria are basically, if I think a page is slow I look at
# the network tab in devtools, and if I see many megabytes of
# javascript shimmed in there I block the server delivering it.
# If that changes literally nothing that I see or care about, I
# add it to the list.
# This breaks (most) youtube embeds, the "log in with google"
# popup, and twitter/facebook entirely. It also presents some
# usability problems with Google sites (gdocs, etc) that I decided
# to live with after discovering that Google serves fonts via the
# same services they serve tracking and captchas from, a choice
# I believe is deliberate.
# The result of all this as a practice is that the web absolutely
# snaps into place for me. This is a "getting a new computer" grade
# of experiential improvement. I hope you enjoy it.
# As usual, this all works on Firefox with uBlock Origin installed; you
# can copy and paste this gist into uBlock -> Settings -> My Filters
# and click the "activate changes" button. If you're using Chrome or Safari,
# my advice is to install Firefox, then install uBlock Origin, and then
# copy and paste this gist into uBlock -> Settings -> My Filters
# I expect this list will grow over time. Additions or feedback are welcome.
#
# - mhoye, 2025
||youtube.com$domain=~youtube.com # don't pull youtube JS unless we're using youtube. Breaks non-youtube-nocookie embeds.
||gstatic.com$domain=~google.com # don't use gstatic anything unless we're on Google. Might break stuff, but I haven't seen that.
||accounts.google.com$domain=~google.com # Prevents the unwanted "log in with google" dialog everywhere.
||static.licdn.com$domain=~www.linkedin.com # Don't pull Linkedin JS outside Linkedin.
||www.gstatic.com$domain=~google.com
||fonts.googleapis.com # these aren't fonts, these are captchas. Also lies but mostly captchas.
||fonts.gstatic.com # in theory this is covered in line two, but defense wins championships.
||cookielaw.org # blocks a bunch of cookie popups.
||cookiebot.com # the same here
||twitter.com # fuck that guy
||x.com # yes, that guy specifically
||fbcdn.net # also this guy specifically
||fbcdn*.akamaihd.net # Facebook CDN collection.
||fbstatic*.akamaihd.net # another Facebook CDN collection.
# If you need these to work you can append $domain=~facebook.com
# to them, which constrains these CDNs to only Facebook.
# A better idea is: quit Facebook.
||merchantpool1.linkedin.com # If I can block a megabyte of minified JS and see no difference, then I didn't need it.
||protechts.net # Another 1+MB no-op. These people are bad and they should feel bad.
||cdn.bullwhip.cloud # So should these people.
||cdn.concert.io # yup
||use.fontawesome.com # again
||static.zbcdn3.com # Yeah ok so I think that everything else on this list
||zotabox.com # is all adtech companies and their CDNs. Far as I can
||tidiochat.co # tell nothing happens, at all, when you block these
||code.tidio.co # sites. Nothing of value is lost.
||tidiochat.com #
||cdn.amplified.io # I wonder how it feels to work in places like this.
||boldapps.net # The knowing, I mean. Knowing you're spending your life
||amplifiedcdn.com # on whatever this is, that the world is a better place
||cdn.amplified.io # for people who ignore and block what you've built.
||cdn.codeblackbelt.com
||webmarked.net
||identixweb.net
||js.klarna.com
||px-cdn.net
@jdubovsky
Copy link

I will try this config file mostly because it looks like a solid set of rules... but also in no small part due to the excellent comments.

# these aren't fonts, these are captchas. Also lies but mostly captchas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment