User:HM100/global.js

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

/* Credit to Speedit

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

/* Quick Revert Spam and Vandalism */ massBlockDelay = 440; massProtectDelay =720; massUserRightsDelay = 1000; batchDeleteDelay = 768; WHAMDelay = 480; WHAMBotMe = true; WHAMBotReason = "Διαγραφή βανδαλισμού"; massUserRightsCustom = [ "el.alpha-technologies|bot|Ρομπότ" ];

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

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

/** Parraell Immportsss **/ //importStylesheetPage('User:Jr Mime/oldOasisfixed.css', 'community'); //importStylesheetPage('Χρήστης:HM100/interlanguages.css', 'el.spongebob'); //importStylesheetPage('MediaWiki:DarkOasis/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'); importScriptPage('Κλωκάκι/main code', 'el.alpha-styles'); importScriptPage('SkinMover/main code', 'el.alpha-styles');

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:MediaWiki:AjaxBatchDelete/code.2.js",        "u:nanaki:MediaWiki:MessagingCleanup.js",        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:Multikick.js',        'u:dev:MediaWiki:ConsistentModules/code.js',        "u:dev:MediaWiki:AnchoredRollback/code.js",        'u:dev:RedirectManagement/code.js',        'u:dev:ViewRemoved/code.js',        'u:dev:Less/code.2.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( '#my-tools-menu' );		} 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 {      $( '<a href="/index.php?title=w:c:community">Community Central</a></li>' ).appendTo( '#p-wikicities-nav  > .pBody > ul' );       $( '<a href="/index.php?title=w:c:community:Blog:FANDOM Technical Updates">Techinal Updates</a></li>' ).appendTo( '#p-wikicities-nav  > .pBody > ul' ); } }  if ( !document.getElementById( 'ca-apiwiki' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { } else { $( '<a href="/index.php?title=w:c:api">Wikia API</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); } }  if ( !document.getElementById( 'ca-wlb' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { } else { $( '<a href="/index.php?title=w:c:wlb">Wikia Language Brigade</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' ); } } } );

if ( !document.getElementById( 'ca-contact' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { $( '<a href="/index.php?title=Special:Contact">Contact Wikia</a></li>' ).appendTo( '#my-tools-menu'  ); } else { /*$( '<a href="/index.php?title=w:c:community">Community Central</a></li>' ).appendTo( '#p-wikicities-nav > .pBody > ul' );       $( '<a href="/index.php?title=Special:Contact">Contact</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' + //           '\tbackground-color: ' + wgSassParams['color-body'] + ';\n' + '\tbackground-color:transparent;\n' + '\tbackground-image:none;\n' + '}' +       '@media screen and (min-width: 1px) and (max-width: 1023px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + '\ttop: inherit;' + '\twidth: 104px;' + '\theight: 104px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ '\tmax-height: 100px;' + '\tmax-width: 100px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + '\tmargin-left: 115px;' + '}' +       '}' +        '@media screen and (min-width: 1024px) and (max-width: 1083px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + '\ttop: inherit;' + '\twidth: 119px;' + '\theight: 119px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ '\tmax-height: 115px;' + '\tmax-width: 115px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + '\tmargin-left: 130px;' + '}' +       '}'  +         '@media screen and (min-width: 1084px) and (max-width: 1595px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + '\ttop: inherit;' + '\twidth: 129px;' + '\theight: 129px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ '\tmax-height: 125px;' + '\tmax-width: 125px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + '\tmargin-left: 140px;' + '}' +       '}' +         '@media screen and (min-width: 1596px) and (max-width: 999999999px) {\n' + '.UserProfileMasthead .masthead-avatar {\n' + '\ttop: inherit;' + '\twidth: 144px;' + '\theight: 144px;' + '}' +           '.UserProfileMasthead .masthead-avatar .avatar {\n'+ '\tmax-height: 140px;' + '\tmax-width: 140px;' + '}' +           '.UserProfileMasthead .masthead-info {\n' + '\tmargin-left: 155px;' + '}' +       '}' +    '.UserProfileMasthead .masthead-info-lower:before {\n' + 'border: none;' + '}' +       '.UserProfileMasthead .masthead-info hgroup {\n' + '\theight: auto;' + '\toverflow: visible;' + '\tpadding: 8.2px;' + '\tbackground-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%);' + '\tbackground-color: ' + wgSassParams['color-community-header'] + '!important;' + '}' +       '.UserProfileMasthead .masthead-info .tag {\n' + '      \tbackground-color:' + wgSassParams['color-links'] + ';' + '      \tbackground-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%);' + '}' +       '.UserProfileMasthead .masthead-info h1 {\n' + '\tfont-size: 26px;' + '\tline-height: 26px;' + '}' +       '.UserProfileMasthead .masthead-info > div {\n' + '\tpadding: 8.2px;' + '}' +   '@media screen and (max-width: 1023px) {\n' + '.UserProfileMasthead .masthead-info div {\n' + '\twidth: 265px !important;' + '}' +   '}' +    '.UserProfileMasthead .wikis span {\n' + '\ttext-align: left;' + '\twidth: 122px;' + '}' +   '.UserProfileMasthead .wikis ul {\n' + '\twidth: 368px;' + '}' +   '.UserProfileMasthead .details li {\n' + '\tpadding-top: 3px;' + '}' +   '.UserProfileMasthead .tally {\n' + '\tmargin-bottom: 0;' + '\tpadding: 0;' + '  }' +    '.UserProfileMasthead .masthead-info .group {\n' + '\t-webkit-border-radius: 9px;' + '\t-moz-border-radius: 9px;' + '\tborder-radius: 9px;' + '\tcolor: black;' + '}' +   // masthead image '.masthead-avatar img {\n' + '\t-webkit-transition: all 0.6s ease;' + '\t-moz-transition: all 0.6s ease;' + '\t-o-transition: all 0.6s ease;' + '\t-ms-transition: all 0.6s ease;' + '\ttransition: all 0.6s ease;' + '\tborder-color:' + wgSassParams['color-header'] + ';' + '\toutline-color:' + wgSassParams['color-header'] + ';' + '}' +   '.masthead-avatar:hover img {\n' + '\tborder-radius: 100%;' + '\tbox-shadow:0 0 20px ' + wgSassParams['color-links'] + ';' + '\t-webkit-transform: rotate(360deg);' + '\t-moz-transform: rotate(360deg);' + '\t-o-transform: rotate(360deg);' + '\t-ms-transform: rotate(360deg);' + '\ttransform: rotate(360deg);' + '}' + // Buttons '#WikiaUserPagesHeader ul.tabs li a {\n' + '\tbackground-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%);' + '\tbackground-color:' + wgSassParams['color-header'] + ';'+ '\tcolor:#fff;' + '\tborder-color:' + wgSassParams['color-header'] + ';' + '\tborder-radius:9px 9px 0 0;' + '\ttransition:0.17s;' + '}' +

'#WikiaUserPagesHeader ul.tabs li a:hover {\n' + '\tbackground-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%);' + '\tbackground-color:' + wgSassParams['color-header'] + ';' + '\tcolor:#fff;' + '\tborder-color:' + wgSassParams['color-header'] + ';' + '\tborder-radius:9px 9px 0 0;' + '}' +

'#WikiaUserPagesHeader ul.tabs li a:active, #WikiaUserPagesHeader ul.tabs li.selected a:active {\n' + '\tbackground-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%);' + '\tbackground-color:' + wgSassParams['color-links'] + ';' + '\tcolor:#fff;' + '\tborder-color:' + wgSassParams['color-links'] + ';' + '\tborder-radius:9px 9px 0 0;' + '}' +

'#WikiaUserPagesHeader ul.tabs li.selected a {\n' + '\tbackground-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%);' + '\tbackground-color:' + wgSassParams['color-buttons'] + ';' + '\tcolor:#fff;' + '\tborder-color:' + wgSassParams['color-buttons'] + ';' + '\tborder-radius:9px 9px 0 0;' + '}' +

'#WikiaUserPagesHeader ul.tabs li.selected a {\n' + '\tbackground-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%);' + '\tbackground-color:' + wgSassParams['color-buttons'] + ';' + '\tcolor:#fff;' + '\tborder-color:' + wgSassParams['color-buttons'] + ';' + '\tborder-radius:9px 9px 0 0;' + '}' );   } });