User:Sreejithk2000/common.js

// importScript('User:Smith609/toolbox.js');

// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/OneClickCommoniser.js&action=raw&ctype=text/javascript');

// Add a JS validator to promote correct syntax if (/\.js(?:\/.+)?$/.test(mw.config.get('wgPageName')) && ($.inArray( mw.config.get('wgNamespaceNumber'), [ 8, 2 ]) > -1)) { mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:JSValidator.js&action=raw&ctype=text/javascript'); }

$( function {  if(mw.config.get("wgNamespaceNumber") == 6) {      if(mw.config.get("wgTitle").match(/(.*)\.(jpg|jpeg)/gi)) {          var croplink = "//tools.wmflabs.org/cropbot/cropbot.php?img="+mw.config.get('wgTitle');          mw.util.addPortletLink("p-tb", croplink, "Crop", "p-crop", "Crop this image", "o", false);      }   } });

importScript('User:Alex 21/script-functions.js'); importScript('User:Alex 21/script-imageres.js');