User:HM100/global.js

//if (wgCityId == '177') {importStylesheetPage('User:HM100/modern.css', 'el.alpha-technologies');} //if (wgCityId == '177') {importStylesheetPage('MediaWiki:WikiaCommunityCentralTheme/code.css', 'dev');}

if (wgCityId == '177') { //importStylesheetPage('User:HM100/scratch.css', 'c');

}

importArticle({ type: 'script', article: 'u:kocka:MediaWiki:Latinify/code.js' }); /* Credit to Speedit

// global footer recolor (function gfootclr {   if ( document.querySelector('.UserProfileMasthead') !== null ) {        mw.util.addCSS('' + ' .WikiaPage .page-header .wds-button {\n' + 'background-color: ' + wgSassParams['color-body'] + ';\n' + '}');   } });

$(function { $('.featured-video-wrapper').remove; });

// Handles special pages in monobook that that are "available only in Wikia skin" var monobookSpecialPageHandler = function { if (skin === "monobook") { if ((window.location.href.endsWith("Special:Chat")) ||            (window.location.href.endsWith("Special:CSS")) ||             (window.location.href.endsWith("Special:WikiFeatures"))) { window.location.href = window.location.href + "?useskin=oasis"; }       if (window.location.href.endsWith("Special:WikiActivity")) { window.location.href = "/wiki/Special:RecentChanges"; }   } };

// global footer recolor (function gfootclr {   if ( document.querySelector('.WikiaPage') !== null ) {        mw.util.addCSS('' + ' #discord-widget .widget-header {\n' + 'background-color: ' + wgSassParams['color-buttons'] + '!important;\n' + '}');   } });

/* Quick Revert Spam and Vandalism */ massBlockDelay = 440; massProtectDelay =720; massUserRightsDelay = 1000; batchDeleteDelay = 768; WHAMDelay = 480; WHAMBotMe = true; WHAMBotReason = "Διαγραφή βανδαλισμού"; massUserRightsCustom = [ "el.alpha-technologies|bot|Ρομπότ" ]; var MessageBlock = { title : 'Υπό Φραγή από εμένα', message : 'Γεια σου. Με λένε HM100. Έχετε φραχθεί για $2 για εξής λόγο($1). Παρακαλούμε να διαβάσετε πάρα πολύ καλά |την πολιτική αυτού το ΒΙΚΙ ή θα πρέπει δυστιχώς να σε φράξουμε πιο πολύ.' + ' ' +  'Hello. My name is HM100. You have been banned for a while because of Vandalism or spam. Please enforce |its policy before you contribute again or you' + "'" + 'll get blocked for more.' , autocheck : true };

window.fdButtons = [];

window.fdButtons.push(   {        summary: 'Housekeeping',        label: 'HK'    },    {        summary: 'Vandalism',        label: 'V'    },    {        summary: 'Spam',        label: 'S'    },    {        summary: 'Terms of Use violation',        label: 'ToU'    },     {        summary: 'Unused File/Video',        label: 'UF'    },    {            summary: 'Broken Redirect',        label: 'BR'    } );

// our config is stored in an array window.lessOpts = window.lessOpts || [];

// each target page needs separate configuration window.lessOpts.push( {   // this is the page that has the compiled CSS    target: 'MediaWiki:Common.css',    // this is the page that lists the LESS files to compile    source: 'MediaWiki:Custom-common.less',    // these are the pages that you want to be able to update the target page from    // note, you should not have more than one update button per page    load: [        'MediaWiki:Common.css',        'MediaWiki:Custom-common.less'    ],    // this is the page that contains the comment header for the target page    // all other comments are stripped during compilation    header: 'MediaWiki:Custom-css-header/common' }, {    // this is the page that has the compiled CSS    target: 'MediaWiki:Wikia.css',    // this is the page that lists the LESS files to compile    source: 'MediaWiki:Custom-wikia.less',    // these are the pages that you want to be able to update the target page from // note, you should not have more than one update button per page load: [ 'MediaWiki:Wikia.css', 'MediaWiki:Custom-wikia.less' ],   // this is the page that contains the comment header for the target page // all other comments are stripped during compilation header: 'MediaWiki:Custom-css-header/wikia' }, {   // this is the page that has the compiled CSS target: 'MediaWiki:Monobook.css', // this is the page that lists the LESS files to compile source: 'MediaWiki:Custom-monobook.less', // these are the pages that you want to be able to update the target page from // note, you should not have more than one update button per page load: [ 'MediaWiki:Monobook.css', 'MediaWiki:Custom-monobook.less' ],   // this is the page that contains the comment header for the target page // all other comments are stripped during compilation header: 'MediaWiki:Custom-css-header/monobook' });

/** Parraell Immportsss **/ importStylesheetPage('MediaWiki:BetterLandscapeCommunityHeader/main.css', 'el.alpha-styles'); //importStylesheetPage('User:HM100/better fluid layout.css', 'community'); //importStylesheetPage('Χρήστης:HM100/interlanguages.css', 'el.spongebob'); //importStylesheetPage('MediaWiki:DarkOasis/code.css', 'dev'); //importStylesheetPage('MediaWiki:DVSTFW/code.css', 'dev'); //importStylesheetPage('MediaWiki:SpecialCandyCrushWikis/main.css', 'el.alpha-styles'); //importStylesheetPage('MediaWiki:OldAWikiTheme/main.css', 'el.alpha-styles'); //importStylesheetPage('MediaWiki:CozyHeader/main.css', 'el.alpha-styles'); //importStylesheetPage('MediaWiki:FullScreenOasis/main.css', 'el.alpha-styles'); //importStylesheetPage('MediaWiki:ScrollableFanFeed/main.css', 'el.alpha-styles'); importScriptPage('SkinMover/main code', 'el.alpha-styles'); importScriptPage( 'DoTheHarlemShake/code.js', 'dev' );

importArticles( {   type: 'script',    articles: [        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:MassBlock/code.js',        'u:dev:MediaWiki:MassProtect/code.js',        'u:dev:MediaWiki:MassUserRights/code.js',        'u:dev:MediaWiki:WHAM/code.2.js',        //'u:dev:UTCClock/code.js', Removed because I'm using Κλωκάκι, a clone of UTCClock and DisplayTimer        'u:dev:Wikimarks/code.js',        //'u:dev:FastDelete/code.js',        //'u:dev:FluidButton/code.js',        "u:dev:AjaxBatchDelete/code.2.js",        "u:nanaki:MessagingCleanup.js",        'u:dev:GlobalEditcount/code.js',        'u:dev:Multikick.js',        'u:dev:GlobalChatJS.js',        'u:dev:SeeMoreActivityButton/code.js',        'u:dev:ConsistentModules/code.js',        "u:dev:AnchoredRollback/code.js",        'u:dev:RedirectManagement/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:Less/code.2.js', 'u:dev:MessageBlock/code.js', 'u:el.alpha-styles:Κλωκάκι/script.js', 'u:el.alpha-styles:RandomWikiButton/script.js' ] } );

importArticles( {   type: 'style',    articles: [    'u:el.alpha-styles:MediaWiki:BetterLandscapeCommunityHeader/main.css',    'u:el.alpha-styles:MediaWiki:MobileOasis/main.css', //    'u:el.alpha-styles:MediaWiki:MobileOasis/fixed.css', //'u:community:User:HM100/better fluid layout.css', //'u:el.spongebob:Χρήστης:HM100/interlanguages.css', //'u:dev:MediaWiki:DarkOasis/code.css', //'u:dev.alpha-styles:MediaWiki:DVSTFW/code.css', //'u:el.alpha-styles:MediaWiki:SpecialCandyCrushWikis/main.css', //'u:el.alpha-styles:MediaWiki:OldAWikiTheme/main.css', //'u:el.alpha-styles:MediaWiki:OldAWikiTheme/material design.css', //'u:el.alpha-styles:MediaWiki:CozyHeader/main.css', //'u:el.alpha-styles:MediaWiki:FullScreenOasis/main.css', //'u:el.alpha-styles:MediaWiki:ScrollableFanFeed/main.css'    ] } );

/* End - Extra Scripts */

/* Το παρακάτω σενάριο θα βάλει το "Start a new Wiki" στο Monobook */ /* Το παρακάτω σενάριο θα βάλει το "Community Central" στο Monobook */ /* Το παρακάτω σενάριο θα βάλει το "RandomWiki" στο Monobook */ /* Το παρακάτω σενάριο θα βάλει το "Apiwiki" στο Monobook */ /* Το παρακάτω σενάριο θα βάλει το "wlb" στο Monobook */ $( function { /*	if ( !document.getElementById( 'ca-wikiamb' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {        $( 'Τυχαίο wiki' ).appendTo( '.mcf-header' );		} else {			$( 'Δημιούργησε ένα Wiki' ).appendTo( '#p-wikicities-nav  > .pBody > ul' ); $( 'Τυχαίο wiki' ).appendTo( '#p-wikicities-nav  > .pBody > ul' );    }  }*/  if ( !document.getElementById( 'ca-central' ) ) {    if ( skin === 'oasis' || skin === 'wikia' ) {        $( 'Techinal Updates' ).appendTo(  '#my-tools-menu'  ); } else { $( '<li id="ca-central">Community Central</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' );       $( '<li id="ca-central">Techinal Updates</a></li>' ).appendTo( '#p-wikicities-nav  > .pBody > ul' ); } }  if ( !document.getElementById( 'ca-apiwiki' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { } else { $( '<li id="ca-apiwiki">Wikia API</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); } }  if ( !document.getElementById( 'ca-wlb' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { } else { $( '<li id="ca-wlb">Wikia Language Brigade</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); } } } );

if ( !document.getElementById( 'ca-contact' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { $( '<li id="ca-contact">Contact Wikia</a></li>' ).appendTo( '#my-tools-menu'  ); } else { /*$( '<li id="ca-central">Community Central</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' );       $( '<li id="ca-contact">Contact</a></li>' ).appendTo( '#p-wikicities-nav  > .pBody > ul' );*/ } }

if ( !document.getElementById( 'ca-wwwstuff' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { $( '<li id="ca-wwwstuff">Τυχαίο wiki</a></li>' ).appendTo( '#my-tools-menu' ); } else { $( '<li id="ca-wwwstuff">Δημιούργησε ένα Wiki</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); $( '<li id="ca-wwwstuff">Τυχαίο wiki</a></li>' ).appendTo( '#p-wikicities-nav  > .pBody > ul' ); } }

/* Masthead redesign **/ // global footer recolor (function gfootclr {   if ( document.querySelector('.UserProfileMasthead') !== null ) {        mw.util.addCSS('' + ' .WikiaUserPagesHeader {\n' + //           'background-color: ' + wgSassParams['color-body'] + ';\n' + 'background-color:transparent;\n' + 'background-image:none;\n' + '}' +       '@media screen and (min-width: 1px) and (max-width: 1023px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + 'top: inherit;' + 'width: 99px;' + 'height: 99px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ 'max-height: 95px;' + 'max-width: 95px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + 'margin-left: 110px;' + '}' +       '}' +        '@media screen and (min-width: 1024px) and (max-width: 1083px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + 'top: inherit;' + 'width: 119px;' + 'height: 119px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ 'max-height: 115px;' + 'max-width: 115px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + 'margin-left: 130px;' + '}' +       '}'  +         '@media screen and (min-width: 1084px) and (max-width: 1595px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + 'top: inherit;' + 'width: 129px;' + 'height: 129px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ 'max-height: 125px;' + 'max-width: 125px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + 'margin-left: 140px;' + '}' +       '}' +         '@media screen and (min-width: 1596px) and (max-width: 999999999px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + 'top: inherit;' + 'width: 144px;' + 'height: 144px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ 'max-height: 140px;' + 'max-width: 140px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + 'margin-left: 155px;' + '}' +       '}' +    '.UserProfileMasthead .masthead-info-lower:before {\n' + 'border: none;' + '}' +       '.UserProfileMasthead .masthead-info hgroup {\n' + 'height: auto;' + 'overflow: visible;' + 'padding: 8.2px;' + 'color:'+ wgSassParams['color-community-text'] + ';' + 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color: ' + $('.wds-community-header').css('background-color') + '!important;' + '}' +       '.UserProfileMasthead .masthead-info .tag {\n' + '      background-color:' + wgSassParams['color-links'] + ';' + '      background-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + '}' +   '@media screen and (min-width: 1596px) {\n' + '.UserProfileMasthead .masthead-info h1 {\n' + 'font-size: 30px;' + 'line-height: 30px;' + '}' +   '}' +    '.UserProfileMasthead .masthead-info h1 {\n' + 'font-size: 26px;' + 'line-height: 26px;' + 'color:' + $('.wds-community-header__sitename a').css('color') + ';' + '}' +   '.UserProfileMasthead .masthead-info h2 {\n' + 'color:' + $('.wds-community-header__sitename a').css('color') + ';' + '}' +       '.UserProfileMasthead .masthead-info > div {\n' + 'padding: 8.2px;' + '}' +   '@media screen and (max-width: 1023px) {\n' + '.UserProfileMasthead .masthead-info div {\n' + 'width: 265px !important;' + '}' +   '}' +    '.UserProfileMasthead .wikis span {\n' + 'text-align: left;' + 'width: 122px;' + '}' +   '.UserProfileMasthead .wikis ul {\n' + 'width: 368px;' + '}' +   '.UserProfileMasthead .details li {\n' + 'padding-top: 3px;' + '}' +   '.UserProfileMasthead .tally {\n' + 'margin-bottom: 0;' + 'padding: 0;' + '  }' +    '.UserProfileMasthead .masthead-info .group {\n' + '-webkit-border-radius: 9px;' + '-moz-border-radius: 9px;' + 'border-radius: 9px;' + 'color: black;' + '}' +   // masthead image '.masthead-avatar img {\n' + '-webkit-transition: all 0.6s ease;' + '-moz-transition: all 0.6s ease;' + '-o-transition: all 0.6s ease;' + '-ms-transition: all 0.6s ease;' + 'transition-property:border-radius, filter, box-shadow, transform;' + 'transition-duration:0.6s;' + 'transition-timing-function:ease-in-out;' + 'border-color:' + wgSassParams['color-header'] + ';' + 'outline-color:' + wgSassParams['color-header'] + ';' + '}' +   '.masthead-avatar:hover img {\n' + 'border-radius: 100%!important;' + // In some wikis, avatar does not round 'filter:hue-rotate(-120deg)!important;' + 'box-shadow:0 0 20px ' + wgSassParams['color-links'] + ';' + '-webkit-transform: rotate(360deg);' + '-moz-transform: rotate(360deg);' + '-o-transform: rotate(360deg);' + '-ms-transform: rotate(360deg);' + 'transform:rotate(360deg);' + '}' +

'.masthead-avatar:active img {\n' + '-webkit-transform:skewX(7deg) skewY(-9deg);' + '-moz-transform:skewX(7deg) skewY(-9deg);' + '-o-transform:skewX(7deg) skewY(-9deg);' + '-ms-transform:skewX(7deg) skewY(-9deg);' + 'transform:skewX(7deg) skewY(-9deg);' + '}' + // Buttons '#WikiaUserPagesHeader ul.tabs li a {\n' + // 'background-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-image:none!Important;' + // Needed to remove the gradients on wikis with new A     'background-color: ' + wgSassParams['color-body'] + ';'+ 'color:#fff;' + 'border-color: ' + wgSassParams['color-body'] + ';' + 'border-radius:0 0 0 0!important;' + 'transition-duration:0.17s;' + 'transition-property:background-color, border-color, color, transform, opacity;' + 'opacity:0.8;' + '}' +

'#WikiaUserPagesHeader ul.tabs li a:hover {\n' + // 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color:' + wgSassParams['color-body'] + ';' + 'color:#fff;' + 'border-color:' + wgSassParams['color-body'] + ';' + 'opacity:1;' + '}' +

'#WikiaUserPagesHeader ul.tabs li a:active {\n' + // 'background-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color:' + wgSassParams['color-links'] + ';' + 'color:#fff;' + 'border-color:' + wgSassParams['color-links'] + ';' + 'transform:scale(0.9);' + 'box-shadow:0 0 10px 0 rgba(0,0,0,0.3) inset;' + 'opacity:1;' + '}' +   '.oasis-dark-theme #WikiaUserPagesHeader ul.tabs li a:active {' + 'box-shadow:0 0 10px 0 rgba(255,255,255,0.3) inset ;' + '}' +

'#WikiaUserPagesHeader ul.tabs li.selected a {\n' + // 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color:' + wgSassParams['color-buttons'] + ';' + 'color:#fff;' + 'border-color:' + wgSassParams['color-buttons'] + ';' + 'opacity:1;' + '}' +

'#WikiaUserPagesHeader ul.tabs li.selected a:hover {\n' + // 'background-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color:' + wgSassParams['color-buttons'] + ';' + 'color:#fff;' + 'border-color:' + wgSassParams['color-buttons'] + ';' + 'opacity:1;' + '}' );   } });

/** Modules **/ // Rail Modules redesign (function gfootclr {   if ( document.querySelector('.WikiaRail') !== null ) {        mw.util.addCSS('' + '.WikiaRail .rail-module h2:not(#MainHeading) {\n' + 'border:2px double ' + wgSassParams['color-links'] + '!important;' + 'border-bottom:2px double ' + wgSassParams['color-links'] + '!important;' + 'font-family:"Arelousa",Audiowide, Orbitron, Arial Nova, Arial;' + 'font-size:15px!important;' + 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.1) 100%);' + 'background-color:'+ $('.wds-community-header').css('background-color') + ' !important;' + 'color:'+ wgSassParams['color-links'] + ';' + 'border-radius:1.5px;' + '}' + '.WikiaRail .rail-module h3 {\n' + 'border:2px double ' + wgSassParams['color-links'] + '!important;' + 'border-bottom:2px double ' + wgSassParams['color-links'] + '!important;' + 'font-family:"Arial Nova", Arial;' + 'font-size:10px!important;' + 'background-image: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 66%, rgba(0,0,0,0.1) 99%);' + 'background-color:'+ $('.wds-community-header').css('background-color') + ' !important;' + 'color:'+ wgSassParams['color-links'] + ';' + 'border-radius:1.5px;' + '}' + '.WikiaRail .rail-module h2.has-icon svg, .WikiaRail .rail-module h3.has-icon svg {\n' + 'fill:'+ wgSassParams['color-links'] + ';' + '}' +

'.rail-module {\n' + 'background-color:rgba(255,255,255,0.46);' + 'border:2px double rgba(0,0,0,0.15);' + 'padding:1em 0.5em 1em;' + '}' +

'.WikiaRail .rail-module .wds-button.wds-is-secondary {\n' + 'border-color:transparent!important;' + 'color:black;' + 'background-color:transparent;' + 'transition-property:background-color,border-color,color,transform;' + '}' +

'.WikiaRail .rail-module .wds-button.wds-is-secondary:hover, .WikiaRail .rail-module .wds-button.wds-is-secondary:active, .WikiaRail .rail-module .wds-button.wds-is-secondary:focus {\n' + //'border-color:'+ wgSassParams['color-links'] + '!important;' + //'color:white!important;' + //'background-color:'+ wgSassParams['color-links'] + '!important;' + '}' +

/// Part of the active state in where it gives fluent system is not yet implemented properly

'.WikiaRail .rail-module .wds-button.wds-is-secondary:active{\n' + //'border-color:'+ wgSassParams['color-links'] + '!important;' + //'color:white!important;' + //'background-color:'+ wgSassParams['color-links'] + '!important;' + 'transform:scale(0.9);' + //'box-shadow:0 0 10px 0 rgba(0,0,0,0.3) inset;' + '}' +

'.oasis-dark-theme .WikiaRail .rail-module .wds-button.wds-is-secondary:active {\n' + //'box-shadow:0 0 10px 0 rgba(255,255,255,0.3) inset;' + '}' +

'.oasis-dark-theme .WikiaRail .rail-module .wds-button.wds-is-secondary {\n' + 'color:white!important;' + '}' + // Chat Module '.wds-is-secondary.wds-button.start-a-chat-button {\n' + 'padding-top:3px;' + 'padding-bottom:3px;' + //// Some additional 'pading-left:6px;' + 'padding-right:6px;' + //// End "Some additional" 'position:absolute;' + 'top:5px;' + 'right:5px;' + '}' +

'.chat-module {\n' + 'border-top:5px groove ' + wgSassParams['color-buttons'] + ';' + 'border-left:5px groove ' + wgSassParams['color-buttons'] + ';' + 'border-bottom:5px ridge ' + wgSassParams['color-buttons'] + ';' + 'border-right:5px ridge ' + wgSassParams['color-buttons'] + ';' + 'border-radius:26px;' + 'background-color:rgba(255,254,235,0.5);' + '}' +

'.rtl .chat-module {\n' + 'border-left-style:ridge!important;' + 'border-right-style:groove!important;' + '}' +

'.chat-module .avatars {\n' + 'border:2px double ' + wgSassParams['color-links'] + ';' + 'background-color:rgba(0,0,0,0.1);' + 'border-radius:14px;' + 'padding:4px;' + '}' + // Temporary CSS to fix the wikis using the new A Beta version in personal or sitewide level in where they use .chat-details to style the chat avatars container '.chat-module .chat-details {\n' + 'border:0;' + 'background-color:transparent!important;' + 'border-radius:0;' + 'padding:0;' + '}' +

'.chat-module .wds-avatar {\n' + 'border:2px double ' + wgSassParams['color-links'] + '!important;' + 'border-radius:14px 28px;' + '}' +

'.chat-module .chat-details .avatars .wds-avatar-stack {\n' + 'max-width: none !important;' +

'}' + '.chat-module .chat-details .avatars .wds-avatar-stack .wds-avatar-stack__avatar {\n' + 'transform: none;' + 'z-index: auto;' + 'height:auto;' + 'margin-right: 10px;'+ '}' + '.chat-module .chat-details .avatars .more-users-count {\n' + 'margin-left: 10px;' + '}' +   '@media screen and (max-width: 1023px) {\n' + '.chat-module .chat-details .avatars .wds-avatar-stack .wds-avatar-stack__avatar {\n' + 'margin-right: 17px;'+ '}' + '.chat-module .chat-details .avatars .more-users-count {\n' + 'margin-left: 20px;' + '}' +   '}' + // Activity Module '.activity-module {\n' + 'border-top:5px groove ' + wgSassParams['color-links'] + '!important;' + 'border-left:5px groove ' + wgSassParams['color-links'] + '!important;' + 'border-bottom:5px ridge ' + wgSassParams['color-links'] + '!important;' + 'border-right:5px ridge ' + wgSassParams['color-links'] + '!important;' + 'border-radius:26px;' + 'background-color:rgba(235,254,255,0.5);' + '}' +

'.rtl .activity-module {\n' + 'border-left-style:ridge!important;' + 'border-right-style:groove!important;' + '}' +

'.activity-module .wds-avatar {\n' + 'border:2px double ' + wgSassParams['color-buttons'] + '!important;' + 'border-radius:14px 28px;' + '}' +   // Community module tweaks '.community-page-rail-module {\n' + 'border-top-color:transparent!important;' + // submodule gets bugged if we remove the border '}' +   '.community-page-rail-module .wds-avatar-stack {\n' + 'max-width:none!important;' + 'margin:8px 18px 6px 40px!important;' + '}' +

'.community-page-rail-module .wds-avatar-stack__avatar {\n' + 'z-index: auto;' + 'transform: none;' + 'height: auto;' + 'margin-right: 20px;' + 'left: 20px;' + '}' +   '.community-page-rail-module .avatars {\n' + 'border:2px double ' + wgSassParams['color-buttons'] + ';' + 'background-color:rgba(0,0,0,0.1);' + 'padding:4px 4px 4px 0;' + 'border-radius:14px;' + 'right:-4px;' + 'margin-top:-4px!important;' + '}' +

// TFA Module '.recirculation-unit {\n' + 'border-top:5px groove ' + wgSassParams['color-body'] + '!important;' + 'border-left:5px groove ' + wgSassParams['color-body'] + '!important;' + 'border-bottom:5px ridge ' + wgSassParams['color-body'] + '!important;' + 'border-right:5px ridge ' + wgSassParams['color-body'] + '!important;' + 'border-radius:26px;' + 'background-color:rgba(255,235,254,0.5);' + '}' +

'.rtl .recirculation-unit {\n' + 'border-left-style:ridge!important;' + 'border-right-style:groove!important;' + '}' +

'.recirculation-unit .wds-avatar {\n' + 'border:2px double ' + wgSassParams['color-buttons'] + '!important;' + 'border-radius:14px 28px;' + '}' +

'.recirculation-unit h2 {\n' + 'white-space:nowrap!important;' + // Needed to fix the two-line heading 2 'font-size:14px!important;' + '}' + // Forum Activity Module '.forum-activity-module {\n' + 'border-top:5px groove ' + wgSassParams['color-body'] + '!important;' + 'border-left:5px groove ' + wgSassParams['color-body'] + '!important;' + 'border-bottom:5px ridge ' + wgSassParams['color-body'] + '!important;' + 'border-right:5px ridge ' + wgSassParams['color-body'] + '!important;' + 'border-radius:26px;' + 'background-color:rgba(235,255,254,0.5);' + '}' +

'.rtl .forum-activity-module {\n' + 'border-left-style:ridge!important;' + 'border-right-style:groove!important;' + '}' +

'.forum-activity-module .wds-avatar {\n' + 'border:2px double ' + wgSassParams['color-buttons'] + '!important;' + 'border-radius:14px 28px;' + '}' + // See more activity button fix '#seemoreactivity-button {\n' + 'padding-top:5px!important;' + 'padding-bottom:5px!important;' + 'margin-top:-28px;' + '}'

);   } });

/* Community-header change

(function gfootclr {   if ( document.querySelector('.wds-community-header') !== null ) {        mw.util.addCSS('' + '.wds-community-header {\n' + 'border:1px solid' + $('.wds-dropdown__content').css('border-left-color') + ';' + 'border-bottom:0!important;' + 'background-image:none!important;' + 'color:' + wgSassParams['color-text'] + '!important;' + 'background-color:transparent!important;' + 'color:'+ $('#WikiaPage').css('color') + '!important;' + '}' +

'.wds-community-header::before {\n' + 'opacity:' + wgSassParams['page-opacity'] + '!important;' + 'background-image:' + wgSassParams['color-page'] + '!important' + '}' +

'.WikiaPage {\n' + 'border-color:' + wgSassParams['color-page-border'] + '!important;' + 'border-top:0!important' + 'color:' + wgSassParams['color-text'] + '!important;' + '}' +

'@media only screen and (min-width: 3px) and (max-width: 1023px) {\n' + '.wds-community-header {\n' + 'width:766px;' + '}' + '}' +

'@media only screen and (min-width: 1024px) and (max-width: 1083px) {\n' + '.wds-community-header {\n' + 'width:1004px;' + '}' + '}' +

'@media only screen and (min-width: 1084px) and (max-width: 1595px) {\n' + '.wds-community-header {\n' + 'width:1064px;' + '}' + '}' +

'@media only screen and (min-width: 1596px) and (max-width: 99999999px) {\n' + '.wds-community-header {\n' + 'width:1238px;' + '}' + '}' );   } });*/

var lastEdited = { extend: function(obj) { obj = obj || {}; for (var i = 1; i < arguments.length; i++) { if (!arguments[i]) { continue; }               for (var key in arguments[i]) { if (arguments[i].hasOwnProperty(key)) { obj[key] = arguments[i][key]; }               }            }            return obj; },       title: mw.config.get('wgPageName'), id: mw.config.get('wgArticleId'), i18n: { // English en: { lastEdited: 'Last edited by $1 $2', diff: 'diff', minor: 'm', comment: 'Edit summary', size: 'Current size', created: 'Created page.', loading: 'Loading details of last edit', changes: 'Changes', link: 'Link', undo: 'Undo', cancel: 'Cancel' },           // Belarusian be: { lastEdited: 'Апошняя праўка $1 $2', diff: 'розн.', minor: 'д', comment: 'Каментар', size: 'Памер', created: 'Створана старонка.', loading: 'Загрузка дадзеных аб апошняй праўцы', changes: 'Змены', link: 'Прамая спасылка', undo: 'Адмяніць', cancel: 'Зачыніць' },           // Bengali bn: { lastEdited: ' সম্পাদনা করেছেন $1 $2', minor: 'অ', comment: 'সম্পাদনার সারাংশ', size: 'বর্তমান আকার', created: 'তৈরি করেছে', loading: 'লোডিং হচ্ছে', changes: 'পরিবর্তন', link: 'লিংক', undo: 'সম্পাদনা বাতিল করুন', cancel: 'বাতিল' },           // Catalan ca: { lastEdited: 'Últim canvi per $1 el $2', diff: 'dif', minor: 'm', comment: 'Resum de l’edició', size: 'Mida actual', created: 'Pàgina creada.', loading: 'Carregant detalls de l’última edició', changes: 'Canvis', link: 'Enllaç', undo: 'Desfer', cancel: 'Anuŀla' },           // German de: { lastEdited: 'Letzte Bearbeitung von $1 $2', diff: 'Unterschied', minor: 'K', comment: 'Zusammenfassung', size: 'Aktuelle Größe', created: 'Seite erstellt.', loading: 'Letzte Details ansehen', changes: 'Versionsunterschiede', link: 'Link', undo: 'Rückgängig machen', cancel: 'Abbrechen' },           // Esperanto eo: { lastEdited: 'Lastafoje redaktita de $1 $2', diff: 'malsamoj', minor: 'E', comment: 'Resumo', size: 'Nuna grandeco', created: 'Kreita paĝo.', loading: 'Ŝarĝante detalojn de lasta redakto', changes: 'Ŝanĝoj', link: 'Ligilo', undo: 'Malfari', cancel: 'Nuligi' },           // Spanish es: { lastEdited: 'Modificado por última vez por $1 $2', diff: 'dif', minor: 'm', comment: 'Resumen de edición', size: 'Tamaño actual', created: 'Página creada.', loading: 'Cargando datos de la última edición', changes: 'Cambios', link: 'Enlace', undo: 'Deshacer', cancel: 'Cancelar' },           // Finnish fi: { lastEdited: 'Viimenen muokkaus $1 $2', diff: 'ero', minor: 'p', comment: 'Muokkauksen kuvaus', size: 'Nykyinen koko', created: 'Loin sivun.', loading: 'Viimeisen muokkauksen tietoja ladataan', changes: 'muutokset', link: 'Linkkaa', undo: 'Kumoa', cancel: 'Peruuta' },           // French fr: { lastEdited: 'Dernière modification de $1 $2', diff: 'diff', minor: 'm', comment: 'Résumé de modification', size: 'Taille actuelle', created: 'Page créée.', loading: 'Chargement des détails de la dernière modification', changes: 'Changements', link: 'Lien', undo: 'Annuler', cancel: 'Annuler' },           // Galician gl: { lastEdited: 'Última edición por $1 $2', diff: 'comparación', minor: 'm', comment: 'Resumo da edición', size: 'Tamaño actual', created: 'Páxina creada.', loading: 'A cargar detalles da última edición', changes: 'Cambios', link: 'Ligazón', undo: 'Desfacer', cancel: 'Cancelar' },           // Hindi hi: { lastEdited: '$ 1 $ 2 से एडिट', minor: 'छो', comment: 'संपादन का सारांश', size: 'मौजूदा आकार', created: 'नए पेज', loading: 'लदान', changes: 'बियान अधिक अंक', link: 'लिंक', undo: 'रद्द करना' , cancel: 'रद्द करना' },           //Fiji Hindi hif: { lastEdited: 'last edit kya $ 1 $ 2 ', minor: 'छो', comment: 'sampadana ka sarangsh', size: 'bortman akar', created: 'toiri kiiya hai', loading: 'load le ra hain', changes: 'paribartan', link: 'link', undo: 'batil' , cancel: 'baril' },           // Italian it: { lastEdited: 'Ultima revisione di $1 $2', diff: 'diff', minor: 'm', comment: 'Riassunto della modifica', size: 'Dimensione corrente', created: 'Pagina creata.', loading: 'Caricando i dettagli dell’ultima revisione', changes: 'Modifiche', link: 'Collegamento', undo: 'Annulla modifica', cancel: 'Annulla' },           // Japanese ja: { lastEdited: '$1による編集 $2', diff: '差分', minor: '細', comment: '編集内容の要約', size: '現在のサイズ', created: '新しいページ', loading: '直近の変更を確認する', changes: '変更点', link: 'リンク', undo: '取り消し', cancel: '戻る' },           // Korean ko: { lastEdited: '$1에 의해 $2 마지막으로 편집됨', diff: '차이', minor: '잔글', comment: '편집 요약', size: '현재 크기', created: '문서 생성', loading: '마지막 편집의 상세정보를 불러오는 중', changes: '변경사항', link: '링크', undo: '편집 취소', cancel: '돌아가기' },           // Malay ms: { lastEdited: 'Terakhir disunting oleh $1 $2', diff: 'beza', minor: 'k', comment: 'Sunting ringkasan', size: 'Saiz semasa', created: 'Halaman dihasilkan.', loading: 'Memuatkan butiran-butiran suntingan terakhir', changes: 'Perubahan', link: 'Pautan', undo: 'Undo', cancel: 'Batal' },           // Dutch nl: { lastEdited: 'Laatst bewerkt door $1 $2', diff: 'wijz', minor: 'k', comment: 'Bewerkingssamenvatting', size: 'Huidige grootte', created: 'Pagina aangemaakt.', loading: 'Details van laatste bewerking laden', changes: 'Wijzigingen', link: 'Link', undo: 'Ongedaan maken', cancel: 'Annuleren' },           // Occitan oc: { lastEdited: 'Darrièr cambiament per $1 $2', diff: 'dif', minor: 'm', comment: 'Resumit de modificacion', size: 'Talha actuala', created: 'Pagina creada.', loading: 'Cargament dels detalhs del darrièr cambiament', changes: 'Cambiaments', link: 'Ligam', undo: 'Desfar', cancel: 'Anullar' },           // Polish pl: { lastEdited: 'Ostatnio edytowane przez $1 $2', diff: 'zmiana', minor: 'm', comment: 'Opis zmian', size: 'Obecny rozmiar', created: 'Utworzona strona.', loading: 'Ładowanie szczegółów ostatniej edycji', changes: 'Zmiany', link: 'Link', undo: 'Cofnij', cancel: 'Anuluj' },           // European Portuguese pt: { lastEdited: 'Última edição por $1 $2', diff: 'dif', minor: 'm', comment: 'Resumo da edição', size: 'Tamanho actual', created: 'Página criada.', loading: 'A carregar detalhes da última edição', changes: 'Alterações', link: 'Ligação', undo: 'Desfazer', cancel: 'Cancelar' },           // Brazilian Portuguese 'pt-br': { lastEdited: 'Editado pela última vez por $1 $2', diff: 'dif', minor: 'm', comment: 'Resumo da edição', size: 'Tamanho atual', created: 'Página criada.', loading: 'Carregando detalhes da última edição', changes: 'Alterações', link: 'Link', undo: 'Desfazer', cancel: 'Cancelar' },           // Kannada kn: { lastEdited: 'ಕೊನೆಯದಾಗಿ ಸಂಪಾದಿಸಲಾಗಿದೆ $1 $2', diff: 'ವ್ಯತ್ಯಾಸ', minor: 'ಸಣ್ಣ', comment: 'ಸಾರಾಂಶ', size: 'ಪ್ರಸ್ತುತ ಗಾತ್ರ', created: 'ಪುಟ ರಚಿಸಲಾಗಿದೆ.', loading: 'ಕೊನೆಯ ಸಂಪಾದನೆಯನ್ನು ಕುರಿತ ವಿವರಗಳು ಲೋಡ್ ಆಗುತ್ತಿದೆ', changes: 'ಬದಲಾವಣೆಗಳು', link: 'ಸಂಪರ್ಕ ಕೊಂಡಿ', undo: 'ರದ್ದು ಮಾಡಲು', cancel: 'ರದ್ದು' },           // Romanian ro: { lastEdited: 'Ultimă ediţie de $1 $2', diff: 'dif', minor: 'm', comment: 'Rezumat ediţiei', size: 'Mărime actual', created: 'Pagină creată.', loading: 'Încărcând detalii cu privire la ultima ediţie', changes: 'Schimburi', link: 'Link', undo: 'Desfacere', cancel: 'Anulare' },           // Russian ru: { lastEdited: 'Последняя правка $1 $2', diff: 'разн.', minor: 'м', comment: 'Комментарий', size: 'Размер', created: 'Создана страница.', loading: 'Загрузка данных о последней правке', changes: 'Изменения', link: 'Прямая ссылка', undo: 'Отменить', cancel: 'Закрыть' },           // Scots sco: { lastEdited: 'Hintmaist eeditit by $1 $2', diff: 'nou', minor: 's', comment: 'Ootline', size: 'Current size', created: 'Creautit page.', loading: 'Laidin details o hintmaist eedit', changes: 'Chynges', link: 'Link', undo: 'Ondae', cancel: 'Cancel' },           // Valencian val: { lastEdited: 'Últim canvi per $1 el $2', diff: 'dif', minor: 'm', comment: 'Resum de l’edició', size: 'Tamany actual', created: 'Pàgina creada.', loading: 'Carregant detalls de l’última edició', changes: 'Canvis', link: 'Enllaç', undo: 'Desfer', cancel: 'Cancelar' },           // Vietnamese vi: { lastEdited: 'Sửa đổi lần cuối bởi $1 $2', diff: 'khác', minor: 'n', comment: 'Tóm lược sửa đổi', size: 'Kích thước hiện tại', created: 'Tạo trang.', loading: 'Tải chi tiết của lần sửa đổi cuối', changes: 'Thay đổi', link: 'Link', undo: 'Lùi sửa', cancel: 'Quay lại' },            // Українська uk: { lastEdited: 'Останній раз внесено зміни $1 $2', diff: 'порівняти', minor: 'м', comment: 'Опис редагувань', size: 'Поточний розмір', created: 'Створена нова сторінка.', loading: 'Завантаження даних останнього редагування', changes: 'Сторінка', link: 'Посилання', undo: 'Редагувати/Порівняти', cancel: 'Скасувати' },           // Mandarin zh: { lastEdited: '由$1最後編輯於$2', diff: '差別', minor: '小', comment: '編輯簡要', size: '目前頁面大小', created: '建立新頁面. ',               loading: '最後編輯明細載入中', changes: '變動', link: '連結', undo: '復原', cancel: '取消' }       },        canRollback: /(bureaucrat|sysop|helper|vstf|staff|content-moderator|rollback)/.test(mw.config.get('wgUserGroups').join(' ')), get: function(options) { var serialized = []; for (var i in options) { serialized.push(mw.util.wikiUrlencode(i) + '=' + mw.util.wikiUrlencode(options[i])); }           serialized = '?' + serialized.join('&'); var xhr = new XMLHttpRequest; xhr.open('GET', mw.util.wikiScript('api') + serialized, true); xhr.onload = function { if (xhr.status == 200) { var response = JSON.parse(xhr.responseText); if (response.query.pages['-1']) { return; }                   lastEdited.add(response.query.pages[lastEdited.id].revisions); }           };            xhr.send; },       add: function(data) { if (!data[1]) return; var prev = data[1]; data = data[0]; var html = ' <img alt="' + lastEdited.i18n.loading + '" title="' + lastEdited.i18n.loading + '" style="margin:2px 10px" src="' + mw.config.get('stylepath') + '/common/images/ajax.gif"> '; switch (mw.config.get('skin')) { case 'oasis': case 'wikia': if (lastEdited.options.position.element && lastEdited.options.position.method) { if (lastEdited.options.position.method == 'append') { var div = document.createElement('div'); div.innerHTML = html; html = div.firstChild; lastEdited.options.position.element.appendChild(html); } else if (lastEdited.options.position.method == 'prepend') { lastEdited.options.position.element.children[0].insertAdjacentHTML('beforeBegin', html); }                   } else { if (document.querySelector('#PageHeader .page-header__title')) { var div = document.createElement('div'); div.innerHTML = html; html = div.firstChild; document.querySelector('#PageHeader .page-header__separator').appendChild(html); mw.util.addCSS('#lastEdited { line-height: normal; font-size: 12px; font-weight: normal; }'); } else { document.getElementsByClassName('UserProfileActionButton')[0].insertAdjacentHTML('afterEnd', html); }                   }                    break; case 'monobook': case 'wowwiki': case 'uncyclopedia': document.getElementById('bodyContent').children[0].insertAdjacentHTML('beforeBegin', html); break; }           var time = '<span class="timeago" title="' + data.timestamp + '"> '; if (lastEdited.options.time == 'timestamp') { var date = new Date(data.timestamp).toString; if (lastEdited.options.timezone && lastEdited.options.timezone == 'UTC') { date = new Date(data.timestamp).toUTCString; }               time = date.slice(0, 3) + ', ' + date.slice(4, 15) + ', ' + date.slice(16, 24); }           var user = mw.util.wikiUrlencode(data.user); user = '' + data.user + '</a> (talk</a> | contribs</a>' + (/(bureaucrat|sysop|helper|vstf|staff)/.test(mw.config.get('wgUserGroups').join(' ')) ? ' | block</a>' : '') + ')'; html = lastEdited.i18n.lastEdited.replace(/\$1/g, '<img id="lastEdited-avatar"/>' + user).replace(/\$2/g, time); if (lastEdited.options.diff && data.diff.from) { html += ' (' + lastEdited.i18n.diff + '</a>)'; }           if (data.minor === '') { html += ' [' + lastEdited.i18n.minor +'] '; }           if (lastEdited.options.comment && data.parsedcomment) { if (data.parsedcomment.indexOf('Created page with') > -1) { html += ' ' + lastEdited.i18n.comment + ': ' + lastEdited.i18n.created; } else { html += ' ' + lastEdited.i18n.comment + ': ' + data.parsedcomment; }           }            if (lastEdited.options.size) { var bytes = data.size - prev.size, span = document.createElement('span'); if (Math.abs(bytes) > 500) { span.style.fontWeight = 'bold'; }               span.style.color = bytes > 0 ? '#006500' : '#8b0000'; if (bytes === 0) { span.style.color = '#aaaaaa'; }               span.innerHTML = '(' + (bytes > 0 ? '+' : '') + bytes.toString.replace(/\B(?=(\d{3})+(?!\d))/g, ',') + ')'; html += ' ' + lastEdited.i18n.size + ': ' + data.size + ' bytes ' + span.outerHTML; }           document.getElementById('lastEdited').innerHTML = html; if (lastEdited.options.avatar) { var xhr = new XMLHttpRequest; xhr.open('GET', '/api/v1/User/Details?ids=' + data.userid + '&size=' + lastEdited.options.avatarsize, true); xhr.onload = function { if (xhr.status == 200) { var avatar = document.getElementById('lastEdited-avatar'); avatar.setAttribute('src', JSON.parse(xhr.responseText).items[0].avatar); avatar.setAttribute('height', lastEdited.options.avatarsize); avatar.setAttribute('width', lastEdited.options.avatarsize); avatar.insertAdjacentHTML('afterEnd', ' '); }               };                xhr.send; }           jQuery('.timeago').timeago; if (document.getElementById('lastEdited-diff-link')) { document.getElementById('lastEdited-diff-link').addEventListener('click', function {                   require(['wikia.ui.factory'], function(ui) { ui.init(['modal']).then(function(modal) {                           var config = {                                vars: {                                    id: 'lastEdited-diff',                                    size: 'large',                                    title: lastEdited.i18n.changes + ': ' + lastEdited.title.replace(/_/g, ' '),                                    content: ' ',                                    buttons: [{                                        vars: {                                            value: lastEdited.i18n.cancel,                                            data: [{                                                key: 'event',                                                value: 'close'                                            }]                                        }                                    }, {                                        vars: { value: lastEdited.i18n.link, classes: ['normal', 'primary'], data: [{ key: 'event', value: 'link' }]                                       }                                    }, {                                        vars: { value: lastEdited.i18n.undo, classes: ['normal', 'primary'], data: [{ key: 'event', value: 'undo' }]                                       }                                    }]                                }                            };                            if (lastEdited.canRollback && mw.config.get('wgUserName') !== data.user) { config.vars.buttons.push({                                   vars: {                                        value: 'Rollback',                                        classes: ['normal', 'primary'],                                        data: [{                                            key: 'event',                                            value: 'rollback'                                        }]                                    }                                }); }                           modal.createComponent(config, function(diffModal) {                                diffModal.bind('link', function { diffModal.trigger('close'); window.open('/?diff=' + data.diff.to, '_blank'); });                               diffModal.bind('undo', function { diffModal.trigger('close'); window.open('/wiki/' + mw.util.wikiUrlencode(lastEdited.title) + '?action=edit&undoafter=' + data.diff.from + '&undo=' + data.diff.to, '_blank'); });                               diffModal.bind('rollback', function { var xhr = new XMLHttpRequest; xhr.open('POST', mw.util.wikiScript('api') + '?action=rollback&title=' + mw.util.wikiUrlencode(lastEdited.title) + '&user=' + mw.util.wikiUrlencode(data.user) + '&token=' + mw.util.wikiUrlencode(data.rollbacktoken) + '&format=json', true); xhr.onload = function { if (xhr.status == 200) { var response = JSON.parse(xhr.responseText); if (!response.error) { window.location.reload; }                                       }                                    };                                    xhr.send; });                               mw.loader.using(['mediawiki.action.history.diff'], function { diffModal.show; });                           });                        });                    });                });            }        },        init: function {            lastEdited.options = lastEdited.extend({ avatar: true, avatarsize: 15, size: true, diff: true, comment: true, time: 'timeago', position: { element: '', method: '' },               namespaces: { include: [], exclude: [] },               pages: [] }, window.lastEdited);           var allowed = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 110, 111, 828, 829, 1202];            if (lastEdited.options.namespaces.include && lastEdited.options.namespaces.include.constructor == Array) {                for (var i in lastEdited.options.namespaces.include) {                    allowed.push(lastEdited.options.namespaces.include[i]);                }            }            if (lastEdited.options.namespaces.exclude && lastEdited.options.namespaces.exclude.constructor == Array) {                allowed = allowed.filter(function(elem) { return lastEdited.options.namespaces.exclude.indexOf(elem) < 0; });           }            lastEdited.allowed = allowed;            lastEdited.i18n = (lastEdited.options.lang && typeof lastEdited.options.lang == 'string') ? lastEdited.extend(lastEdited.i18n.en, lastEdited.i18n[lastEdited.options.lang]) : lastEdited.extend(lastEdited.i18n.en, lastEdited.i18n[mw.config.get('wgUserLanguage')]);            if ( !mw.util.getParamValue('diff') && !mw.util.getParamValue('oldid') && lastEdited.allowed.indexOf(mw.config.get('wgNamespaceNumber')) > -1 && !(lastEdited.options.pages.indexOf(lastEdited.title) > -1) && !mw.config.get('wgIsMainPage') && !window.lastEditedLoaded ) {               window.lastEditedLoaded = true;                var query = {                    action: 'query',                    titles: lastEdited.title,                    prop: 'revisions',                    rvprop: 'timestamp|user|userid|size|parsedcomment|flags',                    rvlimit: 2,                    rvdiffto: 'prev',                    format: 'json'                };                if (lastEdited.canRollback) {                    query.rvtoken = 'rollback';                }                mw.util.addCSS( '#lastEdited-diff-changes .diff-marker {' + 'width: auto;' + '}' +                   '#lastEdited-diff-changes td {' + 'width: 50%;' + 'padding: 5px;' + '}'               );                lastEdited.get(query);            }        }    };    lastEdited.init; });
 * (function {