User:Schwiki/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:Schwiki/common.css. |
importScript('User:Kanonkas/twinkle.js');
if (wgNamespaceNumber==6 && wgAction=='view') {
mw.loader.load('//tools.wmflabs.org/imagemapedit/ime.js');
}
/*jshint scripturl:true*/
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
/*jshint scripturl:false*/
importScript( 'MediaWiki:Commander.js ');
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":false,"editpages":false,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
importScript( 'MediaWiki:Commander.js ');
/**
* Add a link to the toolbox
* to https://tools.wmflabs.org/glamtools/glamorous.php
* glamorous - global checkusage tool for files in a category or of one user
**/
/*global mw:false, jQuery:false*/
if (mw.config.get('wgNamespaceNumber') === 14) {
jQuery(document).ready(function () {
'use strict';
mw.util.addPortletLink('p-tb', "//tools.wmflabs.org/glamtools/glamorous.php?mode=category&doit=1&category=" + encodeURIComponent(mw.config.get('wgTitle').split(" ").join("_")), "GLAMorous", 'tb-glamorous', 'Check usage of files in this category');
});
}
/*global mw:false, jQuery:false*/
jQuery(document).ready(function() {
'use strict';
if ((mw.config.get('wgNamespaceNumber') === 0)||(mw.config.get('wgNamespaceNumber') === 14)) {
mw.util.addPortletLink('p-tb', "//tools.wmflabs.org/multidesc/?title=" + encodeURIComponent(mw.config.get('wgTitle')), 'Sum-it-up', 't-sumitup', "Make description with Commons sum-it-up", '1');
}
});