User:Jonny Manz/global.js

//Various functions window.NoImageLightbox = { novideo: true }; importArticles({   type: 'script',    articles: [        'u:dev:RevealAnonIP/usercode.js',        'u:foodtest:MediaWiki:FindProfanity.js',        'u:dev:NoImageLightbox/code.js'    ] });

// ******************* // Custom edit buttons // ******************* if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "My custom signature, including date and timestamp", "tagOpen": "--", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#redirect",               "tagClose": "", "sampleText": "PAGE"}; } }

//Disable Special:Upload pop-up (without needing to open in a new tab) //Credit to User:Bobogoobo $(document).ready(function {   if (mw.config.get('wgCanonicalSpecialPageName') === 'AdminDashboard') {        $('li[data-modal="AddPhoto"]').on('click', function { window.location.href = $(this).children('a:first').attr('href'); });    } });