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' + '\tbackground-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|Ρομπότ" ]; 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('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' ] } ); /* 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 {      $( '<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' + //           '\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;' + '\tcolor:'+ wgSassParams['color-community-text'] + ';' + '\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%);' + '}' +   '@media screen and (min-width: 1596px) {\n' + '.UserProfileMasthead .masthead-info h1 {\n' + '\tfont-size: 30px;' + '\tline-height: 30px;' + '}' +   '}' +    '.UserProfileMasthead .masthead-info h1 {\n' + '\tfont-size: 26px;' + '\tline-height: 26px;' + '\tcolor:' + $('.wds-community-header__sitename a').css('color') + ';' + '}' +   '.UserProfileMasthead .masthead-info h2 {\n' + '\tcolor:' + $('.wds-community-header__sitename a').css('color') + ';' + '}' +       '.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 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-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:hover {\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;' + '}' );   } });

/** 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:'+ wgSassParams['color-community-header'] + ' !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:'+ wgSassParams['color-community-header'] + ' !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;' + '}' +

'.wds-is-secondary.wds-button.start-a-chat-button {\n' + 'padding-top:5px;' + 'padding-bottom:5px;' + 'position:absolute;' + 'top:3px;' + 'right:3px;' + '}' +

'.chat-module .chat-details {\n' + 'border:2px double' + wgSassParams['color-links'] + ';' + 'background-color:rgba(0,0,0,0.1);' + 'padding:2px;' + '}' +

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

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

/* Community-header change

(function gfootclr {   if ( document.querySelector('.wds-community-header') !== null ) {        mw.util.addCSS('' + '.wds-community-header {\n' + '\tborder:1px solid' + wgSassParams['color-page-border'] + '!important;' + '\tborder-bottom:0!important;' + '\tbackground-image:none!important;' + '\tcolor:' + wgSassParams['color-text'] + '!important;' + '\tbackground-color:transparent!important;' + '\topacity:' + wgSassParams['page-opacity'] + '!important;' + '}' +

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

'.WikiaPage {\n' + '\tborder-color:' + wgSassParams['color-page-border'] + '!important;' + '\tborder-top:0!important' + '\tcolor:' + 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;' + '}' + '}' );   } }); */