Skip to content

Instantly share code, notes, and snippets.

@auyongcheemeng
Last active September 13, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auyongcheemeng/e2a1778e738b2e3184328342e393ef94 to your computer and use it in GitHub Desktop.
Save auyongcheemeng/e2a1778e738b2e3184328342e393ef94 to your computer and use it in GitHub Desktop.
Blocking annoyances on FB with uBlock origin (tenor, giphy, reaction emoticons)
! Overriding an exception in uBlock filters – Unbreak
! that was supposingly intended in 2017 to fix https://github.com/gorhill/uBlock/issues/3138
! but that original fix does not seem to be doing anything in 2021 but hamper our efforts to filter
@@||fbcdn.net/safe_image.php?$image,domain=facebook.com|facebookcorewwwi.onion|facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion,badfilter
! regex filter matching for external fbcdn.net img assets containing (tenor|giphy)
! example link: https://external.fkul2-2.fna.fbcdn.net/safe_image.php?d=AQE-RknvkuCPucuY&w=960&h=960&url=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FWOl1f1lAD76IjaXWs7%2Fgiphy.gif%3Fkid%3Dbe302117%26ct%3Ds&ext=jpg&_nc_oe=6eab8&_nc_sid=220845&ccb=3-5&_nc_hash=AQFINvBoNBpXUcmc
/^https?:\/\/external.*.fna.fbcdn.net\/safe_image.php\?.*(tenor|giphy)/$image,third-party,domain=facebook.com|facebookcorewwwi.onion|facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion
! regex filter mtching for static content on fbcdn *.png (reaction emoticons) - experimental
! example link: https://scontent.fkul2-2.fna.fbcdn.net/v/t39.1997-6/cp0/s110x80/105604112_1000519530403751_3841637324296394466_n.png?_nc_cat=1&ccb=1-5&_nc_sid=ac3552&_nc_ohc=Z8-XoTjOP2IAX-Eg4H0&_nc_ht=scontent.fkul2-2.fna&oh=b26b4ba871b234cbb0a560b39702bf77&oe=6143E3AB
! (experimental/not fully tested) uncomment below to enable
!/^https?:\/\/scontent.*.fna.fbcdn.net\/.*\.png/$image,third-party,domain=facebook.com|facebookcorewwwi.onion|facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment