User:Mendes2/global.js

window.pageCreatorAvatar = true; window.pageCreatorTimestamp = true; window.pageCreatorUTC = true;

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UserAccountAge/code2.js',        'u:dev:MediaWiki:PageCreator/code2.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:View Source/code.js',        'u:dev:MediaWiki:UserActivityTab/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js'    ] });

/****JS and CSS pages on toolbar****/ var Links = { "/Special:MyPage/common.js": "Personal JS", "//community.wikia.com/wiki/Special:MyPage/global.js": "Global JS", "//community.wikia.com/wiki/Special:MyPage/global.css": "Global CSS", "/MediaWiki:Common.js": "Wiki JS", "/MediaWiki:Wikia.css": "Wiki CSS", "/MediaWiki:ImportJS": "ImportJS", "/Special:PrefixIndex/User:Mendes2": "Personal pages" };

$.each(Links, function (url, title) {	$("#my-tools-menu").append('' + title + ''); });

/****Infobox + Mobile related stuff****/ var file = $('.pi-image-thumbnail'); if(file.length!==0) { $(".page-header__contribution-buttons .wds-list.wds-is-linked").append('Infobox image'); } $(".page-header__contribution-buttons .wds-list.wds-is-linked").append('Mobile');

if(file.attr('src')===undefined||file.attr('src').match(new RegExp('https?:\/\/static.wikia.nocookie.net\/' + wgDBname + '\/.*'))) {   $(".toolbar .tools").prepend('Image'); } else {   $(".page-header__contribution-buttons .wds-list.wds-is-linked").append('Google</a></li>'); }

/****Showing amount of redlinks****/ if(wgNamespaceNumber!=-1) { var p = document.getElementsByClassName('new').length; if(p > 0) { if(document.getElementsByClassName('new')[0].id == 'ca-talk'){ p--; }       if(p > 0) { $(".toolbar .tools").prepend('' + p + '</li>'); }   } }