User:Joritochip/global.js

// goop

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxRC.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:AnnouncementsIgnore.js',        'u:dev:MediaWiki:AutoCreateUserPages.js',        //'u:dev:MediaWiki:CollapsiblePageTools.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:DupImageList/code.js',        'u:dev:MediaWiki:FileLogs.js',        'u:dev:MediaWiki:QuickBarPageTools.js',        'u:dev:MediaWiki:MarkForDeletion/code.js',        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MediaWiki:NoGlobalNav.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MediaWiki:ThemeToggler.js',        'u:dev:MediaWiki:UserAccountAge/code2.js',        'u:dev:MediaWiki:UTCClock/code.js',        'u:dev:MediaWiki:Wikimarks/code.js',    ] }); importScriptPage('User:Joritochip/common.js', 'joritochip'); // CategorizedNotifications

// Get wgUserGroups var ug = mw.config.get("wgUserGroups").join(' ');

// Import JavaScript - sysop/content-moderator if (ug.indexOf('sysop') + ug.indexOf('content-moderator') > -2) importArticles({       type: 'script',        articles: [        	'u:dev:MediaWiki:AjaxDelete/code.js',            'u:dev:MediaWiki:AnchoredRollback/code.js',            'u:dev:MediaWiki:Discussions Delete All/code.js',            'u:dev:MediaWiki:Nuke/code.js',        	'u:dev:MediaWiki:WHAM/code.2.js',        ]    });

/* Simplify Fan Feed */ if ($('#mixed-content-footer').length) { var interval; interval = setInterval(function {		if ($('#mixed-content-footer .mcf-card-article__link').length) {			clearInterval(interval);			$('#mixed-content-footer .mcf-column > *:not(.mcf-card-article__link), #mixed-content-footer .mcf-card-article__subtitle').remove;           $('#mixed-content-footer .mcf-card-article[data-li-type!="wiki"]').parent.remove;			var mosaic = $('#mixed-content-footer .mcf-mosaic');			var cards = $('#mixed-content-footer .mcf-card-article__link');			cards.slice(0, 8).css({width: '12%'}).appendTo(mosaic);			$('#mixed-content-footer .mcf-card-article').css({height: 'auto', aspectRatio: '1 / 1'});			$('#mixed-content-footer .mcf-column').remove;			$('#mixed-content-footer .mcf-header').text('Other Articles');			$('#mixed-content-footer .mcf-card-article__title').css({fontSize: '14px', padding: '0 10px', overflow: 'hidden'});		}	}, 100); }