User:Shizhao/common.js
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.
The accompanying .css page for this skin can be added at User:Shizhao/common.css. |
mw.loader.using( 'mediawiki.util' ).done(function(){
importScript('User:Kanonkas/warn.js');
importScript('MediaWiki:Commander.js');
//mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
importScript('MediaWiki:Gadget-GlobalReplace.js');
importScript('User:Rillke/LicenseReview.js');
//importScript('User:Majora/LicenseReview.js');
importScript('User:Shizhao/flickrcat.js');
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:Pathoschild/templatescript.js]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');
window.AjaxDeleteExtraButtons = [
{
'label': 'Convert to SVG',
'tag': '{'+'{Convert to SVG}}',
'img_summary': 'Tagging Convert to SVG',
}, {
'label': 'BadGIF',
'tag': '{'+'{BadGIF}}',
'img_summary': 'Tagging BadGIF',
}, {
'label': 'Remove border',
'tag': '{'+'{Remove border}}',
'img_summary': 'Tagging Remove border',
}, {
'label': 'Watermark',
'tag': '{'+'{Watermark}}',
'img_summary': 'Tagging [[Commons:Watermarks|Watermark]]',
}, {
'label': 'Tag as dupe',
'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
'img_summary': 'Tagging as duplicate of [[%PARAMETER%]]',
'prompt_text': 'Which is file is this a duplicate of?'
}, {
'label': 'Bad name',
'tag': '{'+'{Bad name|1=%PARAMETER%}}',
'img_summary': 'Tagging as Bad name',
'prompt_text': 'Please specify the correct name:'
}, {
'label': 'Personality rights',
'tag': '{'+'{Personality rights}}',
'img_summary': 'Tagging as [[Commons:Photographs of identifiable people|Personality rights]]',
}, {
'label': 'Wrong license',
'tag': '{'+'{Wrong license |1= %PARAMETER%}}',
'img_summary': 'Tagging as wrong license',
'prompt_text': 'Reason?',
'talk_tag': '{'+'{subst:Wrong license note|File:%FILE%|%PARAMETER%}}',
'talk_summary': 'Notification of wrong license for %FILE%.',
}
];
});
/**
Special:LinkSearch
*/
importScript('User:Shizhao/LinkSearch.js');