Page 1 of 1

Blocking certain images in Chrome

Posted: Mon Aug 25, 2014 4:40 am
by JKM
I'm not sure if this is the correct category to post in, but I've seen javascripts (addons) like this before (i think).

But does anyone know about a script that can block certain images on pages? For example if i want to block all Facebook images that contains:

Code: Select all

https:// * fbcdn.net/ * _180002021_ * 

Re: Blocking certain images in Chrome

Posted: Mon Aug 25, 2014 5:49 am
by Celauran
You could try iterating over each img element, comparing the src attribute against some regular expression, and hiding the element if there's a match.