MediaWiki:Common.js/WatchlistNotice.js

/* * Description: Hide the watchlist message for one week. * Maintainers: Ruud Koot * Updated by:  darklama */ function addDismissButton { var $watchlistMessage = $('#watchlist-message'); if ( !$watchlistMessage.length ) return; if ( $.cookie('hidewatchlistmessage') === 'yes' ) { $watchlistMessage.hide; return; }	$(' [dismiss] ') .appendTo( $watchlistMessage ) .click( function {			$.cookie('hidewatchlistmessage', 'yes', { 'expires': 7, 'path': '/' });			$watchlistMessage.hide;		}); } if ( mw.config.get('wgCanonicalSpecialPageName') === 'Watchlist') $(document).ready( addDismissButton );