User:Hide on Rosé/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.
// These are my installed user scripts.
// Chương trình (bán) tự động.
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:NguoiDungKhongDinhDanh/AMassMess.js&action=raw&ctype=text/javascript'); // Backlink: [[User:NguoiDungKhongDinhDanh/AMassMess.js]]

// -----------------------GENERAL VIEWING & STATISTIC TOOLS-----------------------
// markAdmins but with more options.
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Mdaniels5757/markAdmins.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Mdaniels5757/markAdmins.js]]
// markAdmins config.
window.markAdminCfg = {
	groups: {
		'interface-admin': {
			enabled: true
		},
		'bot': {
			enabled: true
		},
		'accountcreator': {
			enabled: true
		},
		'ipblock-exempt': {
			label: 'IP',
			enabled: true
		},
		'autopatrolled': {
			enabled: true
		},
		'filemover': {
			label: 'FM',
			enabled: true
		},
		'gwtoolset': {
			enabled: true
		},
		'image-reviewer': {
			label: 'L',
			enabled: true
		},
		'patroller': {
			enabled: true
		},
		'rollbacker': {
			label: 'R',
			enabled: true
		},
		'templateeditor': {
			label: 'T',
			enabled: true
		},
		'upwizcampeditors': {
			enabled: true
		},
		'global-renamer': {
			label: 'GRN',
			enabled: true
		},
		'global-rollbacker': {
			label: 'GR',
			enabled: true
		}
	}
};

// -----------------------EDIT TOOLS-----------------------
// QT
if (mw.config.get('wgNamespaceNumber') === 1198) {
	mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:NguoiDungKhongDinhDanh/QuickTranslation.js&action=raw&ctype=text/javascript');
}
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:NhacNy2412/ZeroEditAllPagesInThisCategory.js&action=raw&ctype=text/javascript');

// Sửa đổi hàng loạt
mw.loader.load('//vi.wikipedia.org/w/index.php?title=Thành viên:Hide_on_Rosé/massedit.js&action=raw&ctype=text/javascript'); // Backlink: [[Thành viên:Hide_on_Rosé/massedit.js]]

// Di chuyển tất cả trang con khi di chuyển trang mẹ
// mw.loader.load('//vi.wikipedia.org/w/index.php?title=Thành_viên:NhacNy2412/SubpageMover.js&action=raw&ctype=text/javascript');

// -----------------------ANTI-VANDALISM TOOLS/USER SCRIPTS-----------------------

// Xác định tài khoản không hoạt động quá 3 tháng, dùng tại [[COM:RFCU]].
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Mdaniels5757/sockStaleness.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Mdaniels5757/sockStaleness.js]]

// -----------------------CLEANUP & MAINTAINCE TOOLS/USER SCRIPTS-----------------------
// EditSVG at Commons
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Rillke/SVGedit.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Rillke/SVGedit.js]]

// SVG check tool.
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Perhelion/simpleSVGcheck.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Perhelion/simpleSVGcheck.js]]

// Replace not rename.
importScript('User:Perhelion/justReplace.js');

// General cleanup
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Magog the Ogre/cleanup.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Magog the Ogre/cleanup.js]]

// Use COM:DGP
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Waggers/degrandparent.js&action=raw&ctype=text/javascript'); 

// QuickDelete config
window.AjaxDeleteWatchUserTalk = true;
window.AjaxDeleteWatchFile = true;
window.AjaxDeclineMoveWatchFile = true;
window.AjaxDeleteWatchFile = true;
window.AjaxDeleteExtraButtons = [
	            {
                    'label': 'Permission needed (speedy)',
                    'tag': '{'+'{speedy|1=Permission from %PARAMETER% needed via [[COM:OTRS|OTRS]].}}',
                    'img_summary': 'Permission from %PARAMETER% needed via [[COM:OTRS|OTRS]].',
                    'prompt_text': 'Who is the <i>copyright holder</i>?',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=Permission from %PARAMETER% needed via [[COM:OTRS|OTRS]].}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE%, permission from copyright holder needed via [[COM:OTRS|OTRS]]',
                }, {
                    'label': 'Speedy Recreation DR',
                    'tag': '{'+'{speedy|1=[[COM:CSD#G4]], Recreation of content previously deleted per community consensus.}}',
                    'img_summary': 'Requesting speedy deletion because of [[COM:CSD#G4]]: Recreation of content previously deleted per community consensus.',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G4]], Recreation of content previously deleted per community consensus.}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G4]], recreation of content previously deleted per community consensus.',
                }, {
                    'label': 'Speedy Selfie/F10',
                    'tag': '{'+'{SD|F10}}',
                    'img_summary': 'Requesting speedy deletion because of [[COM:CSD#F10]]: Personal photos of or by non-contributors.',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#F10]], Personal photos of or by non-contributors.}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#F10]], personal photos of or by non-contributors.',
                }, {
                    'label': 'Speedy Advert/G10',
                    'tag': '{'+'{SD|G10}}',
                    'img_summary': 'Requesting speedy deletion because of [[COM:CSD#G10]]: Files and pages created as advertisements.',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G10]], Files and pages created as advertisements.}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G10]], files and pages created as advertisements.',
                }, {
                    'label': 'Speedy Vandalism/G3',
                    'tag': '{'+'{speedy|1=[[COM:CSD#G3]], vandalism.}}',
                    'img_summary': 'Requesting speedy deletion because of [[COM:CSD#G3]]: Vandalism.',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G3]], vandalism.}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G3]], vandalism.',
                }, {
                    'label': 'Speedy',
                    'tag': '{'+'{speedy|1=%PARAMETER%}}',
                    'img_summary': 'Requesting speedy deletion because %PARAMETER%',
                    'prompt_text': 'Why speedy delete?',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=%PARAMETER%}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE%',
                }, {
                    'label': 'Screenshot',
                    'tag': '{'+'{Screenshot}}',
                    'img_summary': 'Possible unfree screenshot',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=This image is a screenshot of a non-free program or other copyrighted material.}}',
                    'talk_summary': 'Notification of possible speedy deletion for %FILE% because it is an unfree screenshot.',
                }, {
                    'label': 'Tag as dupe',
                    'tag': '{'+'{duplicate|1=File:%PARAMETER%|user=%USER%}}',
                    'img_summary': 'Tagging as duplicate of [[File:%PARAMETER%]]',
                    'prompt_text': 'Which file is this a duplicate of? (do not include File:)',
                    'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=This file is an [[:Category:Duplicate|exact duplicate]] or scaled-down version of [[:%PARAMETER%]].}}',
                    'talk_summary': 'Notification of possible speedy deletion for duplicate %FILE% because it is an [[:Category:Duplicate|exact duplicate]] or scaled-down version',
                }, {
                    'label': 'Copyvio (www)',
                    'tag': '{'+'{copyvio|1=[[COM:CSD#F1]], Possible copyright violation: [[COM:NETCOPYRIGHT|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': 'speedy deletion: possible copyvio',
                    'talk_tag': '{'+'{subst:copyvionote|1=%FILE%|2=[[COM:NETCOPYRIGHT|Found elsewhere on the web and unlikely to be own work]]: [https://www.google.com/searchbyimage?image_url={'+'{filepath:{'+'{subst:BASEPAGENAME}}}} Google search].}}',
                    'talk_summary': 'Notification of possible copyright violation for %FILE% because it is [[COM:NETCOPYRIGHT|found elsewhere on the web and unlikely to be own work]]: [https://www.google.com/searchbyimage?image_url={'+'{filepath:{'+'{subst:BASEPAGENAME}}}} Google search].}}',
                }, {
                    'label': 'Copyvio (source)',
                    'tag': '{'+'{copyvio|1=[[COM:CSD#F1]], Possible copyright violation: No evidence of a free license at the claimed source.}}',
                    'img_summary': 'speedy deletion: possible copyvio',
                    'talk_tag': '{'+'{subst:copyvionote|1=%FILE%|2=[[COM:CSD#F1]], Possible copyright violation: No evidence of a free license at the claimed source.}}',
                    'talk_summary': 'Notification of possible copyright violation for %FILE% because there is no evidence of a free license at the claimed source.',
                }, {
                    'label': 'Fair use',
                    'tag': '{'+'{Fair use}}',
                    'img_summary': 'Marking as possible [[COM:CV|copyright violation]] because [[COM:Fair use|fair use]] media are not allowed on Commons.',
                    'talk_tag': '{'+'{subst:No fair use|1=%FILE%|2=Fair use.}}',
                    'talk_summary': 'Please do not upload media with fair-use claims, such as %FILE%, to Commons.',
                }, {
                    'label': 'Copyvio (covers/poster)',
                    'tag': '{'+'{copyvio|1=[[COM:CSD#F1]], Possible copyright violation: Album cover/Movie poster.}}',
                    'img_summary': 'speedy deletion: Album cover/Movie poster',
                    'talk_tag': '{'+'{subst:copyvionote|1=%FILE%|2=[[COM:CSD#F1]], Possible copyright violation: Album cover/Movie poster.}}',
                    'talk_summary': 'Notification of possible copyright violation for %FILE%.',
                }
];
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"del","watchlistUserTalk":"nochange","watchlistFiles":"preferences","watchlistReplace":"preferences","watchlistOTRS":"preferences","loadBatchSize":30,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Hide on Rosé/subpageMover.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Hide on Rosé/subpageMover.js]]