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.
// <nowiki>
/* global mw, importScript*/
/* jshint curly:false, scripturl:true, strict:false */
var ns = mw.config.get('wgNamespaceNumber'),
	pn = mw.config.get('wgPageName'),
	user = mw.config.get('wgUserName'),
	ac = mw.config.get('wgAction'),
	ti = mw.config.get('wgTitle'),
	cUser= "", // (optional) your CUSTOM username
	convertToSVGTypes = "geology, meteorology, road sign";

mw.loader.load('//de.wikipedia.org/w/index.php?title=User:Schnark/js/fliegelflagel.js/global.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1');

if (ns === 6) { // Files only

	// File desc. cleanup
	importScript('User:Magog the Ogre/cleanup.js');

	// [[Help:Chunked upload]]
	importScript('User:Rillke/bigChunkedUpload.js');
	
	if (/SVG/i.test(ti.slice(-3))) { // SVG
		// simple SVG edit (beta)
		importScript('User:Rillke/SVGedit.js');
		// W3C-Validator check-link for every SVG (by [[User: Perhelion]] fixed also now for admins); + detailed byte-size
		importScript('User:Perhelion/simpleSVGcheck.js');
	}
}

// SORT CONVERT-TO-SVG TAGS:
if (ns === 14 || (ns === 6 && ["edit", "submit"].indexOf(ac) !== -1 && !/SVG/i.test(ti.slice(-3))))
	importScript('User:Perhelion/fixconverttosvg.js');
if (ns === 14 && ac === "view")
	importScript('User:TheDJ/wdcat.js');

// [[Help:QuickDelete]]
//To watch user talk pages, to which you add tags
var AjaxDeleteWatchUserTalk = true;
//To watch file pages, to which you add tags
var AjaxDeleteWatchFile = true;
// adding more buttons :
window.AjaxDeleteExtraButtons = [{
		'label' : 'DW No Source',
		'tag' : '{{subst:dw-nsd}}',
		'img_summary' : 'This is a [[COM:DW|derivative work]] and no source is provided',
		'talk_tag' : '{{subst:dw image source|1=%FILE%}}',
		'talk_summary' : 'Original source is missing for %FILE%'
	}, { //notice talk_tag and talk_summary must be '' (void string) if uploader must not be notified
		'label' : 'Duplicate',
		'tag' : '{{duplicate|1=%PARAMETER%|user=%USER%}}',
		'img_summary' : 'Tagging as duplicate of [[File:%PARAMETER%]]', // FIXME!?: $.trim(%PARAMETER%).replace(/^(?:File|Image)\:/, '')
		'talk_tag' : '{{subst:Speedynote|1=%FILE%|2={{subst:int:File-exists-duplicate|}} [[:File:%PARAMETER%]].}}',
		'talk_summary' : 'Duplicate notification',
		'prompt_text' : 'Which file is this a duplicate of?'
	}, { //notice talk_tag and talk_summary must be '' (void string) if uploader must not be notified
		'label' : 'Tag only dupe',
		'tag' : '{{duplicate|1=%PARAMETER%|user=%USER%}}',
		'img_summary' : 'Tagging as duplicate of [[File:%PARAMETER%]]', // FIXME!?: $.trim(%PARAMETER%).replace(/^(?:File|Image)\:/, '')
		'prompt_text' : 'Which file is this a duplicate of?'
	}, { //notice talk_tag and talk_summary must be '' (void string) if uploader must not be notified
		'label' : 'Speedy',
		'tag' : '{{Speedydelete|1=%PARAMETER%}}',
		'ask' : 'Y',
		'img_summary' : 'Tagging as speedy delete because: %PARAMETER%',
		'talk_tag' : '{{subst:Speedynote|1=%FILE%|2=%PARAMETER%}}',
		'talk_summary' : 'Speedy notification',
		'prompt_text' : 'Speedy: why ? MUST PREVENT UPLOADER'
	}, {
		'label' : 'Wrong License',
		'tag' : '{{wl|1=%PARAMETER%}}',
		'ask' : 'Y',
		'img_summary' : 'Tagging as wrongly licensed because: %PARAMETER%',
		'talk_tag' : '{{subst:Wrong license note|2=%PARAMETER%|1=%FILE%}}',
		'talk_summary' : 'Notification of possible wrong license',
		'prompt_text' : 'Incorrect license: reason?'
	}, {
		'label' : 'Tag as thumb',
		'tag' : '{{Thumbnail}}',
		'ask' : 'Y',
		'img_summary' : 'Tagging as thumbnail',
		'talk_tag' : '{{subst:Do not upload thumbnails|1=%FILE%}}',
		'talk_summary' : 'Thumb note',
		'prompt_text' : 'Please re-upload the full resolution version?'
	}, {
		'label' : 'Watermark',
		'tag' : '{{Watermark|1=}}',
		'ask' : 'Y',
		'img_summary' : 'This file contains a watermark that should be removed',
		'talk_tag' : '{{subst:No watermarks|1=:%FILE%}}',
		'talk_summary' : 'Watermarks note',
		'prompt_text' : 'Please remove Watermarks?'
	}, {
		'label' : 'Poor SVG', // TracedSVG
		'tag' : '{{PoorSVG|1=%PARAMETER%}}', // Raster file
		'ask' : '',
		'img_summary' : 'This file contains poor traced elements',
		'talk_tag' : '{{subst:TracedSVG/notify|1=%FILE%|2=%PARAMETER%}}',
		'talk_summary' : 'Poor SVG note',
		'prompt_text' : 'Please revectorize this SVG'
	}, {
		'label' : 'Bad SVG',
		'tag' : '{{BadSVG}}',
		'img_summary' : 'This file contains raster graphics that should be removed',
		'talk_tag' : '{{subst:BadSVG/notification|1=%FILE%}}',
		'talk_summary' : 'Bad SVG note',
		'prompt_text' : 'Please remove embedded raster graphics?'
	}, {
		'label' : 'to SVG',
		'tag' : '{{Convert to SVG|1=%PARAMETER%}}',
		'ask' : 'Y',
		'img_summary' : 'This file should be better a SVG',
		'talk_tag' : '{{subst:Please use SVG|1=%FILE%}}',
		'talk_summary' : 'Use SVG note',
		'prompt_text' : 'Please use SVG insteed of raster graphics?'
	}
];

// </nowiki>