Ublock origin filters (unimelb/mathoverflow/stackexchange)

Motivated by recent changes to the mathoverflow cookie popup spam, I recently learned something about Ublock origin filters. In particular, a URL X matches *X. Now my custom filters file contains the lines


unimelb.edu.au##.tealium_explicit_consent.tealium_privacy_prompt


##.js-consent-banner.r16.l16.b16.bar-lg.fc-white.bg-black-600.sm\:p16.p32.sm\:w-auto.ws4.z-nav-fixed.ps-fixed.ff-sans


##.wmx12.mx-auto.jc-center.ai-center.d-flex.px12


##.js-dismissable-hero.ps-relative.fc-black-300.bg-black-600.py24.sm\:d-none

So the first line above matches every unimelb.edu.au website, independent of the prefix before unimelb. While the last three match every website, so I can use this set of three filters not just on mathoverflow, but on every site in the stackexchange network.

Leave a Comment

Filed under tech

Leave a Reply

Your email address will not be published. Required fields are marked *