Extension:ImageFilter

What can this extension do?
This extension can prevent specific images from being rendered inline, similarly to MediaWiki:Bad image list and Extension:Bad Image List. There is no option to allow the image on certain pages, but registered users can disable the filtering altogether.

Usage
Put __NSFW__ on the description page of an image to filter it. Because the extension checks the source of the page only, this can't be in a template, but it can be inside a comment block so it doesn't appear on the rendered page.

Registered users can disable filtering using the checkbox in the Misc section of Preferences.

Download instructions
Please cut and paste the code found below and place it in  and. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Code
ImageFilter.i18n.php:

ImageFilter.php: