I'm using Firefox 38 and OS can either be Windows 7, Ubuntu 14.04, or Slackware 14.1.
I want to know a way to block all cross-site image requests originating for a specific website. E.g. Consider Superuser.com where images from Gravatar.com, Imgur.com, and other user posted images from Dropbox, Google photos appears. To me, requests to all of the said websites account as cross-site image requests for SuperUser.com.
In a nutshell, if I visit ABC.com then I would like to know a way to block all images (all types, including animated and video previews) that are not from ABC.com but from other sources.
Things I tried so far:
Third party images can be stopped loading by changing the value of
about:config. However, this setting applies globally which is unproductive for me.
Per-site permissions via Page Info -> Permission -> Load Images -> Block isn't working for me somehow.
I found that
permissions.sqlitein current Firefox profile has image related permissions. I changed it to
3but to no avail.
RequestPolicy does the job well but the addon always runs in Whitelist mode while I require Blacklist mode in it.
Note that I cannot afford to go for a image hunt by using the solution here since the specific website could be any amongst the websites I visit, and cross-websites can be too much to kill for using that solution.
So, how do I achieve my goal?
Edit: Can per link based cross-site image blocking be achieved compared to per domain based? This answer achieves the latter. E.g. I wouldn't want to see any image on this page of Meta.SE but I have no issues with loading third-party images on other pages (like this page) of Meta.SE.