User:MathewTownsend/vector.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//dashes
//importScript('User:GregU/dashes.js'); //[[User:GregU/dashes.js]]
//importScript('User:Dr pda/editrefs.js'); //[[User:Dr pda/editrefs.js]]
// Original: [[User:Dr pda/prosesize.js]]
importScript("User:GregU/dashes.js"); 
importScript("User:PleaseStand/segregate-refs.js");var SegregateRefsJsAllowConversion = true;
importScript('User:Cameltrader/Advisor.js'); // User:Cameltrader/Advisor
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript('user:js/urldecoder.js')
importScript('User:Ohconfucius/script/Common Terms.js');   //[[User:Ohconfucius/script/Common Terms.js]]
importScript('User:Ohconfucius/script/EngvarB.js');  //[[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Ohconfucius/script/formatgeneral.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js');  //[[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Snottywong/diffconverter.js'); //[[User:Snottywong/diffconverter.js]]
importScript('User:Ucucha/duplinks.js');
importScript('User:Ucucha/HarvErrors.js');
// Add [[WP:Reflinks]] launcher in the toolbox on left
addOnloadHook(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + wgPageName
   + "?client=script&citeweb=on&overwrite=&limit=20&lang=" + wgContentLanguage,
  "Reflinks"  // link label
)});
//delinking script
 
importScript('User:Splarka/sysopdectector.js'); //Admin detector

importScript('User:Shubinator/DYKcheck.js'); //[[User:Shubinator/DYKcheck.js]]
//trials - have no idea
importScript('User:Stevage/EnhanceHistory.user.js');
importScript('User:Gary King/userinfo.js');

importScript('MediaWiki:Gadget-HotCat.js'); //hot cat script
importScript('User:Ryan Vesey/sidebar.js'); //puts a link to Special:NewPagesFeed in the toolbox (or anywhere in the sidebar)
//autoed script
importScript('Wikipedia:AutoEd/complete.js');

//importScript('User:Ucucha/HarvErrors2.js'); shows less red but allows more errors through
//suggested by Dianna for Google image searches
// <nowiki>
importScript('User:MGA73/nowcommonsreview.js');
 
// Fileinfo line from User:Magog the Ogre/monobook.js.
if (wgNamespaceNumber == 6) {
  mw.util.addPortletLink("p-cactions", "http://toolserver.org/~magog/oldver.php?project=" +wgContentLanguage+".wikipedia"+"&src="+wgTitle+"&trg="+wgTitle, "Old versions");
  mw.util.addPortletLink("p-cactions", "http://toolserver.org/~magog/fileinfo.php?project=en.wikipedia&information=1&authordate=1&license=1&fields=1&src="+wgTitle, "File info");
}
 
if (wgNamespaceNumber == 6) {
  mw.util.addPortletLink("p-cactions", "https://commons.wikimedia.org/wiki/File:"+wgTitle, "Commons");
}
 
// Googling (based on Commons:MediaWiki:Gadget-GoogleImages.js):
if (wgNamespaceNumber == 6) {
  var images = document.getElementById('file').getElementsByTagName('img');
  var imageurl = images[0].parentNode.href;
  mw.util.addPortletLink('p-cactions', 'https://www.google.com/searchbyimage?image_url=' + encodeURIComponent(imageurl), 'Google Images');
}
 
// </nowiki>