mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 01:50:09 +00:00
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
This commit is contained in:
parent
18ba5c1a76
commit
b5f9a14106
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue