MediaWiki:External image whitelist: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Added support for Youtube thumbnails)
(Added blockchain.info hostname)
 
Line 6: Line 6:


# This is case-insensitive
# This is case-insensitive
openfarmtech\.org/
opensourceecology\.org/
opensourceecology\.org/


Line 19: Line 18:
# See http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
# See http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
img\.youtube\.com/
img\.youtube\.com/
# Bitcoin
blockchain\.info/


#Put all regex fragments above this line. Leave this line exactly as it is</pre>
#Put all regex fragments above this line. Leave this line exactly as it is</pre>

Latest revision as of 18:58, 9 January 2013

#Leave this line exactly as it is

#Put regular expression fragments (just the part that goes between the //) below
#These will be matched with the URLs of external (hotlinked) images
#Those that match will be displayed as images, otherwise only a link to the image will be shown
#Lines beginning with # are treated as comments

# This is case-insensitive
opensourceecology\.org/

# Images from commons
upload\.wikimedia\.org/

# Photobucket
.*?\.photobucket\.com/

# Youtube thumbnails
# See [[Template:YoutubePopup]]
# See http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
img\.youtube\.com/

# Bitcoin
blockchain\.info/

#Put all regex fragments above this line. Leave this line exactly as it is