Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*global mediaWiki, jQuery*/
( function ( $, mw ) {
	'use strict';

	$( function() {
		if ( mw.config.get( 'wgPageName' ) !== 'Breast' || $.cookie( 'showAaylaImage' ) === 'true' ) {
			return;
		}
		var	$content = $( '#mw-content-text' ),
			$aaylaImage = $content.find( 'a' + ( mw.config.get( 'skin' ) === 'monobook' ? '.image[href="/wiki/File:Aayla_sleeping.jpg"]' : '[data-image-name="Aayla sleeping.jpg"]' ) ),
			$aaylaImageParent = $aaylaImage.parent(),
			$showLink = $( '<a>' ).attr( 'id', 'hideAaylaImageButton' ).attr( 'href', '#' ).text( 'Show' ).css( 'marginTop', '35px' ).addClass( 'wikia-button' ).click( function () {
				$aaylaImageParent.find( '#hideAaylaImage' ).remove();
				$.cookie( 'showAaylaImage', 'true', { expires: 9999 } );
			} );
		$aaylaImageParent.prepend( $showLink );
		$( '#hideAaylaImageButton' ).wrap( '<div id="hideAaylaImage" style="width: 122px; height: 100px; position: absolute; background: #000; text-align: center;">' );
		if (  mw.config.get( 'skin' ) === 'monobook' ) {
			mw.util.addCSS( 'a.wikia-button {background-color: #006CB0;background-image: -moz-linear-gradient(center top , #008BE3 35%, #006CB0 65%);' +
				'border: 1px solid #006CB0;border-radius: 4px 4px 4px 4px; color: white;cursor: pointer; display: inline-block;' +
				'font-family: Helvetica,Arial,sans-serif;font-size: 12px;height: 19px;line-height: 20px;padding: 0 10px;text-decoration: none;' +
				'white-space: nowrap; }' );
		}
	} );
}( jQuery, mediaWiki ) );