Killing ads on Facebook

Simply add this to a custom CSS style sheet in your browser:

.ego_section,.mvs._5j5u._5jqk.clearfix,._54b-,div[data-referrer*="substream"] div[data-ownerid*="u_ps"],div[class="_4-u2 mbm _5jmm _5pat _5v3q _5sq8 _5x16"][data-xt-vimp*="log_initial_nonviewable"],._54b{display:none!important}

Any decent browser (like the one I use, “qutebrowser“), will have the option of using a custom CSS style sheet when rendering pages. The above code only affects Facebook and makes ads not show up.

You may of course use another ad-block system, but this is the leanest, less resource intensive and most elegant I have seen. Thanks to a3cAnton.

Have your say

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s