Jump to content

User:EdJohnston/monobook.js

From 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.
importScript('User:Splarka/sysopdectector.js');
importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('user:js/urldecoder.js');
importScript('User:Snottywong/diffconverter.js');
importScript('User:Alex Smotrov/histcomb.js')
importScript('User:Doug/closemfd.js');
importScript('User:Js/ajaxPreview.js'); 
// importScript('User:Steel359/protection.js'); Too much risk of hitting buttons by mistake

// Add [[WP:Reflinks]] launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName') 
   + "?client=script&citeweb=on&overwrite=&limit=30&lang=" + mw.config.get('wgContentLanguage'),
  "Reflinks"  // link label
)});

/**** afd helper ****/
importScript('User:Jnothman/afd_helper/script.js');

/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */


//Adds 'Check Refs' to the toolbox, links to http://toolserver.org/~dispenser/cgi-bin/reflinks.py -- Dispenser's reference title fixer.
 
function refcheck()
{
  mw.util.addPortletLink("p-tb", "http://toolserver.org/~dispenser/cgi-bin/reflinks.py?citeweb=on&page=" + mw.config.get('wgPageName'), "Check Refs");
}
 
if ( mw.config.get('wgNamespaceNumber') == 0 ) {
 addOnloadHook(refcheck);
}