MediaWiki:SpoilerAlert/code.js

// ';       var cookie = $.cookies.get('spoilers'); var ids = cookie ? cookie.split(/,/) : []; if (my.test && -1 == $.inArray(wgArticleId.toString, ids)) { $('body').append(' ' + dialog + ' '); $('#blackout').css({               position: 'absolute',                top: 0,                left: 0,                width: '100%',                height: $(document).height,                backgroundColor: 'black',                display: 'none',                zIndex: 1000            }).fadeIn(400); $('#dialog').css({               position: 'absolute',                left: Math.round(($(window).width  - $('#dialog').width ) / 2) + 'px',                top:  Math.round(($(window).height - $('#dialog').height) / 2) + 'px'            }) $('#no').click(function {                $('#dialog').remove;                history.back;            }); $('#yes').click(function {                $('#dialog').remove;                $('#blackout').fadeOut(1500, function  { $('#blackout').remove; });               ids.push(wgArticleId);                $.cookies.set('spoilers', ids.join(','), { path: '/', domain: wgServer.substr('http://'.length), hoursToLive: 365 * 24 });            }); }       return my; } ('undefined' == window.SpoilerAlert ? {} : window.SpoilerAlert) }); //