User:ZooFari/vector.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.
/* Patrol Scripts */
// [[File:Krinkle_RTRC.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');

/* Review  Scripts */
importScript('User:ZooFari/licensereviewer.js‎');
//importScript('User:ZooFari/QICtest.js');
//importScript('User:ZooFari/WarnMover.js');
//importScript('User:ZooFari/Sandbox.js');

/* Other */
//importScript('User:ZooFari/nsdex.js');
mw.util.addPortletLink('p-tb', 'javascript:{importScript(\'User:Rillke/AjaxMassDelete.js\'); void(0);}', "Perform batch task", 't-AjaxQuickDeleteOnDemand', null);

// Add custom delete reasons
// @stats [[File:Krinkle_addDeleteReasons.js]]
$.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/addDeleteReasons.js&action=raw&ctype=text/javascript', function(){

  krAddDeleteReasons.File( 'Non-free copyrighted [[Commons:Image_casebook#Trademarks|logo]]' );
  krAddDeleteReasons.File( 'Non-free copyrighted [[Commons:Image_casebook#Album_covers|CD/album cover]]' );

});

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