User:HM100/global.js

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

/* 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' + '}');   } });

// 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: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:Κλωκάκι/java.js', 'u:el.alpha-styles:RandomWikiButton/script.js' ] } );

/* 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: 104px;' + 'height: 104px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ 'max-height: 100px;' + 'max-width: 100px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + 'margin-left: 115px;' + '}' +       '}' +        '@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: all 0.6s ease;' + 'border-color:' + wgSassParams['color-header'] + ';' + 'outline-color:' + wgSassParams['color-header'] + ';' + '}' +   '.masthead-avatar:hover img {\n' + 'border-radius: 100%;' + '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);' + '}' + // 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-color:' + wgSassParams['color-body'] + ';'+ 'color:#fff;' + 'border-color:' + wgSassParams['color-body'] + ';' + 'border-radius:9px 9px 0 0;' + 'transition:0.17s;' + '}' +

'#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'] + ';' + 'border-radius:9px 9px 0 0;' + '}' +

'#WikiaUserPagesHeader ul.tabs li a:active, #WikiaUserPagesHeader ul.tabs li.selected 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'] + ';' + 'border-radius:9px 9px 0 0;' + '}' +

'#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'] + ';' + 'border-radius:9px 9px 0 0;' + '}' +

'#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'] + ';' + 'border-radius:9px 9px 0 0;' + '}' );   } });

/** 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:"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;' + 'color:black;' + 'background-color:transparent;' + '}' +

'.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;' + '}' +

'.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:5px;' + 'padding-bottom:5px;' + 'position:absolute;' + 'top:3px;' + 'right:3px;' + '}' +

'.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;' + '}'

);   } });

/* 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;' + '}' + '}' );   } });*/

/** * Ajax Fast Delete * * @author Splarka * @author Uberfuzzy * @author Grunny * * @version 2.3 */

/*global jQuery, mediaWiki */

"use strict";
 * (function (window, $, mw, undefined) {

window.dev = window.dev || {}; // Don't load twice... if (window.dev.ajaxFastDelete !== undefined) { return false; }

var conf = mw.config.get([           'wgNamespaceNumber',            'wgPageName',            'skin'        ]),

self = { version: '2.3',

init: function {

if (conf.wgNamespaceNumber === -1 || !window.fdButtons || !$('#ca-delete').length) { return; }               var deleteButtons = '';

switch (conf.skin) { case 'uncyclopedia': case 'wowwiki': case 'monobook': deleteButtons = window.fdButtons.map(function (b) {                           var sum = b.summary;                            return '' + b.label + '</a></li>';                        }).join('');

$('#p-lang > .pBody > ul').append(deleteButtons); break;

case 'oasis': case 'wikia': var $profile = $('.UserProfileActionButton'); deleteButtons = window.fdButtons.map(function (b) {                           var sum = b.summary;                            return '' + b.label + '</a>';                        }).join(' ');

if ($profile.exists) { $profile.append(deleteButtons); } else if ($('.page-header__subtitle-blog-post').exists) { $('.page-header__subtitle-blog-post').append(deleteButtons); $('.page-header__blog-post-details').css('margin-right', '5px'); } else { $('.WikiaPage .page-header__languages').append(deleteButtons); mw.util.addCSS('a[data-id="fastdelete"]:nth-child(1){margin-left:5px}'); }

break; }

if ($('a[data-id="fastdelete"]').length) { $('a[data-id="fastdelete"]').click(function {                       self.deletePage($(this).attr('data-summary'));                    }); }               mw.hook('fastdelete.init').fire(deleteButtons); },

deletePage: function (deleteReason) { (new mw.Api) .post({                       action: 'delete',                        title: conf.wgPageName,                        reason: deleteReason,                        token: mw.user.tokens.get('editToken')                    }) .done(function (res) {                       location.reload;                    }); }       };

window.dev.ajaxFastDelete = self;

mw.loader.using(['mediawiki.util', 'mediawiki.api'], function {        $(self.init);    });

}(window, jQuery, mediaWiki));