From b5f9a1410635384381ba78f1e881b7b5b3d236c0 Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Thu, 20 Nov 2014 16:02:19 +0100 Subject: [PATCH] Blacklist site notice banner images Images inside the current WLA banner are getting picked up, spamming all Media Viewer users with large-scale couscous imagery. Couscous is nice, but too much couscous will make you bloated. Change-Id: Ie5726be6de97da13e8dc650031285f899c2d6440 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/1011 --- resources/mmv/mmv.bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 510407b82..ad51921ed 100644 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -169,7 +169,7 @@ // .noviewer means MediaViewer has been specifically disabled for this image // .noarticletext means we are on an error page for a non-existing article, the image is part of some // template // FIXME this should be handled by .metadata - return $thumb.closest( '.metadata, .noviewer, .noarticletext' ).length === 0; + return $thumb.closest( '.metadata, .noviewer, .noarticletext, #siteNotice' ).length === 0; };