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('.WikiaPage') !== null ) {        mw.util.addCSS('' + ' .wds-community-header .wds-list li a, .wds-community-header .wds-dropdown__content .wds-list.wds-is-linked>li>a, .wds-community-header .wds-dropdown__content,  .wds-community-header .wds-dropdown-level-2__content,  .wds-community-header .wds-dropdown-level-3__content {\n' + '\tbackground-color: ' + wgSassParams['color-body'] + ';\n' + '\tcolor: ' + wgSassParams['color-text'] + ';\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' );*/ } }