User:Nathan2055/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.
// Load cleanup.js; see [[User:Magog the Ogre/cleanup.js]]
importScript('User:Magog the Ogre/cleanup.js');

// Load VisualFileChange and change the toolbox link for it; see [[Help:VisualFileChange.js]]
mw.loader.load( 'ext.gadget.VisualFileChange' );
window.vFC_PortletText = 'VisualFileChange';

// QuickDelete options; see [[Help:QuickDelete]]
window.AjaxDeleteWatchUserTalk = true;
window.AjaxDeleteWatchFile = true;
window.AjaxDeclineMoveWatchFile = true;
window.AjaxDeleteExtraButtons = [
	{
		'label': 'Dupe',
		'tag': '{' + '{duplicate|1=%PARAMETER%|user=%USER%}}',
		'img_summary': 'Tagging as duplicate of  [[%PARAMETER%]]',
		'prompt_text': 'Which file is this a duplicate of?',
        'optin_notify': 1
	},
	{
        'label': 'Speedy Selfie/F10',
        'tag': '{'+'{SD|F10}}',
        'img_summary': 'Requesting speedy deletion: [[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)',
        'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)}}',
        'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#F10|CSD F10]] (personal photos by non-contributors)',
    }, 
    {
        'label': 'Speedy Advert/G10',
        'tag': '{'+'{SD|G10}}',
        'img_summary': 'Requesting speedy deletion: [[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)',
        'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)}}',
        'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G10|CSD G10]] (files and pages created as advertisements)',
    },
    {
        'label': 'Copyvio (www)',
        'tag': '{'+'{copyvio|1=[[COM:NETCOPYRIGHT|Copyright violation]], found elsewhere on the web and unlikely to be own work: [https://www.google.com/searchbyimage?image_url={{filepath:{'+'{subst:BASEPAGENAME}}}} google search]}}',
        'img_summary': 'Requesting speedy deletion: possible copyvio',
        'talk_tag': '{'+'{subst:copyvionote|1=%FILE%}}',
        'talk_summary': 'Notification of possible copyright violation for %FILE%',
    },
    {
        'label': 'Logo above ToO',
        'tag': '{'+'{Logo above threshold of originality}}',
        'img_summary': 'Requesting speedy deletion: possible copyvio',
        'talk_tag': '{'+'{subst:copyvionote|1=%FILE%}}',
        'talk_summary': 'Notification of possible copyright violation for %FILE%',
    },
    {
        'label': 'Fair use claim',
        'tag': '{'+'{Fair use}}',
        'img_summary': 'Requesting speedy deletion: possible copyvio',
        'talk_tag': '{'+'{subst:copyvionote|1=%FILE%|2=This file is [[:en:copyrights|copyrighted]] and not published under a [[:en:free content|free license]], and the uploader asserts that the usage of this file is [[:en:Fair use|fair use]], but \'\'\'[[Commons:Licensing#Material under the fair use clause is not allowed on Commons|fair use claims are not permitted on Commons.]]\'\'\' This file may be deleted without further notice. If the project that this file is to be used on allows fair use, and its usage would comply with the project\'s [[Foundation:Resolution:Licensing_policy|appropriate exemptions]], please upload it locally.<br />}}',
        'talk_summary': 'Notification of possible copyright violation for %FILE%',
    }
	
];

// Load bigChunkedUpload.js; see [[User talk:Rillke/bigChunkedUpload.js]]
importScript('User:Rillke/bigChunkedUpload.js');

// Load simpleSVGcheck.js; see [[User:Perhelion/simpleSVGcheck.js]]
importScript('User:Perhelion/simpleSVGcheck.js');