User:Indrajitdas/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('User:Kanonkas/twinkle.js');

if (wgNamespaceNumber==6 && wgAction=='view') {
	mw.loader.load('//tools.wmflabs.org/imagemapedit/ime.js');
}



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');
  }      
});

window.importScript('User:Rillke/LicenseReview.js');
//<nowiki>

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

/** Commons cat → Wikidata lookup **/
importScript('User:Jheald/wdcat.js');