User:RaFaDa20631/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
window.AjaxDeleteWatchUserTalk = true;
window.AjaxDeleteWatchFile = true;
window.AjaxDeclineMoveWatchFile = true;
window.aqdCORSOptOut = true;

window.AjaxDeleteExtraButtons = [{
		'label': 'Request delete by author',
		'tag': '{' + '{duplicate|1=%PARAMETER%|user=%USER%}}',
		'prompt_text': 'Reason:',
        'optin_notify': 1
	},
];

mw.loader.load( 'ext.gadget.VisualFileChange' );
window.vFC_PortletText = '<Mass Deletion>';

importScript('User:Perhelion/justReplace.js');
// [[User:Perhelion/simpleSVGcheck.js]]
if (mw.config.get('wgNamespaceNumber') === 6 && /SVG/i.test(mw.config.get('wgTitle').slice(-3)))
	mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Perhelion/simpleSVGcheck.js&action=raw&ctype=text/javascript');