User:Meeples10/common.js

/* Kanegasi's Editcounter script v1.08, source code edited slightly if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) { var subPages = 'true'; var nameSpaces = new Array; nameSpaces[3] = 'Utalk '; nameSpaces[4] = 'MCW '; nameSpaces[5] = 'MCWtalk '; nameSpaces[7] = 'Ftalk '; nameSpaces[8] = 'MW '; nameSpaces[9] = 'MWtalk '; nameSpaces[10] = 'Temp '; nameSpaces[11] = 'Ttalk '; nameSpaces[13] = 'Htalk '; nameSpaces[14] = 'Cat '; nameSpaces[15] = 'Ctalk '; var mainTableAttrib = 'class="wikitable" style="font-family: Minecraft; margin: 0 auto 1em; text-align: center"'; var noInclude = ''; mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Meeples10/editcounter.js&action=raw&ctype=text/javascript'); }

Kanegasi's Editcounter script v1.11 */ if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) { var subPages = 'true'; var nameSpaces = new Array; nameSpaces[3] = 'Utalk '; nameSpaces[4] = 'MCW '; nameSpaces[5] = 'MCWtalk '; nameSpaces[7] = 'Ftalk '; nameSpaces[8] = 'MW '; nameSpaces[9] = '<abbr title="MediaWiki talk">MWtalk '; nameSpaces[10] = '<abbr title="Template">Temp '; nameSpaces[11] = '<abbr title="Template talk">Ttalk '; nameSpaces[13] = '<abbr title="Help talk">Htalk '; nameSpaces[14] = '<abbr title="Category">Cat '; nameSpaces[15] = '<abbr title="Category talk">Ctalk '; var mainTableAttrib = 'class="wikitable" style="font-family: Minecraft; margin: 0 auto 1em; text-align: center"'; var noInclude = ''; mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript'); } /****************************************************************************************************************/ /* Replaces IPs with their known owner, publicly acknowledged by that user */ $('.mw-userlink[title$="82.69.54.207"]').attr({ title: 'User:Simons Mith (IP)' }).text('Simons Mith as IP');

$('.mw-userlink[title$="70.181.68.226"]').attr({ title: 'User:Sheepuff20 (IP)' }).text('Sheepuff20 as IP'); /****************************************************************************************************************/ /* Changes vector menu items into tabs */ $('#p-cactions').addClass('emptyPortlet').find('> .menu li').addClass('collapsible').find('a').wrap(' '); $('#p-views > ul').append($('#p-cactions > .menu li'));

/* Adds JavaScript and CSS syntax highlighting - Original script: */ if (/\.js/.exec(mw.config.get('wgTitle')) || /\.css/.exec(mw.config.get('wgTitle'))) { mw.loader.localLoad('User:Majr/syntaxHighlight.js'); mw.loader.localLoad('User:Majr/syntaxHighlight/javascript.js'); mw.loader.localLoad('User:Majr/syntaxHighlight/css.js'); } /****************************************************************************************************************/ /* Make the new section button look like the old one */ $('[accesskey="+"]').text('Add topic'); /****************************************************************************************************************/ /** Tabs **/ /* Doc (see User:Kanegasi/common.js) */ if (mw.config.get('wgNamespaceNumber') === 10 || mw.config.get('wgNamespaceNumber') === 11) { mw.loader.localLoad('User:Majr/docTabs.js'); } /****************************************************************************************************************/ /* Minecraft font */ var css = [ 'body {', 'font-family: Minecraft;', '}' ];