User:Achim55/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.
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');
mw.loader.load('//www.wikidata.org/w/index.php?title=MediaWiki:Gadget-Mark_as_patrolled.js&action=raw&ctype=text/javascript');
//mw.loader.load('/w/index.php?title=User:Mdaniels5757/PurgeTab.js&action=raw&ctype=text/javascript');
importScript('User:Magog the Ogre/cleanup.js');
//importScript('User:Kanonkas/twinkle.js');
/*function addloglink()
{
  var loglink = wgServer + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));
  mw.util.addPortletLink("p-tb", loglink, "Page log", "p-logs", "All public logs for this file");
}
$(addloglink);
*/
function addusagelink()
{
  var pname = mw.config.get('wgPageName');
  var usagelink = "//commons.wikimedia.org/w/index.php?title=Special:GlobalUsage&target=" + encodeURIComponent(pname.slice(5));
  mw.util.addPortletLink("p-cactions", usagelink, "Global usage", "p-glus", null);
}
$(addusagelink);
//<nowiki>
//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":false,"editpages":true,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
//[[File:Krinkle_RTRC.js]]
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
//importScript('User:Sreejithk2000/JustReplace.js');
importScript('User:Perhelion/justReplace.js');
importScript('User:Perhelion/massrename.js');
importScript('User:Achim55/ImageSearch.js');
importScript('w:en:User:Mr. Stradivarius/gadgets/SpamUserPage.js');
window.popupAdminLinks = true;
window.popupFixDabs = true;
window.AjaxDeleteExtraButtons = [
  {'label': 'Speedy Selfie (F10)',
   'tag': '{'+'{SD|F10}}',
   'img_summary': 'Requesting speedy deletion because of [[COM:CSD#F10]], Personal photos of or by non-contributors.',
   'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#F10]], Personal photos of or by non-contributors.}}',
   'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#F10]], Personal photos of or by non-contributors.',
  },
  {'label': 'Speedy Advert (G10)',
   'tag': '{'+'{SD|G10}}',
   'img_summary': 'Requesting speedy deletion because of [[COM:CSD#G10]], Files and pages created as advertisements.',
   'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G10]], Files and pages created as advertisements.}}',
   'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G10]], Files and pages created as advertisements.',
  },
  {'label': 'Speedy Vandalism (G3)',
   'tag': '{'+'{speedy|1=[[COM:CSD#G3]], vandalism.}}',
   'img_summary': 'Requesting speedy deletion because of [[COM:CSD#G3]], vandalism.',
   'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=[[COM:CSD#G3]], vandalism.}}',
   'talk_summary': 'Notification of possible speedy deletion for %FILE% due to [[COM:CSD#G3]], vandalism.',
  },
  {'label': 'Duplicate',
   'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
   'img_summary': 'Tagging as duplicate of  [[:%PARAMETER%]]',
   'prompt_text': 'Which file is this a duplicate of? (please include File:)',
   'talk_tag': '{'+'{subst:speedynote|1=%FILE%|2=This file is an [[:Category:Duplicate|exact duplicate]] or scaled-down version of [[:%PARAMETER%]].}}',
   'talk_summary': 'Notification of possible speedy deletion for duplicate %FILE% because it is an [[:Category:Duplicate|exact duplicate]] or scaled-down version',
  }
];