User:Rhododendrites (WMF)/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.
importScript( 'MediaWiki:Commander.js ');

//catALot///////////////////////////////////////
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"redir_category":"Category redirects","watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//

/* quickdelete options */
window.AjaxDeleteWatchUserTalk = true;
window.AjaxDeleteWatchFile = true;
window.AjaxDeleteExtraButtons = [
                {
                    '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': 'speedy deletion: possible copyvio',
                    'talk_tag': '{'+'{subst:copyvionote|1=%FILE%}}',
                    'talk_summary': 'Notification of possible copyright violation for %FILE%',
                }, {
                    '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?'

                }
];

/* from User:PrimeHunter/My subpages.js on enwiki */
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:PrefixIndex/User:' ) + mw.config.get( 'wgUserName' ) + '/',
    'Subpages',
    'pt-mysubpages',
    'Show your subpages',
    null,
    '#pt-preferences'
  );
});